/* =========================================================
   Yoga Teacher Training pages (200 / 300 / 500 hour)
   Shared stylesheet – styled with the HOME page design tokens
   (same colours, fonts, radius and shadows as iys-home.css)
   ========================================================= */
.iys {
	--iys-primary: #7e8446;      /* olive – main buttons, icons */
	--iys-primary-dark: #636934;
	--iys-secondary: #ffda6b;    /* yellow – secondary buttons, badges */
	--iys-text: #484338;
	--iys-muted: #6f6a5f;
	--iys-gold: #a58251;         /* eyebrows, small accents */
	--iys-sand: #d4ad76;
	--iys-cream: #f5f0e3;
	--iys-cream-2: #f2e9d2;
	--iys-line: #e7dfcb;
	--iys-ff-head: "Crimson Text", Georgia, serif;
	--iys-ff-slab: "Roboto Slab", Georgia, serif;
	--iys-ff-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--iys-radius: 16px;
	--iys-radius-sm: 10px;
	--iys-shadow: 0 10px 30px rgba(72, 67, 56, .1);
	--iys-shadow-hover: 0 16px 40px rgba(72, 67, 56, .16);
	--iys-pattern: url("/wp-content/uploads/2024/08/pattern-chakras-alt-color-1.png");
	font-family: var(--iys-ff-body);
	color: var(--iys-text);
	background: #fff;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
.container{width:100%!Important;}
.iys h1, .iys h2, .iys h3, .iys h4 { font-family: var(--iys-ff-head); color: var(--iys-text); font-weight: 600; line-height: 1.2; }
.iys section { padding: 88px 0; }
.iys .bg-sand { background: var(--iys-pattern) center top repeat, var(--iys-cream); }
.iys .eyebrow { display: inline-block; margin-bottom: 8px; color: var(--iys-gold); text-transform: uppercase; letter-spacing: .12em; font-family: var(--iys-ff-slab); font-size: 14px; font-weight: 600; }
.iys .section-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: .5rem; }
.iys .divider { width: 120px; height: 2px; background: var(--iys-sand); margin: 14px auto 0; border-radius: 2px; }
.iys .text-green { color: var(--iys-primary) !important; }
.iys a { color: var(--iys-primary); }

/* Buttons – same as home .iys-btn */
.iys .btn-iys, .iys .btn-iys-outline, .iys .btn-iys-green {
	border-radius: 999px; padding: 13px 28px; font-family: var(--iys-ff-slab); font-weight: 500; font-size: 16px; line-height: 1.2;
	border: 2px solid var(--iys-primary); transition: background-color .25s, border-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.iys .btn-iys, .iys .btn-iys-green { background: var(--iys-primary); color: #fff; }
.iys .btn-iys:hover, .iys .btn-iys-green:hover { background: var(--iys-primary-dark); border-color: var(--iys-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(126, 132, 70, .3); }
.iys .btn-iys-outline { background: transparent; color: var(--iys-primary); }
.iys .btn-iys-outline:hover { background: var(--iys-primary); color: #fff; }
.iys .btn-iys-yellow { background: var(--iys-secondary); border: 2px solid var(--iys-secondary); color: var(--iys-text); border-radius: 999px; padding: 13px 28px; font-family: var(--iys-ff-slab); font-weight: 500; }
.iys .btn-iys, .iys .btn-iys-outline, .iys .btn-iys-green, .iys .btn-iys-yellow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; line-height: 1.2; }
.iys .btn-iys-yellow:hover { background: #f5c94a; border-color: #f5c94a; color: var(--iys-text); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245, 201, 74, .35); }

/* Hero */
.iys-ttc-hero { position: relative; min-height: clamp(520px, 68vh, 700px); display: flex; align-items: center; color: #fff; background: #333b28 center/cover no-repeat; }
.iys-ttc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,25,19,.82) 0%, rgba(13,25,19,.62) 47%, rgba(13,25,19,.24) 100%); }
.iys-ttc-hero .container { position: relative; z-index: 2; width:100%}
.iys-ttc-hero h1 { color: #fff; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.iys-ttc-hero .lead { font-size: 17px; }
.iys-ttc-hero .badge-pill { background: var(--iys-secondary); color: var(--iys-text); padding: 7px 16px; border-radius: 999px; font-family: var(--iys-ff-slab); font-size: 13px; font-weight: 600; display: inline-block; }
.iys-ttc-hero .stat { border-left: 3px solid var(--iys-secondary); padding-left: 14px; }
.iys-ttc-hero .stat strong { font-size: 28px; display: block; font-family: var(--iys-ff-head); }
.iys-crumb { font-family: var(--iys-ff-slab); }
.iys-crumb a { color: #fff !important; opacity: .85; text-decoration: none; }

/* Sticky sub-nav */
.iys-subnav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--iys-line); box-shadow: 0 6px 16px rgba(72,67,56,.06); }
.iys-subnav .nav { flex-wrap: nowrap; overflow-x: auto; padding: 10px 0; gap: 4px; scrollbar-width: none; }
.iys-subnav .nav-link { color: var(--iys-text) !important; font-family: var(--iys-ff-slab); font-weight: 500; font-size: 15px; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.iys-subnav .nav-link:hover { background: var(--iys-primary); color: #fff !important; }
.iys [id] { scroll-margin-top: 80px; }

/* Cards */
.iys .card-iys { background: #fff; border: 1px solid var(--iys-line); border-radius: var(--iys-radius); box-shadow: var(--iys-shadow); height: 100%;justify-content: center; }
.iys .price-card { border-top: 5px solid var(--iys-primary); }
.iys .price-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--iys-line); }
.iys .price-row strong { color: var(--iys-text); font-family: var(--iys-ff-head); font-size: 26px; font-weight: 700; }
.iys .glance li { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; }
.iys .glance i { color: var(--iys-primary); font-size: 18px; }

/* Inclusions */
.iys .incl-item { background: #fff; border: 1px solid var(--iys-line); border-radius: var(--iys-radius); padding: 20px 12px; text-align: center; transition: .3s; height: 100%; }
.iys .incl-item:hover { transform: translateY(-4px); box-shadow: var(--iys-shadow-hover); }
.iys .incl-item i { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--iys-primary); color: #fff; font-size: 22px; }
.iys .incl-item p { margin: 10px 0 0; font-family: var(--iys-ff-slab); font-weight: 500; color: var(--iys-text); font-size: 15px; }

/* Schedule timeline */
.iys .timeline { position: relative; padding-left: 30px; }
.iys .timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; border-left: 2px dashed var(--iys-sand); }
.iys .tl-item { position: relative; background: #fff; border: 1px solid var(--iys-line); border-radius: var(--iys-radius-sm); margin-bottom: 12px; }
.iys .tl-item::before { content: ""; position: absolute; left: -28px; width: 16px; height: 16px; border-radius: 50%; background: var(--iys-primary); border: 3px solid var(--iys-cream); box-shadow: 0 0 0 2px var(--iys-primary); }
.iys .tl-time { color: var(--iys-gold); font-family: var(--iys-ff-slab); font-weight: 600; min-width: 90px; }
.iys .tl-item .fw-medium { font-family: var(--iys-ff-head); font-size: 19px; font-weight: 600 !important; color: var(--iys-text) !important; }

/* Curriculum tabs – same look as the home course tabs */
.iys .curr-tabs { background: var(--iys-cream); border: 1px solid var(--iys-line); border-radius: 28px; padding: 6px 6px 10px; max-width: 980px; margin-left: auto; margin-right: auto; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--iys-primary) var(--iys-cream-2); -webkit-overflow-scrolling: touch; }
.iys .curr-tabs .nav-item { flex: 0 0 auto; }
.iys .curr-tabs .nav-item:first-child { margin-left: auto; }  /* centred when it fits, scrolls when it doesn't */
.iys .curr-tabs .nav-item:last-child { margin-right: auto; }
.iys .curr-tabs .nav-link { white-space: nowrap; }
.iys .curr-tabs::-webkit-scrollbar { height: 6px; }
.iys .curr-tabs::-webkit-scrollbar-track { background: var(--iys-cream-2); border-radius: 6px; margin: 0 20px; }
.iys .curr-tabs::-webkit-scrollbar-thumb { background: var(--iys-primary); border-radius: 6px; }
.iys .curr-tabs::-webkit-scrollbar-thumb:hover { background: var(--iys-primary-dark); }
.iys .curr-tabs .nav-link { background: transparent; color: var(--iys-text); border-radius: 999px; margin: 2px; padding: 10px 22px; font-family: var(--iys-ff-slab); font-weight: 500; font-size: 15px; border: 0; }
.iys .curr-tabs .nav-link:hover { color: var(--iys-primary); background: rgba(126,132,70,.1); }
.iys .curr-tabs .nav-link.active { background: var(--iys-primary); color: #fff; box-shadow: 0 6px 14px rgba(126,132,70,.3); }
.iys .check-list { list-style: none; padding: 0; }
.iys .check-list li { padding: 6px 0 6px 30px; position: relative; font-size: 15px; }
.iys .check-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--iys-primary); }
.iys .x-list li::before { content: "\F622"; color: #b5523b; }

/* Activities */
.iys .act-card { position: relative; border-radius: var(--iys-radius); overflow: hidden; height: 280px; box-shadow: var(--iys-shadow); }
.iys .act-card img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.iys .act-card:hover img { transform: scale(1.08); }
.iys .act-card .cap { position: absolute; inset: auto 0 0 0; padding: 50px 20px 18px; background: linear-gradient(transparent, rgba(13,25,19,.8)); color: #fff; }
.iys .act-card .cap span { color: var(--iys-secondary); font-family: var(--iys-ff-slab); font-weight: 600; font-size: 13px; }
.iys .act-card .cap h4 { color: #fff; margin: 0; font-size: 25px; }
.iys .rec-card { overflow: hidden; transition: transform .3s, box-shadow .3s; }
.iys .rec-card:hover { transform: translateY(-4px); box-shadow: var(--iys-shadow-hover); }
.iys .rec-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.iys .rec-card h4 { padding: 18px 16px 20px; font-size: 23px; }

/* Steps */
.iys .step { text-align: center; }
.iys .step .num { width: 58px; height: 58px; border-radius: 50%; background: var(--iys-secondary); color: var(--iys-text); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 12px; font-family: var(--iys-ff-head); font-weight: 700; }
.iys .step p { font-family: var(--iys-ff-slab); }

/* Inclusions with icon images */
.iys .incl-item--img { display: flex; align-items: center; gap: 16px; text-align: left; padding: 20px 22px; }
.iys .incl-item--img img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; }
.iys .incl-item--img p { margin: 0; font-size: 15.5px; line-height: 1.5; }

/* Schedule: clickable time slots */
.iys .schedule-intro { position: sticky; top: 90px; }
.iys .schedule-quote { margin-top: 18px; font-family: var(--iys-ff-head); font-style: italic; font-size: 20px; color: var(--iys-gold); }
.iys details.tl-item { display: block; padding: 0; cursor: pointer; transition: box-shadow .25s, border-color .25s; }
.iys details.tl-item::before { top: 19px; }
.iys details.tl-item[open] { border-color: rgba(126,132,70,.45); box-shadow: var(--iys-shadow); }
.iys details.tl-item summary { display: flex; align-items: center; gap: 18px; padding: 14px 44px 14px 18px; list-style: none; position: relative; }
.iys details.tl-item summary::-webkit-details-marker { display: none; }
.iys details.tl-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--iys-cream); color: var(--iys-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.iys details.tl-item[open] summary::after { content: "\2212"; background: var(--iys-primary); color: #fff; }
.iys .tl-title { font-family: var(--iys-ff-head); font-size: 19px; font-weight: 600; color: var(--iys-text); }
.iys .tl-desc { margin: 0; padding: 0 18px 16px 126px; font-size: 15px; color: var(--iys-muted); }

/* Curriculum panels */
.iys .curr-card { max-width: 920px; }
.iys .curr-intro { font-size: 16px; color: var(--iys-text); }
.iys .curr-label { margin: 22px 0 8px; font-family: var(--iys-ff-slab); font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--iys-gold); }
.iys .check-list--2col { columns: 2; column-gap: 32px; }
.iys .check-list--2col li { break-inside: avoid; }

/* Essentials + dates */
.iys .ess-card { display: flex; flex-direction: column; }
.iys .ess-card h3 { font-size: 24px; margin-bottom: 14px; }
.iys .ess-card .btn { align-self: flex-start; margin-top: 18px !important; }
.iys .text-danger-iys { color: #b5523b; }
.iys .dates-card { display: flex; flex-direction: column; }
.iys .dates-list { margin: 0 0 24px; padding-left: 0; list-style: none; counter-reset: d; }
.iys .dates-list li { counter-increment: d; position: relative; padding: 0 0 16px 46px; font-size: 16px; }
.iys .dates-list li::before { content: counter(d); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--iys-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--iys-ff-head); font-weight: 700; }

/* Important Guidelines */
.iys .guide-card .check-list li { padding: 8px 0 8px 30px; line-height: 1.6; border-bottom: 1px dashed var(--iys-line); }
.iys .guide-card .check-list li:last-child { border-bottom: 0; }
.iys .guide-card .check-list li::before { top: 8px; }
.iys .guide-card strong { color: var(--iys-primary); }
.iys .faq-block { margin-top: 72px; }
.iys .accordion-body p:last-child { margin-bottom: 0; }

@media (max-width: 991px) {
	.iys .schedule-intro { position: static; }
}
@media (max-width: 767px) {
	.iys .tl-desc { padding-left: 18px; }
	.iys .check-list--2col { columns: 1; }
}

/* 300 / 500 page extras */
.iys .ov-sub { margin: 26px 0 8px; font-size: 24px; color: var(--iys-primary); }
.iys .incl-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; height: 100%; }
.iys .incl-photos img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 150px; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--iys-radius-sm); box-shadow: var(--iys-shadow); }
.iys .after-card { border-left: 5px solid var(--iys-primary); }
.iys .after-card h3 { font-size: 28px; }
.iys .after-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.iys .after-logos img { width: 110px; height: 110px; object-fit: contain; }
.iys .reach-step h4 { font-family: var(--iys-ff-slab); font-size: 19px; color: var(--iys-primary); margin: 22px 0 6px; }
@media (max-width: 767px) { .iys .after-logos img { width: 80px; height: 80px; } }

/* FAQ (Bootstrap accordion in home colours) */
.iys .accordion-item { border: 1px solid var(--iys-line); margin-bottom: 12px; border-radius: var(--iys-radius-sm) !important; overflow: hidden; }
.iys .accordion-button { font-family: var(--iys-ff-slab); font-weight: 600; font-size: 17px; color: var(--iys-text); background: #fff; }
.iys .accordion-button:not(.collapsed) { background: #fff; color: var(--iys-primary); box-shadow: none; }
.iys .accordion-button:focus { box-shadow: none; }

/* CTA */
.iys-cta { position: relative; color: #fff; text-align: center; background-size: cover; background-position: center; }
.iys-cta h2 { color: #fff !important; }

/* Home-page block (Accommodation → Video Testimonials) keeps the home spacing */
.iys .iys-home .iys-section { padding: var(--iys-pad) 0; }
.iys .iys-home { background: transparent; }

@media (max-width: 767px) {
	.iys .row.g-5 { --bs-gutter-x: 1.5rem; }  /* stop sideways scroll on phones */
	.iys section { padding: 56px 0; }
	.iys-ttc-hero { min-height: 70vh; padding: 60px 0; }
	.iys .curr-tabs { border-radius: 20px; }
	.iys-ttc-hero .stat strong{font-size: 20px;}
}

/* =========================================================
   SEO / performance additions
   ========================================================= */
/* Hero photo is now a real <img> (faster LCP, indexable) instead of a CSS background */
.iys-ttc-hero { overflow: hidden; }
.iys-ttc-hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; object-position: center; }
.iys-ttc-hero::before { z-index: 1; }

/* Yoga Alliance logo (was an inline style) */
.iys .ya-logo { display: block; width: auto; height: auto; max-height: 90px; max-width: 100%; }

/* Heading levels fixed (h4 → h3) – keep the same look */
.iys .act-card .cap h3 { color: #fff; margin: 0; font-size: 25px; }
.iys .reach-title { font-family: var(--iys-ff-slab); font-size: 19px; font-weight: 600; color: var(--iys-primary); margin: 22px 0 6px; }

/* Images rendered through iys_img() keep their card layout */
.iys .incl-item--img img { height: 56px; }
.iys .rec-card img { height: auto; }
.iys .act-card img { display: block; }
.iys .after-logos img { height: 110px; }
@media (max-width: 767px) { .iys .after-logos img { height: 80px; } }
