/* ==========================================================================
   Training Gate Oman - main stylesheet
   Layout note: sections that need the mock-up's physical left/right order use
   .tg-phys (container is LTR, children keep the site's reading direction).
   ========================================================================== */

:root {
	--tg-orange: #e8590c;
	--tg-orange-d: #c94a06;
	--tg-brown: #5a2611;
	--tg-brown-d: #43190b;
	--tg-brown-dd: #341208;
	--tg-cream: #fbf4ec;
	--tg-tan: #f6ede3;
	--tg-line: #eadccd;
	--tg-ink: #2b1a11;
	--tg-muted: #6e5d53;
	--tg-white: #fff;
	--tg-radius: 8px;
	--tg-gap: 22px;
	--tg-font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
	--d: rtl;
}
body.tg-ltr { --d: ltr; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--tg-font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--tg-ink);
	background: var(--tg-white);
	text-align: start;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; }
p { margin: 0 0 1em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--tg-orange); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; inset-inline-start: 8px; width: auto; height: auto; clip: auto; clip-path: none;
	background: var(--tg-white); color: var(--tg-ink); padding: 10px 16px; z-index: 1000; margin: 0;
}

.tg-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.tg-narrow { max-width: 860px; }
.tg-center { text-align: center; }
.tg-phys { direction: ltr; }
.tg-phys > * { direction: var(--d); }
.tg-hide-sm { display: inherit; }

.tg-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.tg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 24px; border-radius: 6px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1.4; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.tg-btn .tg-icon { width: 1.1em; height: 1.1em; }
.tg-btn--orange { background: var(--tg-orange); color: #fff; }
.tg-btn--orange:hover { background: var(--tg-orange-d); }
.tg-btn--dark { background: var(--tg-brown); color: #fff; }
.tg-btn--dark:hover { background: var(--tg-brown-d); }
.tg-btn--outline { border-color: var(--tg-orange); color: var(--tg-orange); background: #fff; }
.tg-btn--outline:hover { background: var(--tg-orange); color: #fff; }
.tg-btn--lg { padding: 12px 30px; font-size: 16px; }
.tg-btn--block { display: flex; width: 100%; }

.tg-link { display: inline-flex; align-items: center; gap: 6px; color: var(--tg-orange); font-weight: 700; font-size: 14px; }
.tg-link:hover { color: var(--tg-orange-d); }
.tg-link .tg-icon { width: 1.05em; height: 1.05em; }

/* ---------- Section scaffolding ---------- */
.tg-section { padding-block: 56px; }
.tg-sec-title { font-size: clamp(24px, 2.6vw, 32px); text-align: center; position: relative; padding-bottom: 16px; margin-bottom: 32px; }
.tg-sec-title::after {
	content: ""; position: absolute; bottom: 0; inset-inline: 0; margin-inline: auto;
	width: 44px; height: 3px; background: var(--tg-orange); border-radius: 3px;
}
.tg-sec-title--start { text-align: start; }
.tg-sec-title--start::after { inset-inline: auto; inset-inline-start: 0; margin: 0; }
.tg-sec-head { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.tg-sec-head .tg-link { position: absolute; left: 0; top: 10px; }

/* ---------- Top bar ---------- */
.tg-topbar { background: var(--tg-brown-d); color: #f3e3d6; font-size: 12.5px; }
.tg-topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.tg-topbar__list, .tg-topbar__side { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tg-topbar__list li { display: inline-flex; align-items: center; gap: 7px; }
.tg-topbar__list .tg-icon { width: 14px; height: 14px; color: var(--tg-orange); }
.tg-topbar a:hover { color: #fff; }
.tg-topbar__lang { font-weight: 600; }
.tg-social { display: flex; gap: 12px; }
.tg-social a {
	display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff;
	transition: background-color .2s;
}
.tg-social a:hover { background: var(--tg-orange); }
.tg-social .tg-icon { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.tg-header { position: sticky; top: 0; z-index: 90; background: #fff; transition: box-shadow .25s; }
.tg-header.is-stuck { box-shadow: 0 6px 22px rgba(60, 25, 8, .12); }
.admin-bar .tg-header { top: 32px; }
.tg-header__in { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.tg-logo img, .tg-logo .custom-logo { height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.tg-logo--custom a { display: block; }
.tg-logo--icon { display: flex; align-items: center; gap: 10px; }
.tg-logo--icon img { height: 52px; width: 52px; }
.tg-logo__text strong { display: block; font-size: 17px; line-height: 1.2; color: var(--tg-brown); }
.tg-logo__text small { display: block; font-size: 12px; letter-spacing: .06em; color: var(--tg-orange); font-weight: 700; }
.tg-search-toggle {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	border: 0; background: transparent; color: var(--tg-ink); cursor: pointer;
}
.tg-search-toggle:hover { color: var(--tg-orange); }
.tg-nav { margin-left: auto; }
.tg-menu { display: flex; align-items: center; gap: 4px; }
.tg-menu > li { position: relative; }
.tg-menu a { display: block; padding: 10px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; position: relative; }
.tg-menu > li > a::after {
	content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--tg-orange);
	transform: scaleX(0); transition: transform .2s;
}
.tg-menu > li:hover > a, .tg-menu > .current-menu-item > a, .tg-menu > .current-menu-ancestor > a { color: var(--tg-orange); }
.tg-menu > li:hover > a::after, .tg-menu > .current-menu-item > a::after { transform: scaleX(1); }
.tg-menu .menu-item-has-children > a { padding-inline-end: 26px; }
.tg-menu .menu-item-has-children > a::before {
	content: ""; position: absolute; inset-inline-end: 10px; top: 50%; width: 6px; height: 6px;
	border-inline-end: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
}
.tg-menu .sub-menu {
	position: absolute; inset-inline-start: 0; top: 100%; min-width: 220px; background: #fff;
	border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 8px;
	box-shadow: 0 14px 30px rgba(60, 25, 8, .14); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.tg-menu li:hover > .sub-menu, .tg-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tg-menu .sub-menu a { padding: 9px 12px; border-radius: 6px; }
.tg-menu .sub-menu a:hover { background: var(--tg-tan); color: var(--tg-orange); }
.tg-burger { display: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--tg-line); border-radius: 8px; background: #fff; cursor: pointer; margin-left: auto; }
.tg-burger__close { display: none; }
.tg-burger[aria-expanded="true"] .tg-burger__open { display: none; }
.tg-burger[aria-expanded="true"] .tg-burger__close { display: block; }
.tg-search-panel { border-top: 1px solid var(--tg-line); background: var(--tg-cream); padding-block: 14px; }
.tg-search-panel[hidden] { display: none; }
.tg-searchform { display: flex; gap: 10px; }
.tg-searchform input[type="search"] {
	flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--tg-line); border-radius: 6px; background: #fff;
}

/* ---------- Hero ---------- */
.tg-hero {
	position: relative; overflow: hidden;
	background: linear-gradient(180deg, #fff 0%, var(--tg-cream) 100%);
}
.tg-hero::before, .tg-hero::after { content: ""; position: absolute; pointer-events: none; }
.tg-hero::before { /* orange sweep */
	left: -14%; bottom: -46%; width: 62%; height: 86%; border-radius: 50%;
	border-top: 9px solid var(--tg-orange); transform: rotate(-9deg);
}
.tg-hero::after { /* brown foot */
	left: -20%; bottom: -70%; width: 58%; height: 84%; border-radius: 50%; background: var(--tg-brown);
	transform: rotate(-9deg);
}
.tg-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 420px; gap: 24px; }
.tg-hero__text { padding-block: 40px 70px; max-width: 520px; }
.tg-hero__title { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.3; margin-bottom: 16px; }
.tg-hero__title span { color: var(--tg-orange); }
.tg-hero__lead { font-size: 18px; color: var(--tg-muted); max-width: 30em; margin-bottom: 26px; }
.tg-hero__media { position: relative; align-self: stretch; min-height: 320px; }
.tg-hero__media img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%);
	mask-image: linear-gradient(to right, transparent 0, #000 28%);
}
.tg-hero__stats {
	position: absolute; top: 24px; right: 0; z-index: 2; width: 210px;
	background: rgba(255, 255, 255, .95); border: 1px solid var(--tg-line); border-radius: var(--tg-radius);
	padding: 8px 14px; box-shadow: 0 10px 28px rgba(60, 25, 8, .14);
}
.tg-hero__stats li { display: flex; align-items: center; gap: 12px; padding-block: 9px; }
.tg-hero__stats li + li { border-top: 1px solid var(--tg-line); }
.tg-hero__stats .tg-icon { width: 30px; height: 30px; color: var(--tg-orange); }
.tg-hero__stats strong { display: block; font-size: 13.5px; line-height: 1.3; }
.tg-hero__stats small { display: block; font-size: 11.5px; color: var(--tg-muted); line-height: 1.3; }

/* ---------- Category cards ---------- */
.tg-cats { padding-block: 34px 10px; }
.tg-cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tg-gap); direction: var(--d); }
.tg-cat {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
	background: var(--tg-tan); border: 1px solid var(--tg-line); border-radius: var(--tg-radius);
	padding: 22px 16px 16px; height: 100%; transition: border-color .2s, background-color .2s;
}
.tg-cat:hover { border-color: var(--tg-orange); background: #fff; }
.tg-cat__icon { color: var(--tg-orange); margin-bottom: 8px; }
.tg-cat__icon .tg-icon { width: 44px; height: 44px; stroke-width: 1.6; }
.tg-cat strong { font-size: 17px; }
.tg-cat small { color: var(--tg-muted); font-size: 13.5px; }
.tg-cat__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--tg-orange); font-size: 13px; font-weight: 700; }
.tg-cat__more .tg-icon { width: 14px; height: 14px; }

/* ---------- About ---------- */
.tg-about__in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.tg-about__media img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; border: 1px solid var(--tg-line); }
.tg-about__body > p { color: var(--tg-muted); font-size: 17px; max-width: 34em; }
.tg-features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; direction: var(--d); }
.tg-features li { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: 12px; gap: 2px; }
.tg-features li + li { border-inline-start: 1px solid var(--tg-line); }
.tg-features .tg-icon { width: 40px; height: 40px; color: var(--tg-orange); margin-bottom: 6px; }
.tg-features strong { font-size: 15px; }
.tg-features small { color: var(--tg-muted); font-size: 14px; }

/* ---------- Slider ---------- */
.tg-slider { --gap: 20px; position: relative; padding-inline: 26px; }
.tg-slider__track {
	display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 4px 2px 8px; direction: var(--d);
}
.tg-slider__track::-webkit-scrollbar { display: none; }
.tg-slider__item { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; min-width: 0; }
.tg-slider__btn {
	position: absolute; top: 42%; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px;
	border-radius: 50%; background: #fff; border: 1px solid var(--tg-line); color: var(--tg-ink); cursor: pointer;
	box-shadow: 0 4px 12px rgba(60, 25, 8, .1); transition: background-color .2s, color .2s;
}
.tg-slider__btn:hover { background: var(--tg-orange); color: #fff; border-color: var(--tg-orange); }
.tg-slider__btn--left { left: 0; }
.tg-slider__btn--right { right: 0; }
.tg-slider__btn[hidden] { display: none; }
.tg-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.tg-slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #d8cbc0; cursor: pointer; }
.tg-slider__dots button[aria-current="true"] { background: var(--tg-orange); }

/* ---------- Course card ---------- */
.tg-course {
	display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius); overflow: hidden; padding-bottom: 14px; transition: box-shadow .2s, border-color .2s;
}
.tg-course:hover { border-color: #dcc6b3; box-shadow: 0 10px 26px rgba(60, 25, 8, .1); }
.tg-course__img { display: block; aspect-ratio: 16 / 9; background: var(--tg-tan); overflow: hidden; }
.tg-course__img img { width: 100%; height: 100%; object-fit: cover; }
.tg-course__ph { display: grid; place-items: center; height: 100%; color: var(--tg-orange); }
.tg-course__ph .tg-icon { width: 48px; height: 48px; }
.tg-course__title { font-size: 16px; text-align: center; padding: 14px 14px 6px; flex: 1; }
.tg-course__title a:hover { color: var(--tg-orange); }
.tg-course__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; color: var(--tg-muted); font-size: 12.5px; padding: 0 12px 12px; }
.tg-course__meta span { display: inline-flex; align-items: center; gap: 5px; }
.tg-course__meta .tg-icon { width: 14px; height: 14px; color: var(--tg-brown); }
.tg-course .tg-btn { margin: 0 14px; width: calc(100% - 28px); padding-block: 8px; font-size: 14px; }

/* ---------- Stats band ---------- */
.tg-stats { background: var(--tg-brown); color: #fff; padding-block: 30px; }
.tg-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); direction: var(--d); }
.tg-stats li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 16px; }
.tg-stats li + li { border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.tg-stats .tg-icon { width: 44px; height: 44px; color: #fff; stroke-width: 1.5; }
.tg-stats strong { display: block; font-size: 17px; line-height: 1.3; }
.tg-stats .tg-num { font-size: 30px; font-weight: 800; }
.tg-stats small { display: block; font-size: 13.5px; color: #ecd6c6; line-height: 1.3; }

/* ---------- CTA band ---------- */
.tg-ctaband { background: var(--tg-cream); border-bottom: 1px solid var(--tg-line); padding-block: 34px; }
.tg-ctaband__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tg-ctaband h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 4px; }
.tg-ctaband p { color: var(--tg-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.tg-quote {
	margin: 0; height: 100%; background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 20px;
}
.tg-quote__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tg-avatar {
	flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--tg-tan); color: var(--tg-brown); font-weight: 800; font-size: 17px; border: 1px solid var(--tg-line);
}
.tg-quote__head strong { display: block; font-size: 15px; line-height: 1.3; }
.tg-quote__head small { display: block; color: var(--tg-muted); font-size: 12.5px; line-height: 1.3; }
.tg-stars { display: flex; gap: 2px; color: #f5a000; margin-top: 4px; }
.tg-stars .tg-icon { width: 14px; height: 14px; stroke-width: 1; }
.tg-quote blockquote { margin: 0; color: var(--tg-muted); font-size: 14.5px; line-height: 1.8; }

/* ---------- News ---------- */
.tg-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tg-gap); direction: var(--d); }
.tg-post { background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); overflow: hidden; display: flex; flex-direction: column; }
.tg-post__img { display: block; aspect-ratio: 16 / 9; background: var(--tg-tan); overflow: hidden; }
.tg-post__img img { width: 100%; height: 100%; object-fit: cover; }
.tg-post__ph { display: block; height: 100%; background: linear-gradient(135deg, var(--tg-tan), var(--tg-line)); }
.tg-post__body { padding: 16px 18px 20px; }
.tg-post__body time { display: block; font-size: 12.5px; color: var(--tg-muted); text-align: end; margin-bottom: 6px; }
.tg-post__body h2, .tg-post__body h3 { font-size: 17px; margin-bottom: 8px; }
.tg-post__body h2 a:hover, .tg-post__body h3 a:hover { color: var(--tg-orange); }
.tg-post__body p { color: var(--tg-muted); font-size: 14px; margin: 0; }

/* ---------- Partners ---------- */
.tg-partners { padding-block: 40px 56px; }
.tg-partners__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 64px; }
.tg-partners__row img { max-height: 64px; width: auto; object-fit: contain; }
.tg-partners__row a { display: block; transition: transform .2s; }
.tg-partners__row a:hover { transform: translateY(-2px); }

/* ---------- Newsletter ---------- */
.tg-newsletter { background: var(--tg-cream); border-block: 1px solid var(--tg-line); padding-block: 30px; }
.tg-newsletter__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.tg-newsletter__text { display: flex; align-items: center; gap: 20px; }
.tg-newsletter__text > .tg-icon { width: 58px; height: 58px; color: var(--tg-orange); stroke-width: 1.3; }
.tg-newsletter h2 { font-size: 20px; }
.tg-newsletter p { color: var(--tg-muted); margin: 0; font-size: 14px; }
.tg-newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 460px; direction: ltr; }
.tg-newsletter__form > * { direction: var(--d); }
.tg-newsletter__form input[type="email"] {
	flex: 1; min-width: 0; padding: 12px 16px; border: 1.5px solid var(--tg-line); border-radius: 6px; background: #fff;
}
.tg-hp { position: absolute; inset-inline-start: -9999px; }
.tg-notice { flex-basis: 100%; margin: 4px 0 0; font-size: 13.5px; font-weight: 600; }
.tg-notice--ok { color: #1c7a3b; }
.tg-notice--err { color: #b3261e; }

/* ---------- Footer ---------- */
.tg-footer { background: var(--tg-brown-d); color: #eedccf; margin-top: 0; }
.tg-footer__grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 40px; padding-block: 44px 34px; }
.tg-footer__logo img { height: 92px; width: auto; max-width: 240px; object-fit: contain; }
.tg-footer__brand p { margin: 14px 0 0; font-size: 14px; color: #d9c2b1; max-width: 26em; }
.tg-footer__contact { display: grid; gap: 14px; align-content: start; }
.tg-footer__contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; }
.tg-footer__contact .tg-icon { width: 18px; height: 18px; margin-top: 4px; color: #fff; }
.tg-footer__title { font-size: 16px; color: #fff; margin-bottom: 14px; }
.tg-footer__links { display: grid; gap: 8px; font-size: 14.5px; }
.tg-footer__links a:hover, .tg-footer__contact a:hover { color: var(--tg-orange); }
.tg-footer__social { display: flex; gap: 12px; }
.tg-footer__social a {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: #fff; color: var(--tg-brown); transition: background-color .2s, color .2s;
}
.tg-footer__social a:hover { background: var(--tg-orange); color: #fff; }
.tg-footer__social .tg-icon { width: 18px; height: 18px; }
.tg-footer__bar { background: var(--tg-brown-dd); font-size: 13px; color: #d9c2b1; }
.tg-footer__bar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.tg-footer__copy { margin: 0; }
.tg-legal { display: flex; gap: 0; }
.tg-legal li + li::before { content: "|"; margin-inline: 12px; opacity: .5; }
.tg-legal a:hover { color: var(--tg-orange); }

/* ---------- Inner pages ---------- */
.tg-banner { background: linear-gradient(120deg, var(--tg-brown) 0%, var(--tg-brown-d) 100%); color: #fff; padding-block: 44px; position: relative; overflow: hidden; }
.tg-banner::after { content: ""; position: absolute; left: -6%; bottom: -60%; width: 34%; height: 130%; border-radius: 50%; border-top: 7px solid var(--tg-orange); transform: rotate(-9deg); }
.tg-banner h1 { font-size: clamp(26px, 3.4vw, 38px); position: relative; z-index: 1; }
.tg-banner p { margin: 8px 0 0; color: #ecd6c6; position: relative; z-index: 1; }
.tg-crumbs { display: flex; gap: 8px; font-size: 13px; color: #e2c9b7; margin-bottom: 10px; position: relative; z-index: 1; }
.tg-crumbs a:hover { color: #fff; }
.tg-content { font-size: 17px; }
.tg-content h2, .tg-content h3 { margin: 1.6em 0 .6em; }
.tg-content a { color: var(--tg-orange-d); text-decoration: underline; text-underline-offset: 3px; }
.tg-content ul, .tg-content ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.tg-content ul { list-style: disc; }
.tg-content ol { list-style: decimal; }
.tg-content__thumb { margin-bottom: 24px; border-radius: 10px; overflow: hidden; }
.tg-content__date { color: var(--tg-muted); font-size: 14px; }
.tg-grid--courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--tg-gap); }
.tg-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.tg-filter a { display: block; padding: 8px 18px; border: 1px solid var(--tg-line); border-radius: 999px; font-weight: 600; font-size: 14px; background: #fff; }
.tg-filter a:hover, .tg-filter a[aria-current="page"] { background: var(--tg-orange); border-color: var(--tg-orange); color: #fff; }
.tg-course-single { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.tg-side { background: var(--tg-tan); border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 22px; position: sticky; top: 110px; }
.tg-side h2 { font-size: 18px; margin-bottom: 14px; }
.tg-side ul { display: grid; gap: 10px; margin-bottom: 18px; }
.tg-side li { display: flex; gap: 10px; align-items: center; }
.tg-side .tg-icon { color: var(--tg-orange); }
.tg-side__call { margin: 14px 0 0; font-size: 14px; text-align: center; }
.tg-results { display: grid; gap: 20px; margin-top: 28px; }
.tg-results h2 { font-size: 20px; }
.tg-results a:hover { color: var(--tg-orange); }
.tg-empty { text-align: center; color: var(--tg-muted); padding-block: 40px; }
.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links .page-numbers { padding: 6px 14px; border: 1px solid var(--tg-line); border-radius: 6px; font-weight: 600; }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { background: var(--tg-orange); border-color: var(--tg-orange); color: #fff; }
.tg-comments { margin-top: 48px; }
.tg-comments__list { list-style: none; padding: 0; }
.tg-comments input[type="text"], .tg-comments input[type="email"], .tg-comments input[type="url"], .tg-comments textarea {
	width: 100%; padding: 10px 14px; border: 1.5px solid var(--tg-line); border-radius: 6px;
}
.comment-form input[type="submit"] { background: var(--tg-orange); color: #fff; border: 0; padding: 10px 26px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.alignwide { max-width: 1100px; }
.wp-caption, .gallery-caption { font-size: 13px; color: var(--tg-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.tg-menu a { padding-inline: 8px; font-size: 13.5px; }
	.tg-slider { --per: 3 !important; }
	.tg-testi .tg-slider { --per: 2 !important; }
}

@media (max-width: 960px) {
	.tg-burger { display: grid; }
	.tg-header__in { flex-wrap: wrap; }
	.tg-header__cta { display: none; }
	.tg-nav {
		display: none; flex-basis: 100%; order: 10; margin: 0; border-top: 1px solid var(--tg-line); padding-block: 8px 14px;
		max-height: calc(100vh - 150px); overflow-y: auto;
	}
	.tg-nav.is-open { display: block; }
	.tg-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.tg-menu a { padding: 12px 6px; }
	.tg-menu > li > a::after { display: none; }
	.tg-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 16px 6px; min-width: 0; }
	.tg-menu .menu-item-has-children > a::before { display: none; }
	.tg-search-toggle { margin-left: auto; order: 2; }
	.tg-burger { order: 3; margin-left: 0; }

	.tg-hero__in { grid-template-columns: 1fr; min-height: 0; }
	.tg-hero__media { min-height: 260px; order: -1; margin-inline: -24px; }
	.tg-hero__media img { -webkit-mask-image: none !important; mask-image: none !important; }
	.tg-hero__text { padding-block: 24px 60px; max-width: none; }
	.tg-hero__stats { top: auto; bottom: 12px; right: 12px; width: 190px; }

	.tg-cats__grid { grid-template-columns: repeat(2, 1fr); }
	.tg-about__in { grid-template-columns: 1fr; gap: 28px; }
	.tg-about__media { order: -1; }
	.tg-news__grid { grid-template-columns: repeat(2, 1fr); }
	.tg-footer__grid { grid-template-columns: 1fr 1fr; }
	.tg-newsletter__in, .tg-ctaband__in { flex-direction: column; align-items: stretch; text-align: center; }
	.tg-newsletter__text { justify-content: center; }
	.tg-newsletter__form { flex-basis: auto; }
	.tg-course-single { grid-template-columns: 1fr; }
	.tg-side { position: static; }
	.admin-bar .tg-header { top: 46px; }
}

@media (max-width: 640px) {
	.tg-container { padding-inline: 16px; }
	.tg-hide-sm { display: none; }
	.tg-topbar__in { justify-content: center; }
	.tg-topbar__side { display: none; }
	.tg-section { padding-block: 40px; }
	.tg-slider, .tg-testi .tg-slider { --per: 1 !important; padding-inline: 0; }
	.tg-slider__btn { display: none; }
	.tg-sec-head { flex-direction: column; align-items: center; }
	.tg-sec-head .tg-link { position: static; margin: -14px 0 18px; }
	.tg-cats__grid { gap: 12px; }
	.tg-cat { padding: 16px 8px 12px; }
	.tg-cat strong { font-size: 15px; }
	.tg-features { grid-template-columns: 1fr; gap: 20px; }
	.tg-features li + li { border-inline-start: 0; border-top: 1px solid var(--tg-line); padding-top: 20px; }
	.tg-stats__grid { grid-template-columns: 1fr 1fr; row-gap: 22px; }
	.tg-stats li { flex-direction: column; text-align: center; gap: 6px; }
	.tg-stats li + li { border: 0; }
	.tg-news__grid { grid-template-columns: 1fr; }
	.tg-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.tg-footer__bar-in { flex-direction: column; text-align: center; }
	.tg-hero__stats { position: static; width: auto; margin: -34px 16px 0; }
	.tg-hero__media { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   v1.1 additions: language switch, English (LTR) tweaks, contact, gallery
   ========================================================================== */
.tg-topbar__lang {
	display: inline-flex; align-items: center; padding: 2px 12px; border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px; font-weight: 700; line-height: 1.6; transition: background-color .2s, border-color .2s;
}
.tg-topbar__lang:hover { background: var(--tg-orange); border-color: var(--tg-orange); color: #fff; }

/* English: mirror arrows that point "forward" in RTL */
body.tg-ltr .tg-icon--arrow-left,
body.tg-ltr .tg-btn .tg-icon--chevron-left { transform: scaleX(-1); }
body.tg-ltr .tg-post__body time { text-align: end; }

/* Contact page */
.tg-contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.tg-contact__intro { margin: 0 auto 32px; }
.tg-form { background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 28px; }
.tg-form h2 { font-size: 22px; margin-bottom: 4px; }
.tg-form__lead { color: var(--tg-muted); margin-bottom: 20px; }
.tg-form__row { margin-bottom: 16px; }
.tg-form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tg-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tg-form input[type="text"], .tg-form input[type="email"], .tg-form input[type="tel"], .tg-form textarea {
	width: 100%; padding: 11px 14px; border: 1.5px solid var(--tg-line); border-radius: 6px; background: #fff; color: var(--tg-ink);
}
.tg-form input:focus, .tg-form textarea:focus { border-color: var(--tg-orange); outline: 0; box-shadow: 0 0 0 3px rgba(232, 89, 12, .18); }
.tg-contact__info { background: var(--tg-tan); border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 28px; }
.tg-contact__info h2 { font-size: 20px; margin-bottom: 18px; }
.tg-contact__info ul { display: grid; gap: 18px; }
.tg-contact__info li { display: flex; gap: 14px; align-items: flex-start; }
.tg-contact__info .tg-icon { width: 22px; height: 22px; color: var(--tg-orange); margin-top: 4px; }
.tg-contact__info strong { display: block; font-size: 14px; }
.tg-contact__info a:hover { color: var(--tg-orange); }

/* Gallery */
.tg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; direction: var(--d); }
.tg-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--tg-radius); border: 1px solid var(--tg-line); background: var(--tg-tan); }
.tg-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tg-gallery a:hover img { transform: scale(1.05); }
.tg-lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.tg-lightbox::backdrop { background: rgba(30, 12, 4, .85); }
.tg-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.tg-lightbox__close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }

@media (max-width: 960px) {
	.tg-contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.tg-form__cols { grid-template-columns: 1fr; }
	.tg-form { padding: 20px; }
}

ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }
ul.page-numbers .page-numbers { display: block; padding: 6px 14px; border: 1px solid var(--tg-line); border-radius: 6px; font-weight: 600; }
ul.page-numbers .page-numbers.current, ul.page-numbers a.page-numbers:hover { background: var(--tg-orange); border-color: var(--tg-orange); color: #fff; }

/* ==========================================================================
   v1.2: registration, prices
   ========================================================================== */
.tg-course__price { text-align: center; margin: 0 0 10px; font-weight: 800; font-size: 18px; color: var(--tg-orange-d); }
.tg-course__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }
.tg-course__actions .tg-btn { margin: 0; width: auto; padding: 8px 6px; font-size: 13.5px; }
.tg-side__price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: #fff; border: 1px solid var(--tg-line); border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; }
.tg-side__price span { color: var(--tg-muted); font-size: 14px; }
.tg-side__price strong { font-size: 24px; color: var(--tg-orange-d); }

.tg-regform { padding: 28px; }
.tg-form__set { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.tg-form__set legend { font-size: 18px; font-weight: 800; padding: 0 0 12px; margin-bottom: 4px; border-bottom: 2px solid var(--tg-orange); display: block; width: 100%; }
.tg-form__set > .tg-form__row:first-of-type, .tg-form__set > legend + .tg-form__row { margin-top: 16px; }
.tg-form select, .tg-form input[type="number"], .tg-form input[type="date"] {
	width: 100%; padding: 11px 14px; border: 1.5px solid var(--tg-line); border-radius: 6px; background: #fff; color: var(--tg-ink);
}
.tg-form select:focus, .tg-form input[type="number"]:focus, .tg-form input[type="date"]:focus { border-color: var(--tg-orange); outline: 0; box-shadow: 0 0 0 3px rgba(232, 89, 12, .18); }
.tg-form__row--narrow { max-width: 220px; }
.tg-form__check { display: flex; gap: 10px; align-items: flex-start; }
.tg-form__check input { margin-top: 7px; width: 18px; height: 18px; accent-color: var(--tg-orange); flex: none; }
.tg-form__check label { font-weight: 500; margin: 0; }
.tg-form__check a { color: var(--tg-orange-d); text-decoration: underline; }
.tg-regsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; background: var(--tg-tan); border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 16px 18px; margin-top: 8px; }
.tg-regsum[hidden] { display: none; }
.tg-regsum span { display: block; font-size: 12.5px; color: var(--tg-muted); }
.tg-regsum strong { display: block; font-size: 16px; }
.tg-regsum__total strong { font-size: 22px; color: var(--tg-orange-d); }
.tg-regsum p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--tg-muted); }
.tg-reg-done { text-align: center; background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 44px 24px; }
.tg-reg-done .tg-icon { width: 56px; height: 56px; color: var(--tg-orange); margin-inline: auto; }
.tg-reg-done h2 { font-size: 26px; margin: 10px 0 8px; }
.tg-reg-done__ref { color: var(--tg-muted); }
.tg-reg-done__ref strong { color: var(--tg-ink); font-size: 18px; }
@media (max-width: 640px) {
	.tg-regform { padding: 18px; }
	.tg-form__row--narrow { max-width: none; }
}
