/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Astra Child Theme
 Author:       TeenuseDisainer
 Author URI:   
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/



/* ==========================================================
   Koolitajate arhiiv
   ========================================================== */

.td-koolitajad-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 30px;
	margin-top: 40px;
}

/* Kaart */
.td-koolitaja-kaart {
	text-align: center;
}

/* Ringikujuline pilt */
.td-koolitaja-pilt {
	width: 180px;
	max-width: 100%;
	margin: 0 auto 20px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
}

.td-koolitaja-pilt img {
	width: 100%;
	height: 100%;
	object-fit: cover;      /* kärbib pildi ruudukujuliseks, ei venita */
	object-position: center top;   /* nägu jääb kadreeringusse */
	display: block;
}

/* Nimi */
.td-koolitaja-nimi {
	font-size: 20px;
	line-height: 1.3;
	margin: 0 0 10px;
}

/* Kirjeldus */
.td-koolitaja-kirjeldus {
	font-size: 1em;
	line-height: 1.6;
}

.td-koolitaja-kirjeldus p {
	margin: 0;
}

/* Responsiivsus */
@media (max-width: 1024px) {
	.td-koolitajad-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.td-koolitajad-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.td-koolitajad-grid {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================
   KOOLITUSE LEHT
   Lisa see astra-child/style.css lõppu.
   ========================================================== */

   /* Koolituse lehe sisu servadest eemale */
.ast-single-post.ast-page-builder-template .site-main > article, .ast-page-builder-template .post-navigation {
	padding-left: 50px;
	padding-right: 50px;
}

.ast-single-post.ast-page-builder-template .site-main > article, .ast-page-builder-template .post-navigation {
	.single-koolitus #primary {
		padding-left: 20px;
		padding-right: 20px;
	}
}

:root {
	--td-oranz: var(--ast-global-color-0);
	--td-hall-taust: #EDEDED;
	--td-tekst: #334155;
	--td-tekst-tuhm: #4A4A4A;
}

/* ---------- PÄIS ---------- */

.td-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	margin-bottom: 50px;
}

/* Sildid */
.td-sildid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.td-silt {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--td-oranz);
	border-radius: 100px;
	color: var(--td-oranz);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
}

/* Pealkiri */
.td-hero-pealkiri {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 52px;
	line-height: 1.1;
	font-weight: 400;
	color: var(--td-tekst);
	margin: 0 0 22px;
}

/* Lühikirjeldus */
.td-hero-lyhi {
	font-family: "Poppins", sans-serif;
	font-size: 1em;
	line-height: 1.65;
	color: var(--td-tekst-tuhm);
	max-width: 46em;
	margin-bottom: 30px;
}

.td-hero-lyhi p:last-child {
	margin-bottom: 0;
}

/* Nupp */
.td-nupp {
	display: inline-block;
	font-family: "Poppins", sans-serif;
	background: var(--td-oranz);
	color: #fff;
	padding: 15px 30px;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}

.td-nupp:hover,
.td-nupp:focus {
	background: #CF441F;
	color: #fff;
}

/* Märkus nupu all */
.td-hero-marge {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--td-tekst);
}

.td-marge-ikoon {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #C4C4C4;
	flex-shrink: 0;
}

/* Pilt */
.td-hero-pilt img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 14px;
}

/* ---------- INFORIBA ---------- */

.td-inforiba {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	background: var(--td-hall-taust);
	border-radius: 6px;
	padding: 34px 20px;
	margin-bottom: 60px;
}

.td-inforiba-tulp {
	text-align: center;
}

.td-inforiba-silt {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--td-tekst);
	margin: 0 0 8px;
}

.td-inforiba-vaartus {
	font-size: 1em;
	font-family: "Poppins", sans-serif;
	line-height: 1.4;
	color: var(--td-tekst-tuhm);
	margin: 0;
}

/* ---------- RESPONSIIVSUS ---------- */

@media (max-width: 1024px) {

	.td-hero {
		gap: 40px;
	}

	.td-hero-pealkiri {
		font-size: 40px;
	}

	.td-inforiba {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 20px;
	}
}

@media (max-width: 768px) {

	.td-hero {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	/* Mobiilis pilt esimesena. */
	.td-hero-pilt {
		order: -1;
	}

	.td-hero-pealkiri {
		font-size: 32px;
	}

	.td-nupp {
		display: block;
		text-align: center;
	}

	.td-hero-marge {
		justify-content: center;
	}
}

@media (max-width: 480px) {

	.td-inforiba {
		grid-template-columns: 1fr;
		padding: 26px 20px;
	}
}

/* ---------- SISUPLOKID ---------- */

.td-plokk {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 60px;
	margin-bottom: 60px;
	align-items: start;
}

.td-plokk > h2 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--td-tekst);
	margin: 0;
}

/* Kogu ülejäänud sisu läheb paremasse veergu. */
.td-plokk > *:not(h2) {
	grid-column: 2;
}

.td-plokk p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--td-tekst-tuhm);
	margin: 0 0 22px;
	max-width: 46em;
}

.td-plokk p:last-child {
	margin-bottom: 0;
}

.td-plokk a {
	color: var(--td-oranz);
	text-decoration: none;
}

.td-plokk a:hover,
.td-plokk a:focus {
	text-decoration: underline;
}

.td-plokk ul,
.td-plokk ol {
	font-size: 16px;
	line-height: 1.75;
	color: var(--td-tekst-tuhm);
	margin: 0 0 22px;
	padding-left: 1.2em;
	max-width: 46em;
}

.td-plokk li {
	margin-bottom: 8px;
}

/* Esiletõstetud kast - tehakse redaktoris tsitaadiplokiga. */
.td-plokk blockquote {
	border-left: 3px solid var(--td-oranz);
	padding: 4px 0 4px 20px;
	margin: 30px 0 0;
	max-width: 46em;
}

.td-plokk blockquote p {
	font-size: 15px;
	line-height: 1.65;
	margin-bottom: 0;
}

.td-plokk blockquote strong {
	color: var(--td-tekst);
	font-weight: 600;
}

/* ---------- RESPONSIIVSUS ---------- */

@media (max-width: 1024px) {

	.td-plokk {
		grid-template-columns: 200px minmax(0, 1fr);
		gap: 40px;
	}

	.td-plokk > h2 {
		font-size: 26px;
	}
}

@media (max-width: 768px) {

	.td-plokk {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-bottom: 45px;
	}

	.td-plokk > *:not(h2) {
		grid-column: 1;
	}
}