/*
 * Course detail + Provider profile — Phase 9G.
 * Reuses Phase 9C tokens and existing card/badge components; adds only
 * the layout pieces genuinely new to these two pages.
 */

/* ===== Course hero ===== */
.tadreep-course-hero {
	background: var(--color-navy-800);
	color: var(--color-white);
	padding-block: var(--space-8);
}
.tadreep-course-hero-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
	align-items: center;
}
.tadreep-course-hero-media img,
.tadreep-course-hero-placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-lg);
	object-fit: cover;
}
.tadreep-course-hero-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .5);
}
.tadreep-course-hero-placeholder svg { width: 48px; height: 48px; }

.tadreep-course-hero h1 {
	color: var(--color-white);
	font-size: var(--text-2xl);
	margin-block: var(--space-3);
}
.tadreep-course-badges { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.tadreep-course-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}
.tadreep-course-facts li {
	display: flex;
	gap: var(--space-2);
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, .85);
}
.tadreep-course-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:420px}
.tadreep-course-facts li{flex-direction:column;align-items:flex-start;gap:3px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.07)}
.tadreep-course-facts .tadreep-fact-label{min-inline-size:0;font-size:.74rem}
.tadreep-course-facts .tadreep-course-provider-fact{flex-direction:column;align-items:flex-start;gap:4px}
.tadreep-course-facts .tadreep-course-provider-fact .tadreep-fact-label{min-inline-size:0;font-size:.78rem}
.tadreep-course-facts a { color: var(--color-turquoise-500); }
.tadreep-fact-label {
	color: rgba(255, 255, 255, .55);
	min-inline-size: 90px;
}

@media (min-width: 960px) {
	.tadreep-course-hero-inner { grid-template-columns: 1fr 1.1fr; }
	.tadreep-course-hero h1 { font-size: var(--text-3xl); }
}

/* ===== Course body layout ===== */
.tadreep-course-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
	padding-block: var(--space-8);
	align-items: start;
}
@media (min-width: 960px) {
	.tadreep-course-layout { grid-template-columns: 1.8fr 1fr; }
	.tadreep-course-aside { position: sticky; inset-block-start: 88px; }
}

.tadreep-course-section { margin-block-end: var(--space-6); }
.tadreep-course-section h2 { font-size: var(--text-xl); }
.tadreep-course-description { color: var(--color-text-primary); }

/* RC103: clearer course hierarchy and compact booking-focused hero. */
.tadreep-course-hero{padding-block:42px;background:linear-gradient(135deg,#09285a 0%,#08275a 58%,#0c3f72 100%)}
.tadreep-course-hero h1{font-size:1.25rem;line-height:1.45;margin:12px 0 14px;max-width:680px}
.tadreep-course-facts{margin-bottom:14px}
.tadreep-course-facts li{align-items:center}
.tadreep-course-detail-stats{gap:12px!important;margin-top:12px}
.tadreep-course-detail-stat{background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:14px!important;min-height:112px!important}
.tadreep-course-detail-stat-label{color:rgba(255,255,255,.68)!important}
.tadreep-course-detail-stat strong{color:#fff!important}
.tadreep-course-hero-summary{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
.tadreep-course-hero-summary span{display:flex;gap:6px;align-items:center;padding:8px 11px;border-radius:10px;background:rgba(255,255,255,.08);font-size:.78rem}
.tadreep-course-hero-summary small{color:rgba(255,255,255,.65)}.tadreep-course-hero-summary strong{color:#fff}
.tadreep-course-hero-summary .is-close{background:rgba(251,146,60,.18);border:1px solid rgba(251,146,60,.48)}
@media (min-width:960px){.tadreep-course-hero h1{font-size:1.45rem}}
.tadreep-course-map-link{display:inline-flex;align-items:center;gap:10px;margin-top:12px;padding:8px 12px 8px 10px;border:1px solid rgba(23,213,205,.38);border-radius:13px;background:linear-gradient(135deg,rgba(7,189,183,.22),rgba(37,113,208,.17));color:#fff;text-decoration:none;box-shadow:0 8px 18px rgba(2,17,51,.16);transition:transform .2s ease,background .2s ease,border-color .2s ease}.tadreep-course-map-link:hover{transform:translateY(-2px);background:linear-gradient(135deg,rgba(7,189,183,.38),rgba(37,113,208,.30));border-color:rgba(138,255,249,.75);color:#fff}.tadreep-course-map-link-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#12c9c3;color:#06255a;flex:0 0 auto}.tadreep-course-map-link-icon svg{width:18px;height:18px;fill:currentColor}.tadreep-course-map-link small,.tadreep-course-map-link strong{display:block;line-height:1.35}.tadreep-course-map-link small{color:rgba(232,255,254,.74);font-size:.67rem}.tadreep-course-map-link strong{font-size:.79rem}.tadreep-course-map-link-arrow{font-size:1.15rem;color:#8bfffa;margin-inline-start:4px}
.tadreep-course-section{padding:26px 28px;border:1px solid var(--color-border);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(8,35,78,.04)}
.tadreep-course-section h2{font-size:1.35rem;margin:0 0 14px;color:var(--color-navy-900)}
@media (min-width:960px){.tadreep-course-hero h1{font-size:1.45rem!important}.tadreep-course-hero-inner{grid-template-columns:1.12fr .88fr;gap:48px}.tadreep-course-hero-media img{max-height:430px}}
@media (max-width:639px){.tadreep-course-hero{padding-block:28px}.tadreep-course-hero h1{font-size:1.2rem!important}.tadreep-course-section{padding:20px 17px}.tadreep-course-detail-stat{min-height:94px!important}}

/* ===== Booking card ===== */
.tadreep-booking-card { display: flex; flex-direction: column; gap: var(--space-3); }
.tadreep-course-price-lg {
	font-size: var(--text-xl);
	font-weight: 700;
	color: var(--color-turquoise-600);
	margin: 0;
}
.tadreep-booking-card label {
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--color-text-secondary);
}
.tadreep-booking-card select {
	inline-size: 100%;
	height: 44px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding-inline: var(--space-3);
	font-family: var(--font-family);
	font-size: var(--text-sm);
	background: var(--color-white);
	color: var(--color-text-primary);
}
.tadreep-booking-card select:focus {
	border-color: var(--color-turquoise-500);
	background: var(--color-turquoise-50);
}
.tadreep-booking-note {
	font-size: var(--text-xs);
	color: var(--color-text-secondary);
	margin: 0;
}
.tadreep-booking-note.is-error { color: var(--color-danger); }
.tadreep-booking-note.is-success { color: var(--color-success); }

/* ===== Provider profile ===== */
.tadreep-provider-hero {
	background: var(--color-navy-800);
	color: var(--color-white);
	padding-block: var(--space-8);
}
.tadreep-provider-hero-inner {
	display: flex;
	align-items: center;
	gap: var(--space-5);
	flex-wrap: wrap;
}
.tadreep-provider-hero h1 {
	color: var(--color-white);
	font-size: var(--text-xl);
	margin-block: var(--space-2);
}
.tadreep-provider-hero-city,
.tadreep-provider-hero-spec {
	color: rgba(255, 255, 255, .75);
	font-size: var(--text-sm);
	margin: 0;
}
.tadreep-provider-hero-avatar {
	inline-size: 80px;
	block-size: 80px;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, .1);
	color: var(--color-turquoise-500);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.tadreep-provider-hero-avatar.is-center { border-radius: var(--radius-md); }
.tadreep-provider-hero-avatar svg { inline-size: 40px; block-size: 40px; }

@media (min-width: 640px) {
	.tadreep-course-facts li { font-size: var(--text-base); }
	.tadreep-provider-hero-avatar { inline-size: 96px; block-size: 96px; }
	.tadreep-provider-hero-avatar svg { inline-size: 48px; block-size: 48px; }
}

@media (min-width: 960px) {
	.tadreep-provider-hero h1 { font-size: var(--text-2xl); }
}

/* Provider identity beside the course title/facts. */
.tadreep-course-provider-identity {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.tadreep-course-provider-identity .tadreep-provider-avatar {
	inline-size: 42px;
	block-size: 42px;
	border-radius: 50% !important;
	background: var(--color-turquoise-50);
	overflow: hidden;
	flex: 0 0 42px;
}
.tadreep-course-provider-identity .tadreep-provider-avatar img,
.tadreep-course-provider-identity .tadreep-provider-avatar .tadreep-provider-avatar-fallback {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

/* Provider profile hero: real logo/photo, always circular. */
.tadreep-provider-hero-avatar {
	border-radius: 50% !important;
	overflow: hidden;
	background: rgba(255,255,255,.10);
	border: 2px solid rgba(255,255,255,.18);
}
.tadreep-provider-hero-avatar img,
.tadreep-provider-hero-avatar .tadreep-provider-avatar-fallback {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}
.tadreep-provider-hero-avatar .tadreep-provider-avatar-fallback {
	padding: 22px;
	color: var(--color-turquoise-500);
}

/* ===== Provider public profile — MVP1 DESIGN RC4 ===== */
.tadreep-provider-profile-hero{position:relative;background:var(--color-navy-800);color:var(--color-white);overflow:hidden;}
.tadreep-provider-cover{position:absolute;inset:0;opacity:.18;overflow:hidden;}
.tadreep-provider-cover img{width:100%;height:100%;object-fit:cover;filter:blur(1px);}
.tadreep-provider-profile-hero-inner{position:relative;z-index:1;display:flex;align-items:center;gap:1.25rem;padding-block:3rem;}
.tadreep-provider-profile-avatar{width:112px;height:112px;flex:0 0 112px;border-radius:50%;overflow:hidden;background:rgba(255,255,255,.1);border:3px solid rgba(255,255,255,.92);box-shadow:0 8px 28px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;}
.tadreep-provider-profile-avatar img,.tadreep-provider-profile-avatar .tadreep-provider-avatar-fallback{width:100%;height:100%;object-fit:cover;}
.tadreep-provider-profile-avatar .tadreep-provider-avatar-fallback{padding:28px;color:var(--color-turquoise-500);}
.tadreep-provider-profile-heading h1{color:var(--color-white);margin:.65rem 0 .35rem;font-size:clamp(1.55rem,3vw,2.25rem);}
.tadreep-provider-profile-city,.tadreep-provider-profile-spec{margin:.2rem 0;color:rgba(255,255,255,.8);}
.tadreep-provider-profile-body{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;padding-block:2.5rem 4rem;}
.tadreep-profile-section{margin-bottom:2rem;}.tadreep-profile-section h2{font-size:1.35rem;margin:0 0 1rem;color:var(--color-navy-800);}
.tadreep-profile-bio{padding:1.35rem;line-height:1.9;}.tadreep-profile-bio p{margin:0;}
.tadreep-profile-tags{display:flex;flex-wrap:wrap;gap:.55rem;}.tadreep-profile-tags span{background:var(--color-turquoise-50);color:var(--color-turquoise-700);border:1px solid rgba(0,180,180,.2);border-radius:999px;padding:.45rem .8rem;font-size:.88rem;}
.tadreep-profile-section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;}.tadreep-profile-section-head h2{margin:0;}.tadreep-profile-section-head span{color:var(--color-text-secondary);font-size:.9rem;}
.tadreep-profile-info-card{padding:1.35rem;position:sticky;top:100px;}.tadreep-profile-info-card h2{font-size:1.15rem;margin:0 0 .75rem;}.tadreep-profile-info-row{display:flex;justify-content:space-between;gap:1rem;padding:.85rem 0;border-top:1px solid var(--color-border);}.tadreep-profile-info-row span{color:var(--color-text-secondary);}.tadreep-profile-info-row strong{font-weight:600;text-align:end;}.tadreep-profile-info-row a{color:var(--color-turquoise-700);text-decoration:none;}
@media(min-width:960px){.tadreep-provider-profile-body{grid-template-columns:minmax(0,1.8fr) minmax(260px,.7fr);align-items:start;}.tadreep-provider-profile-hero-inner{padding-block:3.5rem;}}
@media(max-width:600px){.tadreep-provider-profile-hero-inner{align-items:flex-start;padding-block:2.25rem;}.tadreep-provider-profile-avatar{width:88px;height:88px;flex-basis:88px;}.tadreep-provider-profile-avatar .tadreep-provider-avatar-fallback{padding:22px;}.tadreep-profile-section-head{align-items:flex-start;flex-direction:column;gap:.35rem;}}
@media(max-width:959px){.tadreep-provider-profile-body{display:flex;flex-direction:column}.tadreep-provider-profile-aside{display:contents}.tadreep-provider-profile-info-card{order:-2}.tadreep-provider-rating-card{order:-1}.tadreep-provider-profile-main{display:contents}.tadreep-provider-profile-main>.tadreep-profile-section:not(.tadreep-provider-courses-section){order:1}.tadreep-provider-courses-section{order:2}}

/*
 * Letter fallback for provider avatars.
 *
 * The rules above were written for an inline <svg> and use padding plus
 * object-fit to size it. The fallback is now a single Arabic letter
 * (م / د), which those rules would push off-centre, so the glyph is
 * centred explicitly here. Appended rather than editing the SVG rules,
 * because real logos still flow through the same containers.
 */
.tadreep-provider-avatar-fallback,
.tadreep-directory-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-family: 'Cairo', 'Tahoma', sans-serif;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	user-select: none;
}

/* Hero is the largest surface, so the letter scales with it. */
.tadreep-provider-hero-avatar .tadreep-provider-avatar-fallback {
	padding: 0;
	font-size: clamp(1.75rem, 6vw, 2.75rem);
}

.tadreep-course-provider-identity .tadreep-provider-avatar .tadreep-provider-avatar-fallback {
	font-size: 1.25rem;
}


/* RC13: provider profile typography and map action. */
.tadreep-provider-profile-body { font-size:.96rem; }
.tadreep-provider-profile .tadreep-profile-info-card strong,
.tadreep-provider-profile .tadreep-profile-info-card a { font-size:.9rem; line-height:1.6; }
.tadreep-map-link { display:inline-flex; align-items:center; justify-content:center; padding:.5rem .75rem; border-radius:10px; background:var(--color-turquoise-50); color:var(--color-navy-800); text-decoration:none; font-weight:700; }
.tadreep-map-link:hover { background:var(--color-turquoise-500); color:#fff; }

/* RC20 — public provider rating. */
.tadreep-provider-profile-rating-summary{display:inline-flex;align-items:center;gap:6px;margin-top:.65rem;color:rgba(255,255,255,.92);font-size:.9rem;}
.tadreep-provider-profile-rating-summary strong{font-size:1rem;color:#fff;}
.tadreep-rating-star{color:#f6b51b;}
.tadreep-provider-rating-card{padding:1.25rem;margin-bottom:1rem;}
.tadreep-provider-rating-card-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid var(--color-border);}
.tadreep-provider-rating-card-head>div{display:flex;align-items:center;gap:.45rem;font-size:1.35rem;}
.tadreep-provider-rating-card-head>span{color:var(--color-text-secondary);font-size:.85rem;}
.tadreep-provider-rating-card h2{margin:0 0 .45rem;font-size:1.05rem;color:var(--color-navy-800);}
.tadreep-provider-rating-card p{margin:.2rem 0 .8rem;color:var(--color-text-secondary);font-size:.82rem;line-height:1.65;}
.tadreep-rating-stars{direction:ltr;display:flex;justify-content:flex-end;gap:4px;margin-bottom:.8rem;}
.tadreep-rating-stars button{appearance:none;border:0;background:transparent;padding:2px;color:#d7dee7;font-size:1.9rem;line-height:1;cursor:pointer;transition:transform .15s ease,color .15s ease;}
.tadreep-rating-stars button:hover,.tadreep-rating-stars button:focus,.tadreep-rating-stars button.is-selected{color:#f6b51b;transform:translateY(-1px);outline:none;}
.tadreep-provider-rating-form .tadreep-btn{width:100%;}
.tadreep-rating-status{min-height:1.2em;margin:.55rem 0 0!important;color:var(--color-navy-800)!important;font-weight:700;}

/* RC22 — rating is always visible; eligibility guidance for trainees/non-trainees. */
.tadreep-rating-eligibility-note{margin:.35rem 0 0!important;padding:.8rem .9rem;border:1px solid #dce8f2;border-radius:12px;background:#f7fbfd;color:#52657a!important;font-size:.8rem!important;line-height:1.7!important}

/* RC44 — keep the single-course page consistent with the approved course card data. */
.tadreep-course-detail-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
}
.tadreep-course-detail-stat {
	min-width: 0;
	min-height: 118px;
	padding: 14px 10px;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 16px;
	background: rgba(255,255,255,.08);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
}
.tadreep-course-detail-stat-icon {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.tadreep-course-detail-stat-icon svg { width: 100%; height: 100%; fill: currentColor; }
.tadreep-course-detail-stat.is-days .tadreep-course-detail-stat-icon { color: #22b573; }
.tadreep-course-detail-stat.is-hours .tadreep-course-detail-stat-icon { color: #2b7ddd; }
.tadreep-course-detail-stat.is-seats .tadreep-course-detail-stat-icon { color: #f04455; }
.tadreep-course-detail-stat.is-city .tadreep-course-detail-stat-icon { color: #ffffff; }
.tadreep-course-detail-stat-label {
	font-size: .8rem;
	color: rgba(255,255,255,.66);
	line-height: 1.45;
}
.tadreep-course-detail-stat strong {
	font-size: .98rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.45;
}
.tadreep-course-detail-price {
	display: grid;
	grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr);
	align-items: stretch;
	min-height: 62px;
	border: 1px solid #bcd8f2;
	border-radius: 14px;
	overflow: hidden;
	background: #f5faff;
	direction: rtl;
}
.tadreep-course-detail-price > span {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	background: #0b67bd;
	color: #fff;
	font-weight: 800;
	font-size: .95rem;
}
.tadreep-course-detail-price > strong {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	color: var(--color-navy-800);
	font-size: 1.18rem;
	font-weight: 800;
	white-space: nowrap;
}
@media (min-width: 720px) {
	.tadreep-course-detail-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tadreep-course-detail-stat { min-height: 126px; padding-inline: 8px; }
}
@media (max-width: 480px) {
	.tadreep-course-detail-price { grid-template-columns: 96px minmax(0, 1fr); }
	.tadreep-course-detail-price > strong { font-size: 1.05rem; }
}

/* Course artwork can arrive in any size. Keep it fully visible, and use a
   branded frame rather than cropping text or leaving a plain empty area. */
.tadreep-course-hero-media{
	position:relative;
	aspect-ratio:16 / 9;
	padding:12px;
	box-sizing:border-box;
	display:flex;
	align-items:center;
	justify-content:center;
	overflow:hidden;
	border-radius:var(--radius-lg);
	background:
		radial-gradient(circle at 14% 18%,rgba(20,207,202,.28),transparent 38%),
		radial-gradient(circle at 90% 86%,rgba(35,119,225,.32),transparent 42%),
		linear-gradient(135deg,#061d49 0%,#0a3677 54%,#06275d 100%);
}
.tadreep-course-hero-media::before{
	content:'';
	position:absolute;
	inset:0;
	border:1px solid rgba(124,242,238,.20);
	border-radius:inherit;
	pointer-events:none;
}
.tadreep-course-hero-media::after{
	content:'';
	position:absolute;
	inset:0;
	z-index:0;
	opacity:.52;
	background:
		linear-gradient(90deg,rgba(117,249,241,.10) 1px,transparent 1px) 0 0 / 36px 36px,
		linear-gradient(rgba(117,249,241,.08) 1px,transparent 1px) 0 0 / 36px 36px,
		radial-gradient(circle at 8% 80%,rgba(28,217,209,.44),transparent 28%),
		radial-gradient(circle at 94% 16%,rgba(52,129,240,.42),transparent 31%);
	pointer-events:none;
}
.tadreep-course-hero-media .tadreep-course-hero-img{
	position:relative;
	z-index:1;
	width:100%;
	height:100%;
	object-fit:contain;
	object-position:center;
	border-radius:calc(var(--radius-lg) - 6px);
	box-shadow:0 14px 32px rgba(0,0,0,.28);
}
@media (max-width:639px){
	.tadreep-course-hero-media{aspect-ratio:4 / 3;padding:8px;border-radius:18px}
	.tadreep-course-hero-media .tadreep-course-hero-img{border-radius:13px;box-shadow:0 10px 24px rgba(0,0,0,.26)}
	.tadreep-course-hero-summary{gap:8px}
	.tadreep-course-map-link{width:100%;box-sizing:border-box;margin-top:0;padding:9px 11px}
	.tadreep-course-map-link strong{font-size:.82rem}
	.tadreep-course-map-link-arrow{margin-inline-start:auto}
}


/* RC51: richer provider profile + balanced course cards. */
.tadreep-provider-profile-body{grid-template-areas:"main" "aside";}
.tadreep-provider-profile-main{grid-area:main;min-width:0;}
.tadreep-provider-profile-aside{grid-area:aside;min-width:0;}
.tadreep-provider-profile .tadreep-profile-info-card{position:static;top:auto;}
.tadreep-provider-profile .tadreep-profile-info-row{align-items:flex-start;}
.tadreep-provider-profile .tadreep-profile-info-row>a,
.tadreep-provider-profile .tadreep-profile-info-row>strong{max-width:65%;overflow-wrap:anywhere;}
.tadreep-profile-contact-ltr{direction:ltr;unicode-bidi:embed;text-align:left;}
.tadreep-profile-socials{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:1rem;border-top:1px solid var(--color-border);}
.tadreep-profile-socials a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:.4rem .7rem;border:1px solid var(--color-border);border-radius:9px;background:#fff;color:var(--color-navy-800)!important;font-size:.82rem;text-decoration:none;}
.tadreep-provider-profile .tadreep-provider-courses-section{margin-top:.5rem;}
.tadreep-provider-profile .tadreep-provider-courses-section .tadreep-course-grid{grid-template-columns:1fr;gap:1.25rem;align-items:stretch;}
.tadreep-provider-profile .tadreep-provider-courses-section .tadreep-course-card{width:100%;max-width:none;}
@media(min-width:760px){
 .tadreep-provider-profile .tadreep-provider-courses-section .tadreep-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(min-width:960px){
 .tadreep-provider-profile-body{grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"main aside";gap:2rem;}
 .tadreep-provider-profile .tadreep-provider-courses-section .tadreep-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:759px){
 .tadreep-provider-profile .tadreep-profile-info-row{flex-direction:column;gap:.25rem;}
 .tadreep-provider-profile .tadreep-profile-info-row>a,
 .tadreep-provider-profile .tadreep-profile-info-row>strong{max-width:100%;text-align:start;}
}

/* RC65: explicit closed-booking state. */
.tadreep-booking-closed{display:flex;flex-direction:column;align-items:center;gap:5px;padding:14px;border:1px solid rgba(185,28,28,.14);border-radius:12px;background:#fff7f7;color:#991b1b;text-align:center}
.tadreep-booking-closed strong{font-size:1rem}.tadreep-booking-closed span{font-size:.8rem;color:#7f1d1d}

/* RC85 — modern RTL provider information card. */
.tadreep-profile-info-card-modern{
 direction:rtl;
 text-align:right;
 padding:0!important;
 overflow:hidden;
 border:1px solid #dce8f2;
 border-radius:20px;
 background:linear-gradient(160deg,#fff 0%,#fbfdff 70%,#f3fcfc 100%);
 box-shadow:0 12px 32px rgba(8,36,92,.07);
}
.tadreep-profile-info-card-modern:before{
 content:"";
 display:block;
 height:4px;
 background:linear-gradient(90deg,#0bc4c8 0%,#1782cf 52%,#08245c 100%);
}
.tadreep-profile-info-head{
 display:flex;
 align-items:center;
 gap:.8rem;
 padding:1.1rem 1.15rem .95rem;
 border-bottom:1px solid #e7eef5;
 background:linear-gradient(90deg,rgba(10,185,190,.055),rgba(8,36,92,.025));
}
.tadreep-profile-info-head-icon{
 width:42px;height:42px;flex:0 0 42px;border-radius:13px;
 display:grid;place-items:center;background:#e7f9fa;color:#087f91;
 box-shadow:inset 0 0 0 1px rgba(9,188,194,.14);
}
.tadreep-profile-info-head-icon svg{width:22px;height:22px;fill:currentColor}
.tadreep-profile-info-head h2{margin:0!important;font-size:1.08rem!important;color:#08245c;line-height:1.4}
.tadreep-profile-info-head p{margin:.15rem 0 0;color:#7b8da3;font-size:.72rem;line-height:1.5}
.tadreep-profile-info-list{padding:.65rem .8rem .4rem}
.tadreep-profile-info-card-modern .tadreep-profile-info-row{
 display:grid!important;
 grid-template-columns:38px minmax(0,1fr);
 align-items:start!important;
 gap:.7rem!important;
 padding:.72rem .55rem!important;
 border-top:0!important;
 border-bottom:1px solid #edf2f7;
}
.tadreep-profile-info-card-modern .tadreep-profile-info-row:last-child{border-bottom:0}
.tadreep-profile-info-icon{
 width:34px;height:34px;border-radius:11px;display:grid;place-items:center;
 background:#f0f7fd;color:#1777c8;
}
.tadreep-profile-info-icon svg{width:18px;height:18px;fill:currentColor}
.tadreep-profile-info-card-modern .tadreep-profile-info-row>div{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.12rem}
.tadreep-profile-info-card-modern .tadreep-profile-info-row>div>span{color:#8292a6;font-size:.7rem;line-height:1.45}
.tadreep-profile-info-card-modern .tadreep-profile-info-row strong,
.tadreep-profile-info-card-modern .tadreep-profile-info-row a{
 max-width:100%!important;
 color:#0a2540;
 font-size:.82rem!important;
 font-weight:750;
 line-height:1.65!important;
 text-align:right!important;
 overflow-wrap:anywhere;
 text-decoration:none;
}
.tadreep-profile-info-card-modern .tadreep-profile-info-row a:hover{color:#079da7}
.tadreep-profile-info-card-modern .tadreep-profile-contact-ltr{direction:ltr;unicode-bidi:embed;text-align:right!important;align-self:flex-start}
.tadreep-profile-info-card-modern .tadreep-map-link{
 margin-top:.2rem;padding:.38rem .65rem;border-radius:9px;background:#e8f8f9;color:#087f91!important;font-size:.74rem!important;font-weight:800;
}
.tadreep-profile-socials-wrap{padding:.8rem 1.15rem 1.05rem;border-top:1px solid #e7eef5;background:#fff}
.tadreep-profile-socials-wrap>strong{display:block;margin-bottom:.55rem;color:#08245c;font-size:.82rem}
.tadreep-profile-info-card-modern .tadreep-profile-socials{padding:0;border:0;gap:.4rem;justify-content:flex-start}
.tadreep-profile-info-card-modern .tadreep-profile-socials a{
 min-height:32px;padding:.3rem .58rem;border-radius:999px;border:1px solid #dce7f1;background:#f8fbfd;color:#344a62!important;font-size:.68rem!important;font-weight:700;
}
.tadreep-profile-info-card-modern .tadreep-profile-socials a:hover{border-color:#8fd9dd;background:#ebfafb;color:#087f91!important}
@media(max-width:759px){
 .tadreep-profile-info-card-modern .tadreep-profile-info-row{grid-template-columns:36px minmax(0,1fr)!important;flex-direction:initial!important;gap:.65rem!important}
 .tadreep-profile-info-card-modern .tadreep-profile-info-row>div>span{font-size:.68rem}
 .tadreep-profile-info-card-modern .tadreep-profile-info-row strong,
 .tadreep-profile-info-card-modern .tadreep-profile-info-row a{font-size:.8rem!important;text-align:right!important}
}
