:root {
	--dark: #0b1b3f;
	--primary: #023061;
	--accent: #bedced;
	--text-dark: #1f2937;
}

body {
	font-family: "Inter", sans-serif;
	background: #f8fbff;
}

.course-detail {
	padding: 80px 0;
}
.course-wrapper {
	max-width: 1200px;
	margin: auto;
	margin-top: 60px;
	display: grid;
	grid-template-columns: 2.2fr 1fr;
	gap: 40px;
	align-items: start;
}
.content-doc-item {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
}
.content-doc-item ion-icon {
	margin-right: 10px;
}

/* HEADER */
.course-header h1 {
	font-size: 34px;
	color: var(--dark);
}

/* Update CSS kamu */
.course-subtitle,
.course-subtitle p {
	margin: 15px 0;
	font-size: 16px;
	color: #475569; /* Memberikan warna abu-abu */
	line-height: 1.7; /* Agar jarak antar baris lebih enak dibaca */
}

/* Menangani teks italic agar tidak terlalu kontras jika diperlukan */
.course-subtitle i,
.course-subtitle em {
	color: inherit;
}
.course-provider {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--primary);
}

.courses-blockss {
	margin-bottom: 10px;
}
.course-tabs {
	display: flex;
	gap: 20px;
	margin: 40px 0;
	border-bottom: 1px solid #e2e8f0;
}

.course-tabs .tab {
	padding: 12px 0;
	background: none;
	border: none;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	position: relative;
}

.course-tabs .active {
	color: var(--dark);
}

.course-tabs .active::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--primary);
}

/* CONTENT */
.course-content {
	display: none;
	animation: fadeIn 0.35s ease-in-out;
}

.course-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.course-content .content-block {
	margin-bottom: 35px;
}

.course-content h2 {
	color: var(--dark);
	margin-bottom: 12px;
}

/* Update CSS kamu */
.course-content p,
.course-content li,
.course-content ol, /* Tambahkan ini */
.course-content ul {
	/* Tambahkan ini */
	color: #475569;
	line-height: 1.7;
}
.content-block {
	/* Memastikan teks yang tidak terbungkus tag tetap punya warna yang sama */
	color: #475569;
	line-height: 1.7;
}

/* Biar angka pada list tidak mepet ke kiri */
.course-content ol,
.course-content ul {
	padding-left: 20px;
	margin-bottom: 15px;
}

/* Styling tambahan agar teks strong/bold tidak merusak flow */
.course-content strong {
	color: var(--dark);
}

/* RELATED */
.course-related h3 {
	margin-bottom: 20px;
	color: #475569;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.related-card {
	background: white;
	border-radius: 16px;
	padding: 15px;
	box-shadow: 0 15px 40px rgba(11, 27, 63, 0.08);
	position: relative;
	padding-bottom: 50px;
}
.btn-course-daftar {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 100%;
}
.related-card img {
	width: 100%;
	border-radius: 12px;
}

.related-card h4 {
	margin: 12px 0;
	font-size: 14px;
	color: var(--primary);
}
.related-info {
	font-size: 13px;
	color: #64748b;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.related-card span {
	color: #1c8c4c;
	font-weight: 700;
}

.related-card a {
	display: block;
	margin-top: 10px;
	text-align: center;
	padding: 10px;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	background: var(--primary);
	color: white;
	text-decoration: none;
}
.related-card a:hover {
	background: var(--dark);
	transition: background ease-in-out 0.2s;
}

/* SIDEBAR */
.course-sidebar {
	position: sticky;
	top: 120px;
	background: white;
	padding: 25px;
	border-radius: 20px;
	box-shadow: 0 25px 60px rgba(11, 27, 63, 0.15);
}

.course-sidebar img {
	width: 100%;
	border-radius: 14px;
}

.cta-btn {
	display: block;
	margin: 20px 0;
	padding: 15px;
	background: linear-gradient(135deg, var(--dark), var(--primary));
	color: white;
	text-align: center;
	border-radius: 14px;
	font-weight: 700;
	text-decoration: none;
}

.course-info {
	list-style: none;
	padding: 0;
}

.course-info li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0;
	color: #475569;
}

.gratis {
	color: #1c8c4c !important;
	font-weight: 600;
}

/* ================= REVIEW SECTION ================= */

#content-reviews {
	margin-bottom: 50px;
}
.review-header {
	margin-bottom: 30px;
}

.review-header h2 {
	color: var(--dark);
	font-size: 26px;
}

.review-header p {
	color: #64748b;
	font-size: 15px;
	margin-top: 6px;
}

.review-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.review-card {
	background: linear-gradient(180deg, #ffffff, #f9fcff);
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 20px 50px rgba(11, 27, 63, 0.08);
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 70px rgba(11, 27, 63, 0.15);
}

/* USER */
.review-user {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.review-user img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--accent);
}

.review-user h4 {
	font-size: 16px;
	color: var(--dark);
	margin: 0;
}

.review-user span {
	font-size: 13px;
	color: #64748b;
}

/* RATING */
.review-rating {
	color: #f4b400;
	margin: 8px 0 14px;
	font-size: 18px;
}

/* TEXT */
.review-text {
	font-size: 15px;
	line-height: 1.7;
	color: #334155;
	margin: 0 0 18px;
	position: relative;
	padding-left: 16px;
}

.review-text::before {
	content: "“";
	position: absolute;
	left: -8px;
	top: -6px;
	font-size: 36px;
	color: var(--accent);
	font-weight: bold;
}

/* DATE */
.review-date {
	font-size: 12px;
	color: #94a3b8;
	text-align: right;
	position: absolute;
	bottom: 10px;
	right: 20px;
}
.porto-section {
	margin-top: 4rem;
	margin-bottom: 30px;
}

.porto-header {
	text-align: center;
	margin-bottom: 3rem;
}

.porto-header h2 {
	font-size: 2rem;
	font-weight: 700;
	color: #0b1b3f;
}

.porto-header p {
	color: #6b7280;
	font-size: 0.95rem;
	max-width: 520px;
	margin: 0.5rem auto 0;
}

/* GRID */
.porto-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
}

/* CARD */
.porto-card {
	background: #ffffff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(11, 27, 63, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	cursor: pointer;
	position: relative;
	height: 100%;
}

.porto-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 45px rgba(11, 27, 63, 0.15);
}

/* THUMBNAIL */
.porto-thumb {
	position: relative;
	overflow: hidden;
}

.porto-thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.porto-card:hover .porto-thumb img {
	transform: scale(1.08);
}

/* BODY */
.porto-body {
	padding: 1.25rem 1.4rem 3.5rem; /* extra space for button */
}

.porto-category {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: #023061;
	background: #bedced;
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 0.75rem;
}

.porto-title {
	font-size: 1.05rem;
	font-weight: 600;
	color: #0b1b3f;
	line-height: 1.4;
	margin-bottom: 1rem;
}
.porto-btn {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #023061;
	padding: 8px;
}

.porto-btn a {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #ffffff;
	font-weight: 600;
}
.porto-btn:hover {
	background-color: #0b1b3f;
	transition: 0.2s all ease-in;
}
.porto-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: #6b7280;
}

.porto-author,
.porto-like {
	display: flex;
	align-items: center;
	gap: 6px;
}
.porto-author ion-icon {
	font-size: 20px;
}
.porto-like ion-icon {
	color: #e11d48;
}
#course-sidebar-mobile {
	display: none;
}
@media (max-width: 991px) {
	.course-detail {
		padding: 60px 60px;
	}
	#course-sidebar-mobile {
		display: block;
		margin-bottom: 50px;
	}
	#course-sidebar-normal {
		display: none;
	}
	.course-wrapper {
		grid-template-columns: 1fr;
		gap: 50px;
		margin-top: 90px;
	}

	/* HEADER */
	.course-header h1 {
		font-size: 28px;
	}

	.course-subtitle {
		font-size: 15px;
	}

	/* TABS */
	.course-tabs {
		gap: 16px;
		margin: 30px 0;
		overflow-x: auto;
	}

	.course-tabs .tab {
		font-size: 14px;
		white-space: nowrap;
	}

	/* CONTENT */
	.course-content h2 {
		font-size: 22px;
	}

	.course-content p,
	.course-content li {
		font-size: 14.5px;
	}

	/* SIDEBAR */
	.course-sidebar {
		position: relative;
		top: unset;
		padding: 22px;
	}

	/* RELATED */
	.related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* REVIEW */
	.review-grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}

	.review-card {
		padding: 22px;
	}

	/* PORTOFOLIO */
	.porto-header h2 {
		font-size: 1.7rem;
	}

	.porto-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	.porto-title {
		font-size: 1rem;
	}
}

/* RESPONSIVE */
@media (max-width: 576px) {
	.porto-header h2 {
		font-size: 1.6rem;
	}
}

@media (max-width: 440px) {
	.content-doc-item {
		font-size: 11px !important;
	}
	.course-detail {
		padding: 40px 40px;
	}
	.course-wrapper {
		grid-template-columns: 1fr;
		gap: 50px;
		margin-top: 100px;
	}

	/* HEADER */
	.course-header h1 {
		font-size: 22px;
		line-height: 1.35;
	}

	.course-subtitle {
		font-size: 14px;
	}

	.course-provider {
		font-size: 13px;
	}

	/* TABS */
	.course-tabs {
		gap: 14px;
		margin: 24px 0;
	}

	.course-tabs .tab {
		font-size: 13px;
		padding: 10px 0;
	}

	/* CONTENT */
	.course-content h2 {
		font-size: 15px;
	}

	.course-content p,
	.course-content li {
		font-size: 12px;
		line-height: 1.65;
	}

	/* SIDEBAR */
	.course-sidebar {
		padding: 18px;
		border-radius: 16px;
	}

	.course-info li {
		font-size: 14px;
	}

	.cta-btn {
		padding: 13px;
		font-size: 14px;
		border-radius: 12px;
	}

	/* RELATED */
	.related-grid {
		grid-template-columns: 1fr;
	}

	/* REVIEW */
	.review-header h2 {
		font-size: 16px;
	}

	.review-header p {
		font-size: 12px;
	}
	.review-user h4 {
		font-size: 14px;
	}
	.review-user span {
		font-size: 12px;
	}
	.review-rating ion-icon {
		font-size: 12px;
	}
	.review-text {
		font-size: 12px !important;
	}
	.review-date {
		font-size: 12px !important;
	}

	.review-card {
		padding: 18px;
	}

	.review-user img {
		width: 44px;
		height: 44px;
	}

	.review-text {
		font-size: 14px;
	}

	/* PORTOFOLIO */
	.porto-header h2 {
		font-size: 1.4rem;
	}

	.porto-header p {
		font-size: 14px;
	}

	.porto-grid {
		grid-template-columns: 1fr;
	}

	.porto-thumb img {
		height: 160px;
	}

	.porto-title {
		font-size: 0.95rem;
	}

	.porto-meta {
		font-size: 0.8rem;
	}

	.porto-btn a {
		font-size: 14px;
	}
}

#pay-price {
	color: crimson !important;
}
.payment {
	display: grid !important;
}
.payment img {
	width: 30px;
}
.payment-logo {
	display: flex;
	gap: 10px;
	flex-direction: row !important;
}
