/* ================================================================
   Mexemy — Single Course Page Premium Restyle (EduBlink + Tutor LMS)
   Real selectors verified from rendered DOM.
   ================================================================ */

body.single-courses { background:#f7f5fc; color:#1c1c2e; }

/* ============ HERO ============ */
body.single-courses .edublink-course-page-header {
	background:linear-gradient(135deg,#3b1a78 0%,#6a3bd9 45%,#a855f7 100%) !important;
	position:relative; overflow:hidden;
	padding:70px 0 110px !important;
}
body.single-courses .edublink-course-page-header::before {
	content:""; position:absolute; inset:0; pointer-events:none;
	background:
		radial-gradient(circle at 15% 25%, rgba(255,255,255,.14) 0, transparent 35%),
		radial-gradient(circle at 85% 75%, rgba(255,255,255,.10) 0, transparent 40%),
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36'><circle cx='2' cy='2' r='1.1' fill='rgba(255,255,255,0.10)'/></svg>");
	background-size: auto, auto, 36px 36px;
}
body.single-courses .edublink-course-page-header > * { position:relative; z-index:2; }

/* Hide all decorative shapes / dot images in the hero (they were greenish on light bg) */
body.single-courses .edublink-course-page-header .shape-dot-wrapper,
body.single-courses .edublink-course-page-header .shape-image,
body.single-courses .edublink-course-page-header [class*="shape-"] { display:none !important; }

/* Breadcrumbs */
body.single-courses .edublink-course-page-header .breadcrumb,
body.single-courses .edublink-course-page-header .breadcrumb-list,
body.single-courses .edublink-course-page-header ul {
	font-size:13px;
}
body.single-courses .edublink-course-page-header .breadcrumb a,
body.single-courses .edublink-course-page-header .breadcrumb-list a,
body.single-courses .edublink-course-page-header .breadcrumb li,
body.single-courses .edublink-course-page-header .breadcrumb-list li,
body.single-courses .edublink-course-page-header a {
	color:rgba(255,255,255,.88) !important; text-decoration:none;
}
body.single-courses .edublink-course-page-header a:hover { color:#fff !important; }
body.single-courses .edublink-course-page-header svg,
body.single-courses .edublink-course-page-header i { color:rgba(255,255,255,.7) !important; fill:rgba(255,255,255,.7) !important; }

/* Title */
body.single-courses .edublink-course-page-header .entry-title,
body.single-courses .edublink-course-page-header h1 {
	color:#fff !important;
	font-size:clamp(28px,3.6vw,46px) !important;
	font-weight:800 !important;
	line-height:1.2 !important;
	margin:14px 0 18px !important;
	max-width:820px;
}

/* Author / rating row in hero */
body.single-courses .edublink-course-page-header .author,
body.single-courses .edublink-course-page-header .author-meta,
body.single-courses .edublink-course-page-header .rating-area,
body.single-courses .edublink-course-page-header .edu-rating,
body.single-courses .edublink-course-page-header .by-author {
	color:rgba(255,255,255,.95) !important;
}
body.single-courses .edublink-course-page-header .author *,
body.single-courses .edublink-course-page-header .rating-area * { color:rgba(255,255,255,.95) !important; }
body.single-courses .edublink-course-page-header img.avatar,
body.single-courses .edublink-course-page-header .author img {
	border-radius:50% !important; border:2px solid rgba(255,255,255,.5) !important;
}

/* ============ SIDEBAR CARD ============ */
body.single-courses .edublink-course-details-sidebar {
	margin-top:-70px;
	position:sticky; top:90px;
}
body.single-courses .edublink-course-details-sidebar-inner {
	background:#fff !important;
	border-radius:18px !important;
	box-shadow:0 18px 50px rgba(106,59,217,.16) !important;
	overflow:hidden;
	border:1px solid #ece6fa !important;
}

/* Hide placeholder thumb / blank img in sidebar */
body.single-courses .edublink-course-details-sidebar .thumbnail,
body.single-courses .edublink-course-details-sidebar-inner > .thumbnail {
	background:linear-gradient(135deg,#6a3bd9,#a855f7) !important;
	aspect-ratio:16/10;
	display:flex; align-items:center; justify-content:center;
	color:#fff; font-size:54px;
	overflow:hidden;
	position:relative;
}
body.single-courses .edublink-course-details-sidebar .thumbnail:empty::before,
body.single-courses .edublink-course-details-sidebar .thumbnail:not(:has(img))::before { content:"🎓"; }
body.single-courses .edublink-course-details-sidebar .thumbnail img {
	width:100%; height:100%; object-fit:cover; display:block;
}

body.single-courses .edublink-course-details-sidebar-content { padding:22px 24px !important; }
body.single-courses .edublink-course-details-sidebar-content > h4,
body.single-courses .edublink-course-details-sidebar-content > h5,
body.single-courses .edublink-course-details-sidebar-content > .widget-title {
	font-size:17px !important; margin:0 0 14px !important; font-weight:700;
}

/* Price row */
body.single-courses .edublink-course-details-sidebar .price-list,
body.single-courses .edublink-course-details-sidebar .tutor-course-price,
body.single-courses .edublink-course-details-sidebar .price-area {
	display:flex; align-items:baseline; gap:10px;
	padding:14px 16px; background:#f6f1ff; border-radius:12px; margin-bottom:16px;
}
body.single-courses .edublink-course-details-sidebar .price,
body.single-courses .edublink-course-details-sidebar .tutor-course-price-amount,
body.single-courses .edublink-course-details-sidebar .price-current {
	font-size:26px !important; font-weight:800 !important; color:#6a3bd9 !important;
}
body.single-courses .edublink-course-details-sidebar .old-price,
body.single-courses .edublink-course-details-sidebar del,
body.single-courses .edublink-course-details-sidebar .price-old {
	font-size:15px !important; color:#999 !important; text-decoration:line-through;
}

/* Meta list rows */
body.single-courses .edublink-course-details-sidebar-content ul,
body.single-courses .edublink-course-details-sidebar .course-action-list {
	list-style:none !important; padding:0 !important; margin:0 0 18px !important;
}
body.single-courses .edublink-course-details-sidebar-content ul li,
body.single-courses .edublink-course-details-sidebar .course-action-list li {
	display:flex !important; align-items:center !important; justify-content:space-between !important;
	gap:10px; padding:12px 0 !important; border-bottom:1px dashed #ece6fa !important;
	font-size:14px; color:#444;
}
body.single-courses .edublink-course-details-sidebar-content ul li:last-child { border-bottom:none !important; }
body.single-courses .edublink-course-details-sidebar-content ul li strong,
body.single-courses .edublink-course-details-sidebar-content ul li b { color:#1c1c2e; font-weight:600; }
body.single-courses .edublink-course-details-sidebar-content ul li svg,
body.single-courses .edublink-course-details-sidebar-content ul li i { color:#a855f7; }

/* Buy / CTA buttons */
body.single-courses .tutor-btn.tutor-btn-primary,
body.single-courses .tutor-btn-primary,
body.single-courses .edublink-course-details-sidebar .edu-btn,
body.single-courses .edublink-course-details-sidebar .btn-primary {
	background:linear-gradient(135deg,#6a3bd9 0%,#a855f7 100%) !important;
	color:#fff !important;
	border:none !important;
	padding:14px 24px !important;
	border-radius:99px !important;
	font-weight:700 !important;
	box-shadow:0 8px 22px rgba(106,59,217,.32) !important;
	transition:transform .2s, box-shadow .2s !important;
	text-transform:none !important;
}
body.single-courses .tutor-btn.tutor-btn-primary:hover,
body.single-courses .tutor-btn-primary:hover {
	transform:translateY(-2px) !important;
	box-shadow:0 14px 30px rgba(106,59,217,.42) !important;
	color:#fff !important;
}
body.single-courses .tutor-btn.tutor-btn-block { width:100% !important; }

/* Outline / Wishlist secondary */
body.single-courses .tutor-btn-outline-primary,
body.single-courses .edublink-course-details-sidebar .wishlist,
body.single-courses .edublink-course-details-sidebar .add-to-wishlist {
	background:#fff !important;
	color:#6a3bd9 !important;
	border:1.5px solid #d9c8fb !important;
	padding:12px 24px !important;
	border-radius:99px !important;
	font-weight:600 !important;
	width:100%;
}
body.single-courses .tutor-btn-outline-primary:hover { background:#f6f1ff !important; color:#6a3bd9 !important; }

/* Share area */
body.single-courses .edublink-course-details-sidebar .share-area,
body.single-courses .edublink-course-details-sidebar .social-share {
	margin-top:18px; padding-top:16px; border-top:1px solid #ece6fa;
}
body.single-courses .edublink-course-details-sidebar .share-area ul { display:flex; gap:10px; padding:0; margin:0; list-style:none; }
body.single-courses .edublink-course-details-sidebar .share-area ul li a,
body.single-courses .edublink-course-details-sidebar .social-share a {
	width:38px; height:38px; border-radius:50%;
	display:inline-flex; align-items:center; justify-content:center;
	background:#f6f1ff !important; color:#6a3bd9 !important;
	transition:all .2s; border:none !important;
}
body.single-courses .edublink-course-details-sidebar .share-area ul li a:hover,
body.single-courses .edublink-course-details-sidebar .social-share a:hover {
	background:linear-gradient(135deg,#6a3bd9,#a855f7) !important; color:#fff !important; transform:translateY(-2px);
}

/* ============ TABS ============ */
body.single-courses .edublink-course-details-page .nav-tabs,
body.single-courses .edublink-course-details-page [role=tablist] {
	border-bottom:1.5px solid #ece6fa !important;
	gap:0 !important; padding:0 !important; margin-bottom:24px !important;
}
body.single-courses .edublink-course-details-page .nav-tabs .nav-link,
body.single-courses .edublink-course-details-page [role=tab] {
	color:#666 !important; font-weight:600 !important; font-size:15px !important;
	padding:14px 22px !important;
	border:none !important;
	border-bottom:3px solid transparent !important;
	background:transparent !important; border-radius:0 !important;
}
body.single-courses .edublink-course-details-page .nav-tabs .nav-link.active,
body.single-courses .edublink-course-details-page [role=tab][aria-selected="true"] {
	color:#6a3bd9 !important;
	border-bottom-color:#6a3bd9 !important;
	background:transparent !important;
}

/* ============ ACCORDION (Tutor + EduBlink) ============ */
body.single-courses .tutor-accordion-item,
body.single-courses .edublink-course-details-page .accordion-item,
body.single-courses .edublink-course-details-page .accordion .card,
body.single-courses .course-content > ul > li {
	background:#fff !important;
	border:1px solid #ece6fa !important;
	border-radius:14px !important;
	margin-bottom:14px !important;
	overflow:hidden;
	box-shadow:0 2px 10px rgba(106,59,217,.04);
}
body.single-courses .tutor-accordion-item-header,
body.single-courses .edublink-course-details-page .accordion-button,
body.single-courses .course-content > ul > li > .head {
	background:#faf7ff !important;
	color:#5b21b6 !important;
	font-weight:700 !important;
	font-size:16px !important;
	padding:16px 20px !important;
	border:none !important;
	box-shadow:none !important;
}
body.single-courses .tutor-accordion-item-header[aria-expanded="true"],
body.single-courses .edublink-course-details-page .accordion-button:not(.collapsed) {
	background:linear-gradient(135deg,#6a3bd9,#a855f7) !important;
	color:#fff !important;
}
body.single-courses .edublink-course-details-page .accordion-button::after { filter:invert(0.2); }
body.single-courses .edublink-course-details-page .accordion-button:not(.collapsed)::after { filter:invert(1) brightness(2); }

body.single-courses .tutor-accordion-item-body,
body.single-courses .edublink-course-details-page .accordion-body {
	padding:8px 18px 16px !important; background:#fff !important;
}
body.single-courses .tutor-accordion-item-body .tutor-course-topic-item,
body.single-courses .edublink-course-details-page .accordion-body li {
	display:flex !important; align-items:center !important; justify-content:space-between !important;
	padding:12px 14px !important; margin:6px 0 !important;
	border-radius:10px !important; background:#fafafa !important;
	font-size:14px !important; border:none !important;
}
body.single-courses .tutor-accordion-item-body .tutor-course-topic-item:hover,
body.single-courses .edublink-course-details-page .accordion-body li:hover { background:#f6f1ff !important; }
body.single-courses .accordion-body li .lock,
body.single-courses .accordion-body li i.fa-lock,
body.single-courses .tutor-course-topic-item i[class*=lock] { color:#a855f7 !important; }

/* "Course Content" / section headings */
body.single-courses .course-content h3,
body.single-courses .tutor-course-topic h3,
body.single-courses .edublink-course-details-page h3 {
	font-size:24px; margin:0 0 18px; font-weight:700; color:#1c1c2e;
}

/* About / Overview / Instructor cards */
body.single-courses .course-overview,
body.single-courses .course-description,
body.single-courses .about-course,
body.single-courses .author-section,
body.single-courses .course-instructor,
body.single-courses .review-area,
body.single-courses .course-reviews {
	background:#fff; padding:28px 30px; border-radius:16px;
	box-shadow:0 4px 18px rgba(106,59,217,.05);
	margin-bottom:24px;
}

/* Main content wrap padding */
body.single-courses .edublink-course-details-page,
body.single-courses .tutor-wrap.tutor-page-wrap {
	padding:0 0 80px !important;
}
body.single-courses .ed-course-content { margin-top:30px; }

/* Mobile */
@media (max-width: 991px) {
	body.single-courses .edublink-course-details-sidebar {
		position:static !important; margin-top:30px !important;
	}
	body.single-courses .edublink-course-page-header { padding:50px 0 70px !important; }
}
