/*
Theme Name: آبگون (Abgun)
Theme URI: https://iranswimming.com/
Author: خانه شنا
Description: قالب اختصاصی و راست‌چین مراکز تخصصی شنا با الهام از چیدمان Equistra؛ هماهنگ با افزونهٔ «دستیار سرمربی». صفحهٔ اول با اسلایدر، خدمات، دوره‌ها، مربیان، نقشهٔ مراکز، رنکینگ، مسابقات، نظرات و اخبار؛ برگه‌ها و منوها خودکار ساخته می‌شوند.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abgun
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, sports
*/

@font-face { font-family: 'AbgunEstedad'; src: url('assets/fonts/Estedad.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'AbgunVazir'; src: url('assets/fonts/Vazirmatn.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
	--eq-ink: #0e1726;
	--eq-ink-2: #2f3b52;
	--eq-muted: #66728a;
	--eq-deep: #0a1f5c;
	--eq-deep-2: #0c2a7a;
	--eq-blue: #1747d6;
	--eq-sky: #3b6bff;
	--eq-aqua: #2dd4bf;
	--eq-aqua-d: #14b8a6;
	--eq-coral: #ff5a36;
	--eq-sand: #f4f1ea;
	--eq-sand-2: #ebe5d9;
	--eq-paper: #ffffff;
	--eq-night: #08111f;
	--eq-line: rgba(14, 23, 38, .1);
	--eq-r: 24px;
	--eq-r-lg: 32px;
	--eq-shadow: 0 18px 50px -24px rgba(10, 31, 92, .35);
	--eq-head-h: 84px;
	--eq-f-head: 'AbgunEstedad', 'AbgunVazir', Tahoma, sans-serif;
	--eq-f-body: 'AbgunVazir', 'AbgunEstedad', Tahoma, sans-serif;
	--eq-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--eq-head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--eq-paper); color: var(--eq-ink); font-family: var(--eq-f-body); font-size: 16px; line-height: 1.9; direction: rtl; text-align: right; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--eq-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--eq-deep); }
h1, h2, h3, h4, h5, h6 { font-family: var(--eq-f-head); color: var(--eq-ink); line-height: 1.35; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--eq-aqua); color: var(--eq-ink); }
:focus-visible { outline: 3px solid var(--eq-aqua); outline-offset: 3px; border-radius: 6px; }
.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 !important; width: 1px; word-wrap: normal !important; }
.eq-skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 999; background: var(--eq-ink); color: #fff; padding: .6rem 1rem; border-radius: 12px; }
.eq-skip:focus { top: 12px; color: #fff; }
.alignleft { float: left; margin: .3em 0 1em 1.5em; }
.alignright { float: right; margin: .3em 1.5em 1em 0; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--eq-muted); }
.sticky, .gallery-caption, .bypostauthor { outline: 0; }

/* Keep team logos fully visible in image cards. */
.eq-gal img[src*="/pub/img/teamlogo/"],
.eq-center-media img[src*="/pub/img/teamlogo/"],
.eq-ccard-media img[src*="/pub/img/teamlogo/"] {
	object-fit: contain;
}

.eq-publication-image { display: block; width: 100%; max-height: 36rem; object-fit: contain; }
.eq-publication-related { margin-block: 2rem; }
.eq-publication-related ul { list-style: none; padding: 0; display: grid; gap: .75rem; }
.eq-publication-related a {
	display: block;
	padding: .8rem 1rem;
	border: 1px solid #dae8ee;
	border-radius: .8rem;
	background: #f5fbfd;
	font-weight: 700;
}
.eq-publication-related a small { display: block; color: var(--eq-muted); margin-top: .25rem; }
.swa-site.swa-center :is(#news, #articles) .swa-cards,
.swa-site.swa-center #gallery .swa-gallery {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}
.swa-site.swa-center :is(#news, #articles) .swa-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.swa-site.swa-center :is(#news, #articles) .swa-card-img,
.swa-site.swa-center #gallery .swa-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.swa-site.swa-center #gallery .swa-gallery > a {
	display: block;
	overflow: hidden;
	border-radius: 12px;
}
.swa-site.swa-center :is(#news, #articles) .swa-card-b {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: .6rem;
	padding: 1rem;
}
.swa-site.swa-center :is(#news, #articles) .swa-card-b h3,
.swa-site.swa-center :is(#news, #articles) .swa-card-b p {
	margin: 0;
	overflow-wrap: anywhere;
}
.swa-site.swa-center :is(#news, #articles) .swa-card-b p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.swa-site.swa-center #news .swa-card-b small,
.swa-site.swa-center #articles .swa-card-b .swa-btn-lite { margin-top: auto; }

@media (max-width: 800px) {
	.swa-site.swa-center :is(#news, #articles) .swa-cards,
	.swa-site.swa-center #gallery .swa-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.swa-site.swa-center :is(#news, #articles) .swa-cards,
	.swa-site.swa-center #gallery .swa-gallery { grid-template-columns: minmax(0, 1fr); }
}

.swa-site.swa-center #gallery .swa-album-card {
	border: 1px solid #dae8ee;
	background: #fff;
	color: var(--eq-ink, #142938);
	text-decoration: none;
}
.swa-site.swa-center #gallery .swa-album-card span { display: block; padding: .8rem 1rem; font-weight: 700; }
.swa-site.swa-center #gallery .swa-album-card:hover span { text-decoration: underline; }
.eq-album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.eq-album-grid a, .eq-album-grid video { display: block; overflow: hidden; border-radius: 12px; }
.eq-album-grid img, .eq-album-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #122736; }

.swa-site.swa-center .swa-chero-in > img[src*="/pub/img/teamlogo/"] {
	box-sizing: border-box;
	padding: 10px;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 3px 14px rgba(12, 34, 51, .25);
}

.swa-publication-section, .swa-publication-row {
	border: 1px solid #d7e4ed;
	border-radius: 10px;
	background: #fff;
	margin-block: .4rem;
}
.swa-publication-section > summary, .swa-publication-row > summary {
	cursor: pointer;
	padding: .65rem .8rem;
	color: #193550;
}
.swa-publication-section > summary { font-weight: 700; background: #f3f7fb; border-radius: 9px; }
.swa-publication-label {
	display: inline-block;
	max-inline-size: calc(100% - 1.5rem);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}
.swa-publication-content { min-width: 0; padding: 0 .8rem .65rem; overflow-wrap: anywhere; }
.swa-publication-content .swa-post-img { display: block; width: min(100%, 20rem); max-height: 12rem; object-fit: contain; }

.swa-publication-content [hidden] { display: none; }

.eq-elementor-album .elementor-image-gallery .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 1rem;
	margin: 0;
}
.eq-elementor-album .elementor-image-gallery .gallery .gallery-item {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
.eq-elementor-album .gallery-item a { display: block; overflow: hidden; border-radius: 12px; }
.eq-elementor-album .gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.eq-album-videos { margin-block-start: 1.5rem; }
