/*
Theme Name: Astra Child — Kolibianakis IVF
Theme URI: https://kolibianakis-ivf.local
Description: Child theme for Astra, customised for the Στρατής Κολυμπιανάκης / Stratis Kolibianakis IVF practice site. All custom CSS and PHP overrides live here so that the parent Astra theme can be updated safely.
Author: SK
Author URI: https://kolibianakis-ivf.local
Template: astra
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* ==========================================================================
   Astra Child — custom CSS goes below this line.
   Keep this file lean; prefer Customizer / Elementor settings whenever
   possible. Use this file for true global overrides that the UI cannot
   express.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page width cap — prevent layouts stretching across ultrawide displays.
   Astra's "ast-container" / "site-content" used to flow to 100% on 32"+
   monitors which made hero compositions feel disconnected.  Cap the
   inner content at 1500px and centre on the page so the layout stays
   readable on any screen size.
   -------------------------------------------------------------------------- */
@media ( min-width: 1500px ) {
	.ast-container,
	.site-content > .ast-container,
	.site-header > .ast-builder-grid-row-container,
	.site-header .ast-builder-grid-row-container-inner,
	.entry-content > .alignwide,
	.entry-content > .alignfull {
		max-width: 1500px;
		margin-left: auto;
		margin-right: auto;
	}

	/* Astra header/footer "stretch" sections also flow full-width by default */
	.site-header,
	.site-footer {
		--ast-content-width: 1500px;
	}

	/* Elementor uses its own container system that ignores theme caps.
	   Hit every variant: legacy sections, new "Flexbox containers" (e-con),
	   stretched sections, and the inner wrappers. Use !important because
	   Elementor often emits inline style="max-width: 1140px" on individual
	   containers that we want to OVERRIDE upward to 1500px on big screens. */
	.elementor-section .elementor-container,
	.elementor-section-boxed > .elementor-container,
	.elementor-section-stretched > .elementor-container,
	.elementor-section-full_width > .elementor-container,
	.elementor .e-con,
	.elementor .e-con > .e-con-inner,
	.elementor-element.e-con,
	body .elementor-section.elementor-section-stretched .elementor-container {
		max-width: 1500px !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	/* Set Elementor's CSS-variable-based container width too */
	body.elementor-page,
	body .elementor {
		--e-con-max-width: 1500px;
		--container-max-width: 1500px;
		--container-widescreen-width: 1500px;
	}
}

/* --------------------------------------------------------------------------
   Header — fit the primary menu on a single row.
   Greek menu items are long (ΥΠΗΡΕΣΙΕΣ, ΒΙΟΓΡΑΦΙΚΟ, ΕΠΙΚΟΙΝΩΝΙΑ, ΙΣΤΟΛΟΓΙΟ),
   so we tighten letter-spacing + horizontal padding and lock the entire
   menu UL to nowrap at desktop widths so it never breaks to a second row.
   -------------------------------------------------------------------------- */
@media ( min-width: 921px ) {
	.main-header-menu,
	.ast-builder-menu .menu,
	ul.main-header-menu,
	.main-navigation ul.menu {
		flex-wrap: nowrap !important;
		white-space: nowrap;
	}

	.main-header-menu > li > a,
	.ast-builder-menu .menu > li > a,
	.main-navigation ul.menu > li > a {
		padding-left: 0.85em;
		padding-right: 0.85em;
		letter-spacing: 0.01em;
	}
}

/* --------------------------------------------------------------------------
   Header — site title
   The Greek site title "Στρατής Κολυμπιανάκης" is longer than the English
   "Stratis Kolibianakis", and Astra's logo column was wrapping it
   mid-word ("Κολυμπιαν / άκης"). Allow it to wrap only at word boundaries
   and never break a single word.
   -------------------------------------------------------------------------- */
.ast-site-identity .site-title,
.ast-site-identity .site-title a,
.site-branding .site-title,
.site-branding .site-title a {
	word-break: keep-all;
	overflow-wrap: normal;
	hyphens: none;
}

/* On wider screens, force the title onto a single line so it doesn't
   wrap at all. Drops to natural wrapping below the breakpoint. */
@media ( min-width: 921px ) {
	.ast-site-identity .site-title,
	.site-branding .site-title {
		white-space: nowrap;
	}
}

/* --------------------------------------------------------------------------
   Header booking button — Greek text "ΚΛΕΙΣΤΕ ΡΑΝΤΕΒΟΥ" must never break
   character-by-character when the column is narrow. Keep words intact
   and let CSS wrap only at word boundaries. We also force a sane minimum
   column width so the button has somewhere to live.
   -------------------------------------------------------------------------- */
.ast-custom-button,
.ast-builder-button-wrap a,
[class*="ast-builder-button"] .ast-custom-button {
	word-break: keep-all !important;
	overflow-wrap: normal !important;
	hyphens: none !important;
	white-space: normal;
}

/* Above the standard mobile breakpoint, force the booking button onto
   a single line. Astra's column will widen to fit, which is what we want. */
@media ( min-width: 921px ) {
	.ast-custom-button,
	.ast-builder-button-wrap a {
		white-space: nowrap !important;
	}
}

/* --------------------------------------------------------------------------
   Language switcher — compact, inline at the end of the primary menu.
   We render just one item (the OTHER language) via hide_current=1.

   IMPORTANT: target li.lang-item directly (NOT scoped to a particular
   parent UL class) because Astra's Header Builder uses different parent
   classes than the classic Astra menu (.ast-builder-menu-1, .ast-nav-menu,
   .menu, .main-header-menu — varies by build). Direct .lang-item targeting
   catches all of them. Use !important so Astra's own menu CSS doesn't
   accidentally hide or shrink it.
   -------------------------------------------------------------------------- */
li.lang-item {
	display: inline-flex !important;
	visibility: visible !important;
	align-items: center;
	margin-left: 1em;
	padding-left: 1em;
	border-left: 1px solid rgba( 0, 0, 0, 0.12 );
}

li.lang-item a {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	opacity: 1 !important;
	visibility: visible !important;
}

li.lang-item img {
	display: inline-block !important;
	width: 18px;
	height: 12px;
	vertical-align: middle;
	opacity: 1 !important;
	visibility: visible !important;
}

/* Polylang adds .no-translation class when the target has no equivalent
   (e.g. an empty category archive). Without an override, Astra fades it. */
li.lang-item.no-translation,
li.lang-item.no-translation a,
li.lang-item.no-translation img {
	opacity: 1 !important;
}

/* Final aggressive override — some Astra builds wrap the lang-item in
   nav containers that hide ::before/::after children, or set img to
   display:none on responsive breakpoints. Override absolutely
   everything that could touch the flag image. */
.main-header-bar li.lang-item,
.ast-builder-menu li.lang-item,
.menu li.lang-item,
nav li.lang-item,
header li.lang-item {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	max-width: none !important;
	overflow: visible !important;
}

.main-header-bar li.lang-item *,
.ast-builder-menu li.lang-item *,
.menu li.lang-item *,
nav li.lang-item *,
header li.lang-item * {
	display: revert !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.main-header-bar li.lang-item img,
.ast-builder-menu li.lang-item img,
.menu li.lang-item img,
nav li.lang-item img,
header li.lang-item img {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 22px !important;
	height: 14px !important;
	min-width: 22px !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: contain;
}

/* --------------------------------------------------------------------------
   Hide the post-meta breadcrumb line on single posts and on the archive
   listing. For a single-author authority site, "By SK / Category" repeated
   on every article is noise — clean professional medical sites show
   title and body only.
   -------------------------------------------------------------------------- */
.single-post .entry-meta,
.single .ast-single-post-meta,
.ast-blog-single-element.ast-blog-meta,
.entry-meta {
	display: none !important;
}

/* Some Astra layouts wrap the meta in .ast-blog-meta-container. */
.ast-blog-meta-container,
.ast-blog-related-posts .post-meta {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Homepage — surgical Elementor overrides.
   Element IDs were extracted from the rendered DOM (data-id) and target
   each widget directly so we don't affect any other page.
   -------------------------------------------------------------------------- */

/* Services section heading "IVF Θεσσαλονίκη - Υπηρεσίες …" — centre */
body.home .elementor-element-d25d735 .elementor-heading-title {
	text-align: center !important;
}

/* Services section "Υπηρεσίες" button — centre under the 3 columns */
body.home .elementor-element-d468945.elementor-align-left {
	text-align: center !important;
}
body.home .elementor-element-d468945.elementor-align-left .elementor-button-wrapper {
	text-align: center !important;
}

/* CTA section heading "Ξεκινήστε το ταξίδι …" — centre */
body.home .elementor-element-72269c0 .elementor-heading-title {
	text-align: center !important;
	font-size: clamp( 1.6rem, 2.4vw, 2.4rem );
	letter-spacing: -0.005em;
	margin-bottom: 1.5rem;
}

/* CTA section "ΚΛΕΙΣΤΕ ΡΑΝΤΕΒΟΥ" button — centre */
body.home .elementor-element-cfd0ffc.elementor-align-left,
body.home .elementor-element-cfd0ffc.elementor-tablet-align-center {
	text-align: center !important;
}
body.home .elementor-element-cfd0ffc .elementor-button-wrapper {
	text-align: center !important;
}

/* CTA section parent — lighten the dreary grey background.
   Use :has() to target whichever section wraps the CTA heading.
   Replace the slate grey with a warm soft gradient (light blue→white). */
body.home .elementor-section:has( .elementor-element-72269c0 ),
body.home .e-con:has( .elementor-element-72269c0 ),
body.home .elementor-element:has( > .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-element-72269c0 ) {
	background: linear-gradient( 180deg, #f5f9fd 0%, #ffffff 100% ) !important;
	background-color: #f5f9fd !important;
	padding-top: 4rem !important;
	padding-bottom: 4rem !important;
}

/* Heading + button in CTA need dark text on the new light background */
body.home .elementor-element:has( > .elementor-container .elementor-element-72269c0 ) .elementor-heading-title {
	color: #1a1a1a !important;
}

/* Philosophy section bullets (970b38b, 5183c05, e546ea4, 3f1c931) — give
   them a tiny visual treatment so they read as "differentiators" instead
   of plain list items. */
body.home .elementor-element-970b38b .elementor-heading-title,
body.home .elementor-element-5183c05 .elementor-heading-title,
body.home .elementor-element-e546ea4 .elementor-heading-title,
body.home .elementor-element-3f1c931 .elementor-heading-title {
	position: relative;
	padding-left: 1.4em;
	font-weight: 500;
}

body.home .elementor-element-970b38b .elementor-heading-title::before,
body.home .elementor-element-5183c05 .elementor-heading-title::before,
body.home .elementor-element-e546ea4 .elementor-heading-title::before,
body.home .elementor-element-3f1c931 .elementor-heading-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.85em;
	height: 2px;
	background: currentColor;
	opacity: 0.45;
}

/* --------------------------------------------------------------------------
   Single-post hero — full-width featured image with the title overlaid
   on top, byline row underneath, narrow centred body column.
   Matches the easy-ivf.com look.

   IMPORTANT: this design depends on the post having a featured image.
   Posts without one fall back to the standard Astra title-on-top layout
   (which the theme already handles).
   -------------------------------------------------------------------------- */
.single-post .ast-single-post-thumbnail-wrap,
.single-post .post-thumb,
.single-post .ast-blog-featured-section {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-height: 520px;
	overflow: hidden;
}

.single-post .ast-single-post-thumbnail-wrap img,
.single-post .post-thumb img,
.single-post .ast-blog-featured-section img,
.single-post img.wp-post-image {
	width: 100%;
	height: 100%;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

/* Dark gradient on top of the image for legibility of the overlaid title */
.single-post .ast-single-post-thumbnail-wrap::after,
.single-post .post-thumb::after,
.single-post .ast-blog-featured-section::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0)    0%,
		rgba(0,0,0,0.05) 35%,
		rgba(0,0,0,0.55) 100%
	);
	pointer-events: none;
}

/* The post title sits centred at the bottom of the hero image */
.single-post .entry-header,
.single-post .ast-post-format--image .entry-header,
.single-post .entry-header.ast-header-without-markup {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1100px;
	padding: 0 2rem;
	text-align: center;
	color: #fff;
	z-index: 5;
	pointer-events: none;
}

/* Wrap thumbnail + title together */
.single-post .ast-single-post-thumbnail-wrap {
	margin-bottom: 0;
}

/* Adjust the title text to be readable against the dark gradient */
.single-post .entry-title {
	color: #fff;
	text-shadow: 0 2px 18px rgba(0,0,0,0.4);
	font-size: clamp( 1.6rem, 3vw, 2.6rem );
	line-height: 1.2;
	font-weight: 600;
	margin: 0;
}

/* Body column — narrow + centred */
.single-post .ast-container,
.single-post .ast-row,
.single-post .entry-content {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.single-post .entry-content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #1a1a1a;
}

.single-post .entry-content p {
	margin: 0 0 1.1em;
}

.single-post .entry-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1.5em auto;
	border-radius: 4px;
}

/* Hide post navigation chrome that easy-ivf.com didn't have */
.single-post .related-posts,
.single-post .post-navigation .nav-previous,
.single-post .post-navigation .nav-next {
	display: none !important;
}

/* Or, if you DO want the prev/next nav: simpler styling */
.single-post .post-navigation {
	max-width: 760px;
	margin: 3rem auto;
	padding: 1.5rem 0;
	border-top: 1px solid rgba(0,0,0,0.08);
	font-size: 0.85em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.single-post .post-navigation a {
	color: inherit;
	text-decoration: none;
}
.single-post .post-navigation a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Category archive listings (Ιστολόγιο, Νέα, Blog, News, plus the topical
   ΑΡΘΡΑ subcategories).

   Match the easy-ivf.com layout: a single-column list with a large
   featured image on top of each entry, byline row underneath (author ·
   date · category), title, excerpt, and a "Read more" button.
   -------------------------------------------------------------------------- */

/* Cap the listing column to a comfortable reading width on big screens */
.archive .ast-container,
.blog   .ast-container,
.search .ast-container {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

/* Each entry is a vertically stacked card: image on top, text below */
.archive article.post,
.blog   article.post,
.search article.post {
	margin: 0 0 4rem;
	padding: 0;
	border: none;
	background: transparent;
	display: block;
}

/* Featured image — full-width of the column, fixed aspect crop */
.archive article.post .post-thumb,
.archive article.post .ast-blog-featured-section,
.blog   article.post .post-thumb,
.blog   article.post .ast-blog-featured-section {
	width: 100%;
	margin: 0 0 1rem;
}

.archive article.post .post-thumb a,
.archive article.post .ast-blog-featured-section a,
.archive article.post img.wp-post-image,
.blog   article.post .post-thumb a,
.blog   article.post .ast-blog-featured-section a,
.blog   article.post img.wp-post-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 380px;
	object-fit: cover;
}

/* Bring back the byline row on archive listings (we hide it only on single
   posts in the existing rule). The byline reads:
   👤 Author · 📅 Date · 🏷 Category */
.archive article.post .ast-blog-meta-container,
.archive article.post .entry-meta,
.blog   article.post .ast-blog-meta-container,
.blog   article.post .entry-meta {
	display: block !important;
	font-size: 0.85em;
	color: #666;
	margin: 0 0 0.4rem;
	letter-spacing: 0.01em;
}

/* Title */
.archive article.post .entry-title,
.blog   article.post .entry-title {
	font-size: 1.6rem;
	line-height: 1.3;
	margin: 0.2rem 0 0.6rem;
	font-weight: 600;
}

.archive article.post .entry-title a,
.blog   article.post .entry-title a {
	color: inherit;
	text-decoration: none;
}

.archive article.post .entry-title a:hover,
.blog   article.post .entry-title a:hover {
	text-decoration: underline;
}

/* Excerpt */
.archive article.post .entry-content,
.archive article.post .entry-summary,
.blog   article.post .entry-content,
.blog   article.post .entry-summary {
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
	margin: 0 0 1rem;
}

/* "Read more" button — restrained, matches Astra defaults but uppercased */
.archive article.post .read-more a,
.archive article.post .ast-button,
.blog   article.post .read-more a,
.blog   article.post .ast-button {
	display: inline-block;
	font-size: 0.85em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 0.5em 1.2em;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.archive article.post .read-more a:hover,
.blog   article.post .read-more a:hover {
	background: #1a1a1a;
	color: #fff;
}

/* Pagination — centered, breathable */
.ast-pagination,
.archive .pagination,
.blog   .pagination {
	margin: 2rem 0 4rem;
	text-align: center;
}

/* Page header (category name on archive pages) — bigger and bolder */
.archive .ast-archive-description,
.archive .page-title {
	text-align: center;
	font-size: 2.4rem;
	margin: 1rem 0 2rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Header phone — small phone number sitting in the Astra Header Builder
   next to the booking button. Astra exposes a "HTML Widget" header element
   you drop into the header row; paste this snippet into it:
     <a class="header-phone" href="tel:+302310430531">2310 430531</a>
   The styling below makes it match the menu typography.
   -------------------------------------------------------------------------- */
.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.95rem;
	color: #1a1a1a;
	text-decoration: none;
	letter-spacing: 0.02em;
	font-weight: 500;
	margin-right: 1em;
	padding: 0.4em 0.8em;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
}
.header-phone::before {
	content: "📞";
	font-size: 0.9em;
	margin-right: 0.2em;
}
.header-phone:hover {
	color: #444;
	text-decoration: none;
}

@media (max-width: 920px) {
	.header-phone { display: none; }
}

/* --------------------------------------------------------------------------
   Mobile responsive pass — the homepage hero, two circular photos, and
   trust bar all need to gracefully shrink on narrow screens.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	/* Hero photos: smaller, retain proportions */
	.ezi-hero-photos { max-width: 320px; }
	.ezi-hero-photos .ezi-hero-photo-large { width: 70%; height: 70%; }
	.ezi-hero-photos .ezi-hero-photo-small { width: 48%; height: 48%; border-width: 4px; }

	/* Trust bar: drop to two lines, slightly smaller */
	.press-strip-list { gap: 0.4rem 1rem; }

	/* Calculator: stack form, larger button */
	.ofc-calculator { padding: 1.5rem 1.2rem; }
	.ofc-result-number { font-size: 2rem; }
}

@media (max-width: 480px) {
	/* Hero photos: even smaller */
	.ezi-hero-photos { max-width: 280px; }

	/* Calculator: tighter padding */
	.ofc-calculator { padding: 1.2rem 1rem; }
}

/* --------------------------------------------------------------------------
   [oocyte_freezing_calculator] — interactive section.
   -------------------------------------------------------------------------- */
.ofc-calculator {
	max-width: 760px;
	margin: 0 auto;
	background: #fff;
	border-radius: 8px;
	padding: 2.5rem 2rem;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.ofc-header { text-align: center; margin-bottom: 2rem; }
.ofc-title { font-size: 1.6rem; font-weight: 600; margin: 0 0 0.4rem; }
.ofc-subtitle { color: #666; font-size: 0.95rem; margin: 0; }

.ofc-form {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 1.5rem;
	align-items: end;
}

.ofc-field { display: flex; flex-direction: column; }
.ofc-field label {
	font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
	color: #666; margin-bottom: 0.4rem;
}
.ofc-field input,
.ofc-field select {
	font-size: 1.1rem; padding: 0.7em 0.9em;
	border: 1px solid #d0d0d0; border-radius: 4px; background: #fff;
}
.ofc-field input:focus,
.ofc-field select:focus { outline: none; border-color: #888; }
.ofc-field small { color: #888; font-size: 0.78rem; margin-top: 0.3em; line-height: 1.4; }

.ofc-button {
	background: #a8a29e; color: #fff; border: none;
	padding: 0.85em 1.6em; font-size: 0.85rem; letter-spacing: 0.06em;
	text-transform: uppercase; border-radius: 4px; cursor: pointer;
	font-weight: 500; transition: background 0.15s ease;
}
.ofc-button:hover { background: #8b8581; }

.ofc-results { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.08); }
.ofc-result-title { font-size: 1rem; color: #666; text-align: center; margin: 0 0 1.2rem; font-weight: 500; }

.ofc-result-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
	margin-bottom: 1.5rem;
}
.ofc-result-card {
	display: flex; flex-direction: column; align-items: center;
	padding: 1.2rem 0.8rem; border-radius: 6px; background: #fafafa;
	text-align: center;
}
.ofc-result-card--featured { background: #f9f6f0; border: 2px solid #d4cfc8; }
.ofc-result-label { font-size: 0.78rem; color: #888; text-transform: uppercase; letter-spacing: 0.06em; }
.ofc-result-number {
	font-size: 2.4rem; font-weight: 600; color: #1a1a1a;
	margin: 0.4rem 0 0.2rem; line-height: 1;
}
.ofc-result-unit { font-size: 0.85rem; color: #666; }

.ofc-disclaimer {
	font-size: 0.78rem; color: #888; line-height: 1.6; text-align: center;
	margin: 0; padding: 0 1rem;
}

@media (max-width: 700px) {
	.ofc-form { grid-template-columns: 1fr; }
	.ofc-result-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   [press_strip] — small "Featured in" horizontal list.
   -------------------------------------------------------------------------- */
.press-strip {
	max-width: 1100px; margin: 0 auto; text-align: center;
	padding: 1rem 1rem;
}
.press-strip-label {
	display: block; font-size: 0.78rem; color: #888;
	letter-spacing: 0.15em; text-transform: uppercase;
	margin-bottom: 1rem;
}
.press-strip-list {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 0.4rem 2rem;
}
.press-strip-list a {
	color: #555; font-size: 0.9rem; text-decoration: none;
	letter-spacing: 0.02em; transition: color 0.15s ease;
}
.press-strip-list a:hover { color: #1a1a1a; text-decoration: underline; }

/* --------------------------------------------------------------------------
   [topical_articles] — 5-card grid for ΑΡΘΡΑ subcategory entry points.
   -------------------------------------------------------------------------- */
.topical-articles-grid {
	display: grid; grid-template-columns: repeat(5, 1fr);
	gap: 1rem; max-width: 1200px; margin: 0 auto;
}

@media (max-width: 1100px) {
	.topical-articles-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}
@media (max-width: 600px) {
	.topical-articles-grid { grid-template-columns: 1fr; }
}

.topical-article-card {
	display: flex; flex-direction: column; padding: 1.5rem 1.3rem 1.4rem;
	background: #fff; border-radius: 4px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.04);
	text-decoration: none; color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	min-height: 200px;
}
.topical-article-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.10);
	transform: translateY(-2px);
}
.topical-article-title {
	font-size: 1.05rem; line-height: 1.3; font-weight: 600;
	margin: 0 0 0.6rem;
}
.topical-article-desc {
	font-size: 0.85rem; line-height: 1.55; color: #555;
	margin: 0 0 0.8rem; flex-grow: 1;
}
.topical-article-meta {
	font-size: 0.75rem; color: #888; letter-spacing: 0.04em;
	text-transform: uppercase; margin-top: auto;
}

/* --------------------------------------------------------------------------
   [recent_articles] shortcode — 3-card grid for the homepage Articles teaser.
   -------------------------------------------------------------------------- */
.recent-articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	max-width: 1100px;
	margin: 0 auto;
}

@media (max-width: 900px) {
	.recent-articles-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
}

.recent-article-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.recent-article-card:hover {
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
}

.recent-article-image {
	display: block;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-color: #e9eef3;
}

.recent-article-body {
	padding: 1.4rem 1.4rem 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.recent-article-date {
	font-size: 0.78rem;
	color: #888;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.recent-article-title {
	font-size: 1.15rem;
	line-height: 1.4;
	font-weight: 600;
	margin: 0;
}

.recent-article-title a {
	color: inherit;
	text-decoration: none;
}

.recent-article-title a:hover {
	text-decoration: underline;
}

.recent-article-excerpt {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #444;
	margin: 0.2rem 0 0.4rem;
}

.recent-article-readmore {
	font-size: 0.85rem;
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 0.02em;
	margin-top: auto;
}

.recent-article-readmore:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   [articles_grouped] shortcode — articles listed under their category.
   Clean, minimal styling that fits any theme. The category title is a
   link to the full category archive in case the visitor wants the full
   posts-listing page.
   -------------------------------------------------------------------------- */
.articles-by-category {
	max-width: 760px;
	margin: 0 auto;
}

.articles-category-block {
	margin: 2.5em 0 3em;
}

.articles-category-block:first-child {
	margin-top: 0.5em;
}

.articles-category-title {
	font-size: 1.5em;
	margin: 0 0 0.6em;
	padding-bottom: 0.35em;
	border-bottom: 2px solid currentColor;
	letter-spacing: 0.01em;
}

.articles-category-title a {
	color: inherit;
	text-decoration: none;
}

.articles-category-title a:hover {
	text-decoration: underline;
}

.articles-category-count {
	font-size: 0.7em;
	font-weight: 400;
	opacity: 0.55;
	margin-left: 0.4em;
}

.articles-category-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.articles-category-list li {
	padding: 0.55em 0;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.06 );
}

.articles-category-list li:last-child {
	border-bottom: none;
}

.articles-category-list a {
	display: block;
	font-size: 1.05em;
	line-height: 1.45;
	text-decoration: none;
}

.articles-category-list a:hover {
	text-decoration: underline;
}
