/*
Theme Name:   SVC Astra
Description:  Swiss Vitiligo Center — Astra child theme reproducing the original Ribosome design (top bar, banner, dark menu, right sidebar, dark footer).
Template:     astra
Version:      1.0.0
Author:       Geneva Webstudio
Text Domain:  svc-astra
*/

/* ---------- Tokens (from the original Ribosome settings) ---------- */
:root {
	--svc-blue: #0073aa;      /* ribosome_color_tema */
	--svc-dark: #222222;      /* dark top bar, menu and footer */
	--svc-text: #333333;
	--svc-line: #e5e5e5;
	--svc-width: 1144px;      /* width of the banner image */
	--svc-serif: 'Noto Serif', 'Droid Serif', Georgia, serif;
}

/* ---------- Page: boxed, centred, like Ribosome ---------- */
body,
body.ast-separate-container { background: #ffffff; }
#page {
	max-width: var(--svc-width);
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.18);
}
body, button, input, select, textarea, .ast-button,
.entry-content, .widget, h1, h2, h3, h4, h5, h6, .entry-title {
	font-family: var(--svc-serif);
}
body { color: var(--svc-text); font-size: 15px; line-height: 1.7; }
a { color: var(--svc-blue); }
a:hover { color: #005a87; }

/* ---------- Top bar ---------- */
.svc-topbar { background: var(--svc-dark); }
.svc-topbar__inner {
	display: flex; justify-content: flex-end; align-items: center; gap: 4px;
	min-height: 35px; padding: 0 14px;
}
.svc-topbar a, .svc-topbar button {
	display: inline-grid; place-items: center; width: 28px; height: 28px;
	color: #fff; background: none; border: 0; padding: 0; cursor: pointer;
}
.svc-topbar a:hover, .svc-topbar button:hover { color: #4fb6e8; }
.svc-topbar svg { width: 18px; height: 18px; fill: currentColor; }
.svc-topbar__search svg { fill: none; stroke: #4fb6e8; stroke-width: 2.4; }
.svc-search { display: none; background: var(--svc-dark); padding: 0 14px 10px; }
.svc-search.is-open { display: block; }
.svc-search form { display: flex; justify-content: flex-end; gap: 6px; }
.svc-search input[type=search] { max-width: 260px; padding: 6px 10px; border: 0; }
.svc-search button { background: var(--svc-blue); color: #fff; border: 0; padding: 6px 14px; }

/* ---------- Banner ---------- */
.svc-banner { line-height: 0; }
.svc-banner img { width: 100%; height: auto; display: block; }

/* ---------- Menu bar ---------- */
.svc-nav { background: var(--svc-dark); position: relative; }
.svc-nav__toggle {
	display: none; width: 100%; padding: 10px 14px; text-align: left;
	background: var(--svc-dark); color: #fff; border: 0; cursor: pointer;
}
.svc-nav__toggle svg { width: 26px; height: 26px; fill: #fff; vertical-align: middle; }
.svc-menu, .svc-menu ul { list-style: none; margin: 0; padding: 0; }
.svc-menu { display: flex; flex-wrap: wrap; padding: 0 6px; }
.svc-menu > li { position: relative; }
.svc-menu a {
	display: block; padding: 16px 10px 15px 10px; margin-right: 14px;
	color: #fff; text-decoration: none; text-transform: uppercase;
	font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
}
.svc-menu a:hover,
.svc-menu .current-menu-item > a,
.svc-menu .current-menu-ancestor > a,
.svc-menu .current-lang > a { color: #4fb6e8; }
.svc-menu .menu-item-has-children > a::after {
	content: ''; display: inline-block; margin-left: 6px; vertical-align: 2px;
	border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.svc-menu .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 230px;
	background: var(--svc-dark); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
.svc-menu li:hover > .sub-menu,
.svc-menu li:focus-within > .sub-menu { display: block; }
.svc-menu .sub-menu a { padding: 10px 14px; margin: 0; text-transform: none; font-weight: 400; font-size: 13px; }
.svc-menu img { display: inline; vertical-align: middle; margin-right: 4px; }

/* ---------- Content + sidebar ---------- */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-separate-container .comments-area,
.ast-separate-container .ast-archive-description { background: #fff; padding: 0 !important; }
.ast-separate-container.ast-right-sidebar #primary,
.ast-plain-container #primary { padding-right: 30px; }
.site-content > .ast-container { max-width: 100%; padding: 30px 26px; }
#secondary { border-left: 1px solid var(--svc-line); padding-left: 20px; }
.entry-title, .page-title { font-size: 24px; font-weight: 400; color: var(--svc-text); }
.entry-content blockquote {
	border-left: 3px solid var(--svc-blue); padding: 4px 0 4px 14px; margin: 1.2em 20px;
	font-style: italic; background: none;
}

/* Widget titles: blue tab with an underline, like Ribosome */
#secondary .widget-title,
#secondary .widget h2 {
	position: relative; display: inline-block; margin: 0 0 14px; padding: 6px 12px;
	background: var(--svc-blue); color: #fff;
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
}
#secondary .widget { margin-bottom: 30px; border-bottom: 0; }
#secondary .widget > *:first-child { box-shadow: 0 2px 0 var(--svc-blue); }
#secondary .widget ul { margin: 0; padding: 0; list-style: none; }
#secondary .widget li { padding: 8px 4px; border-bottom: 1px solid var(--svc-line); font-size: 13px; }
#secondary .widget li a { color: var(--svc-text); }
#secondary .widget li a:hover { color: var(--svc-blue); }

/* ---------- Footer ---------- */
.svc-footer { background: var(--svc-dark); color: #fff; font-size: 13px; }
.svc-footer__inner {
	display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
	padding: 18px 18px 30px;
}
.svc-footer__center { text-align: center; }
.svc-footer a { color: #4fb6e8; }

/* ---------- Mobile ---------- */
@media (max-width: 921px) {
	.svc-nav__toggle { display: block; }
	.svc-menu { display: none; flex-direction: column; padding: 0 0 8px; }
	.svc-nav.is-open .svc-menu { display: flex; }
	.svc-menu a { margin: 0; padding: 11px 16px; }
	.svc-menu .sub-menu { display: block; position: static; box-shadow: none; padding-left: 14px; }
	.ast-separate-container.ast-right-sidebar #primary,
	.ast-plain-container #primary { padding-right: 0; }
	#secondary { border-left: 0; padding-left: 0; }
	.site-content > .ast-container { padding: 20px 16px; }
	.svc-footer__inner { grid-template-columns: 1fr; text-align: left; }
	.svc-footer__center { text-align: left; }
	.entry-content iframe { max-width: 100%; }
}

/* Never let anything push the page wider than the screen (the old theme's mobile bug) */
html, body { overflow-x: hidden; }
img, iframe, video { max-width: 100%; }

/* ---------- Astra extras we don't use ---------- */
/* Astra's own footer bar ("Powered by Astra") — our footer replaces it */
.site-footer:not(.svc-footer),
.site-below-footer-wrap, .site-primary-footer-wrap, .site-above-footer-wrap { display: none !important; }
/* No sticky footer: the footer follows the content, as on the old site */
#page { min-height: 0 !important; display: block !important; }
#content { min-height: 0 !important; }

/* ---------- Arabic (right-to-left) ---------- */
.rtl #secondary { border-left: 0; padding-left: 0; border-right: 0; }
.rtl.ast-right-sidebar #primary { padding-right: 0; padding-left: 30px; border-left: 1px solid var(--svc-line); border-right: 0; }
.rtl .svc-menu .menu-item-has-children > a::after { margin-left: 0; margin-right: 6px; }
.rtl .svc-menu .sub-menu { left: auto; right: 0; }
.rtl .entry-content blockquote { border-left: 0; border-right: 3px solid var(--svc-blue); padding: 4px 14px 4px 0; }

/* ---------- Detail fixes to match the original exactly ---------- */
/* 1. Smaller gap between the menu bar and the content */
.site-content > .ast-container { padding-top: 0 !important; }
#primary, #secondary { margin-top: 28px !important; margin-bottom: 28px !important; }
.ast-separate-container .entry-header, .entry-header { margin-bottom: 14px !important; }

/* 2. Page title: regular weight and size, like Ribosome */
.entry-title, .entry-title a, .page-title, h1.entry-title {
	font-size: 24px !important; font-weight: 400 !important; line-height: 1.3 !important;
}

/* 3. Menu text: smaller and tighter */
.svc-menu a { font-size: 11px; padding: 14px 8px 13px; margin-right: 12px; letter-spacing: 0; }

/* 4. Widget titles: blue tab sitting on a thin blue line across the sidebar */
#secondary .widget-title, #secondary .widget h2.widget-title {
	display: block; background: none; padding: 0; margin: 0 0 12px;
	border-bottom: 2px solid var(--svc-blue);
}
#secondary .widget-title span {
	display: inline-block; padding: 7px 12px 6px; background: var(--svc-blue); color: #fff;
	font-size: 12px; font-weight: 700; text-transform: uppercase;
}
#secondary .widget > *:first-child { box-shadow: none; }

/* Final sizes measured against the original side by side */
body, .entry-content, .entry-content p { font-size: 16px !important; }
.svc-menu a { font-size: 12.5px; padding: 15px 9px 14px; margin-right: 14px; }
.entry-title, .page-title, h1.entry-title { font-size: 26px !important; }
#secondary .widget li { font-size: 13.5px; }
