/* ======================================================
   Product page
====================================================== */

.studymedic-product-page {
	
	background: #ffffff;
}

.site-container {
	width: min(1180px, calc(100% - 60px));
	margin-inline: auto;
}

.product-hero,
.product-details-section {
	padding: 64px 0;
}

.product-details-section {
	background: #fff2f7;
}

.product-hero-layout,
.product-details-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
	gap: 42px;
	align-items: start;
}

.product-hero-content,
.product-main-content {
	min-width: 0;
}

/* ======================================================
   Product hero
====================================================== */

.product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.product-badge {
	display: inline-flex;
	min-height: 28px;
	padding: 0px 11px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.product-badge-premium {
	background: linear-gradient(90deg, #ffca44, #99710b);
}

.product-badge-bestseller {
	background: linear-gradient(90deg, #eb568f, #00a7e0);
}

.product-title {
	margin: 14px 0 8px;
	color: #30298f;
	font-size: clamp(36px, 5vw, 54px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.product-subtitle {
	margin: 0 0 12px;
	color: #171b32;
	font-size: clamp(23px, 3vw, 30px);
	line-height: 1.3;
}

.product-price {
	margin-bottom: 22px;
	color: #eb4d8a;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.product-price del {
	margin-right: 7px;
	opacity: 0.65;
}

.product-price ins {
	text-decoration: none;
}

/* ======================================================
   Product statistics
====================================================== */

.product-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 24px 0;
	overflow: hidden;
	border: 1px solid #bdd9fa;
	border-radius: 18px;
	background: #f2f8ff;
}

.product-stat {
	position: relative;
	display: flex;
	min-width: 0;
	padding: 18px 16px;
	align-items: center;
	gap: 13px;
}

.product-stat:not(:last-child)::after {
	position: absolute;
	top: 22%;
	right: 0;
	width: 1px;
	height: 56%;
	background: #dbe4f0;
	content: "";
}

.product-stat-icon {
	display: inline-flex;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	color: #1462bd;
}

.product-stat-icon svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.product-stat-content {
	display: grid;
	min-width: 0;
	gap: 2px;
}

.product-stat-content strong {
	color: #171b32;
	font-size: 17px;
	line-height: 1.2;
}

.product-stat-content span {
	color: #4f5870;
	font-size: 14px;
	line-height: 1.3;
}

/* ======================================================
   Description and buttons
====================================================== */

.product-short-description {
	margin-top: 24px;
	color: #59627a;
	font-size: 17px;
	line-height: 1.75;
}

.product-short-description p {
	margin: 0 0 14px;
}

.product-short-description p:last-child {
	margin-bottom: 0;
}

.product-course-dates {
	margin: 20px 0 0;
	color: #51596f;
	font-size: 15px;
	line-height: 1.7;
}

.product-course-dates strong {
	color: #171b32;
}

.product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 30px;
}

.product-buy-button,
.product-enquiry-button,
.product-sidebar-enquiry {
	display: inline-flex;
	min-height: 52px;
	padding: 0 32px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	background: #eb4d8a;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.product-buy-button:hover,
.product-enquiry-button:hover,
.product-sidebar-enquiry:hover {
	color: #ffffff;
	background: #d83d79;
	transform: translateY(-1px);
}

.product-buy-button.is-disabled {
	opacity: 0.55;
	pointer-events: none;
}

/* ======================================================
   Advisor form
====================================================== */

.advisor-card {
	padding: 30px;
	border-radius: 36px;
	background: #ffeef5;
}

.advisor-card h2 {
	margin: 0 0 12px;
	color: #30298f;
	font-size: 34px;
	line-height: 1.2;
	text-align: center;
}

.advisor-card > p {
	margin: 0 0 24px;
	color: #59627a;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.advisor-card .wpcf7,
.advisor-card .wpcf7-form {
	margin: 0;
}

.advisor-card .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.advisor-card input:not([type="submit"]):not([type="hidden"]),
.advisor-card select,
.advisor-card textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 0 15px;
	box-sizing: border-box;
	border: 1px solid #e1dfe8;
	border-radius: 14px;
	color: #171b32;
	background: #ffffff;
	font: inherit;
	font-size: 14px;
	outline: 0;
}

.advisor-card textarea {
	min-height: 100px;
	padding-top: 12px;
	resize: vertical;
}

.advisor-card input:focus,
.advisor-card select:focus,
.advisor-card textarea:focus {
	border-color: #eb4d8a;
	box-shadow: 0 0 0 3px rgba(235, 77, 138, 0.12);
}

.advisor-card input[type="submit"] {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 4px 0 0;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	background: #eb4d8a;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

/* ======================================================
   Product content cards
====================================================== */

.product-card {
	margin-bottom: 26px;
	padding: 38px;
	border-radius: 30px;
	background: #ffffff;
	box-shadow: 0 10px 35px rgba(49, 31, 121, 0.05);
}

.product-section-title {
	margin: 0 0 24px;
	color: #30298f;
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.2;
}

.product-card-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.product-card-heading .product-section-title {
	margin-bottom: 24px;
}

/* ======================================================
   Main accordion
====================================================== */

.product-main-accordion {
	width: 100%;
}

.product-main-accordion-item {
	border-bottom: 1px solid #dddddd;
}

.product-main-accordion-item:last-child {
	border-bottom: 0;
}

.product-main-accordion-button,
.product-sub-accordion-button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.product-main-accordion-button {
	min-height: 68px;
	padding: 18px 8px;
	color: #211b55;
	font-size: 18px;
}

.product-main-accordion-content {
	padding: 0 8px 22px;
}

.product-main-accordion-content[hidden],
.product-sub-accordion-content[hidden] {
	display: none;
}

.product-accordion-icon {
	display: inline-flex;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	align-items: center;
	justify-content: center;
	color: #eb4d8a;
	font-size: 25px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.product-main-accordion-item.is-open
> .product-main-accordion-button
.product-accordion-icon,
.product-sub-accordion-item.is-open
> .product-sub-accordion-button
.product-accordion-icon {
	transform: rotate(45deg);
}

/* ======================================================
   Nested sub accordion
====================================================== */

.product-sub-accordion {
	display: grid;
	gap: 12px;
}

.product-sub-accordion-item {
	overflow: hidden;
	border: 1px solid #f0d5e0;
	border-radius: 14px;
	background: #fff6fa;
}

.product-sub-accordion-button {
	min-height: 58px;
	padding: 15px 18px;
	color: #30298f;
	font-size: 16px;
}

.product-sub-accordion-content {
	padding: 0 18px 18px;
	color: #59627a;
	font-size: 15px;
	line-height: 1.75;
}

.product-sub-accordion-content p {
	margin: 0 0 12px;
}

.product-sub-accordion-content p:last-child {
	margin-bottom: 0;
}

.product-sub-accordion-content ul,
.product-sub-accordion-content ol {
	margin: 12px 0 0;
	padding-left: 22px;
}

/* ======================================================
   Mobile accordion toggle
====================================================== */

.product-mobile-content-toggle {
	display: none;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 1px solid #f0cbd9;
	border-radius: 50%;
	color: #30298f;
	background: #fff2f7;
	cursor: pointer;
}

.product-mobile-content-toggle svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s ease;
}

.product-mobile-content-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* ======================================================
   Course features
====================================================== */

.product-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.product-feature-item {
	display: flex;
	min-height: 78px;
	padding: 16px;
	align-items: flex-start;
	gap: 11px;
	box-sizing: border-box;
	border-radius: 14px;
	color: #575166;
	background: #ffe8f1;
}

.product-feature-item > span {
	flex: 0 0 auto;
	color: #eb4d8a;
	font-size: 18px;
	line-height: 1.4;
}

.product-feature-item p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

/* ======================================================
   Faculty
====================================================== */

.product-faculty-header {
	max-width: 820px;
	margin: 0 auto 36px;
	text-align: center;
}

.product-faculty-header .product-section-title {
	margin-bottom: 14px;
}

.product-faculty-intro {
	color: #59627a;
	font-size: 16px;
	line-height: 1.75;
}

.product-faculty-intro p {
	margin: 0;
}

.product-faculty-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 22px;
}

.product-faculty-item {
	min-width: 0;
	text-align: center;
}

.product-faculty-image {
	display: flex;
	width: 170px;
	height: 170px;
	margin: 0 auto 16px;
	overflow: hidden;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #ffffff;
	background: #30298f;
	font-size: 48px;
	font-weight: 700;
}

.product-faculty-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.product-faculty-item h3 {
	margin: 0 0 5px;
	color: #30298f;
	font-size: 18px;
	line-height: 1.3;
}

.product-faculty-item:nth-child(even) h3 {
	color: #eb4d8a;
}

.product-faculty-item p {
	margin: 0;
	color: #66708a;
	font-size: 14px;
	line-height: 1.5;
}

/* ======================================================
   Information sections
====================================================== */

.product-information-card {
	scroll-margin-top: 110px;
}

.product-information-content {
	position: relative;
	color: #59627a;
	font-size: 16px;
	line-height: 1.8;
}

.product-information-content p {
	margin: 0 0 14px;
}

.product-information-content p:last-child {
	margin-bottom: 0;
}

.product-information-content ul,
.product-information-content ol {
	padding-left: 22px;
}

.product-information-content a {
	color: #eb4d8a;
}

.product-information-toggle {
	display: none;
	margin: 18px auto 0;
	padding: 9px 18px;
	border: 1px solid #eb4d8a;
	border-radius: 999px;
	color: #eb4d8a;
	background: #ffffff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* ======================================================
   Sticky sidebar
====================================================== */

.product-sidebar {
	position: sticky;
	top: 110px;
	align-self: start;
}

.product-sidebar-enquiry {
	width: 100%;
	margin-bottom: 18px;
}

.product-sidebar-navigation {
	display: grid;
	padding: 22px;
	border-radius: 22px;
	background: #eb4d8a;
	box-shadow: 0 12px 30px rgba(235, 77, 138, 0.16);
}

.product-sidebar-navigation a {
	display: block;
	padding: 10px 0;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.product-sidebar-navigation a:hover {
	color: #ffffff;
	opacity: 0.82;
	transform: translateX(4px);
}

/* ======================================================
   Product enquiry popup
====================================================== */

body.product-popup-open {
	overflow: hidden;
}

.product-enquiry-popup[hidden] {
	display: none;
}

.product-enquiry-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	padding: 20px;
	place-items: center;
}

.product-enquiry-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 18, 45, 0.62);
	backdrop-filter: blur(4px);
}

.product-enquiry-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 560px);
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px;
	box-sizing: border-box;
	border-radius: 26px;
	background: #ffffff;
	box-shadow: 0 28px 80px rgba(13, 18, 45, 0.22);
}

.product-enquiry-popup__dialog h2 {
	margin: 0 40px 24px 0;
	color: #30298f;
	font-size: 30px;
	line-height: 1.2;
}

.product-enquiry-popup__close {
	position: absolute;
	top: 13px;
	right: 15px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #e2e6f0;
	border-radius: 50%;
	color: #171b32;
	background: #ffffff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* ======================================================
   Tablet
====================================================== */

@media (max-width: 1050px) {
	.product-hero-layout,
	.product-details-layout {
		grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
		gap: 28px;
	}

	.product-card {
		padding: 32px;
	}

	.product-faculty-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.product-hero-layout,
	.product-details-layout {
		grid-template-columns: 1fr;
	}

	.product-sidebar {
		position: static;
	}

	.product-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-stat:nth-child(2)::after {
		display: none;
	}

	.product-stat:nth-child(-n + 2) {
		border-bottom: 1px solid #dbe4f0;
	}
}

/* ======================================================
   Mobile
====================================================== */

@media (max-width: 600px) {
	.site-container {
		width: calc(100% - 30px);
	}

	.product-hero,
	.product-details-section {
		padding: 38px 0;
	}

	.product-title {
		font-size: 36px;
	}

	.product-subtitle {
		font-size: 23px;
	}

	.product-price {
		font-size: 27px;
	}

	.product-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-stat {
		flex-direction: column;
		padding: 15px 10px;
		text-align: center;
	}

	.product-stat::after {
		display: none !important;
	}

	.product-stat:nth-child(-n + 2) {
		border-bottom: 1px solid #dbe4f0;
	}

	.product-stat:nth-child(odd) {
		border-right: 1px solid #dbe4f0;
	}

	.product-stat-content {
		justify-items: center;
	}

	.product-stat-content strong {
		font-size: 16px;
	}

	.product-stat-content span {
		font-size: 13px;
	}

	.product-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.product-buy-button,
	.product-enquiry-button {
		width: 100%;
	}

	.advisor-card {
		padding: 24px 18px;
		border-radius: 24px;
	}

	.advisor-card h2 {
		font-size: 29px;
	}

	.product-card {
		padding: 24px 20px;
		border-radius: 22px;
	}

	.product-mobile-content-toggle {
		display: inline-flex;
	}

	.product-content-covered:not(.show-all-mobile-items)
	.product-main-accordion-item:nth-child(n + 4) {
		display: none;
	}

	.product-feature-grid {
		grid-template-columns: 1fr;
	}

	.product-faculty-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 26px 12px;
	}

	.product-faculty-image {
		width: 125px;
		height: 125px;
	}

	.product-faculty-item h3 {
		font-size: 16px;
	}

	.product-information-content {
		max-height: calc(1.8em * 5);
		overflow: hidden;
	}

	.product-information-card:not(.is-expanded)
	.product-information-content::after {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 45px;
		background: linear-gradient(
			to bottom,
			rgba(255, 255, 255, 0),
			#ffffff
		);
		content: "";
	}

	.product-information-card.is-expanded
	.product-information-content {
		max-height: none;
		overflow: visible;
	}

	.product-information-toggle {
		display: inline-flex;
	}

	.product-enquiry-popup__dialog {
		padding: 26px 20px;
		border-radius: 22px;
	}
}

@media (max-width: 420px) {
	.product-faculty-grid {
		grid-template-columns: 1fr;
	}

	.product-faculty-image {
		width: 145px;
		height: 145px;
	}
}

/* ======================================================
   Reduced motion
====================================================== */

@media (prefers-reduced-motion: reduce) {
	.product-buy-button,
	.product-enquiry-button,
	.product-sidebar-enquiry,
	.product-sidebar-navigation a,
	.product-accordion-icon,
	.product-mobile-content-toggle svg {
		transition: none;
	}
}