/*
Theme Name:        BS5 Pro
Theme URI:         https://example.com/bs5-pro
Author:            Nama Anda
Author URI:        https://example.com
Description:       Theme WordPress custom berbasis Bootstrap 5.3 yang responsif, SEO friendly, mendukung ACF dan kompatibel dengan Elementor (termasuk Theme Builder locations).
Version:           1.0.0
Requires at least: 6.6
Tested up to:      7.0
Requires PHP:      8.2
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       bs5-pro
Domain Path:       /languages
Tags:              blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, wide-blocks, block-styles, accessibility-ready
*/

/* ==========================================================================
   Design tokens (selaras dengan theme.json & Bootstrap 5.3 CSS variables)
   ========================================================================== */
:root {
	--bs5pro-radius: 0.75rem;
	--bs5pro-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Base
   ========================================================================== */
html {
	scroll-padding-top: 5rem;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

/* Header */
.site-header {
	z-index: 1030;
}

.site-header .custom-logo {
	width: auto;
	max-height: 48px;
}

.admin-bar .site-header.sticky-top {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header.sticky-top {
		top: 46px;
	}
}

/* Kartu artikel */
.card {
	border-radius: var(--bs5pro-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: var(--bs5pro-shadow) !important;
}

@media (prefers-reduced-motion: reduce) {
	.card {
		transition: none;
	}

	.card:hover {
		transform: none;
	}
}

.card-img-top {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Konten artikel / halaman */
.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-content img {
	border-radius: 0.5rem;
}

.entry-content .alignwide {
	margin-inline: auto;
	max-width: 100%;
}

.entry-content .alignfull {
	max-width: 100%;
}

/* Footer */
.footer-menu .nav-link {
	color: inherit;
	opacity: 0.75;
}

.footer-menu .nav-link:hover,
.footer-menu .nav-link:focus {
	opacity: 1;
}

/* Komentar */
.comment-list,
.comment-list .children {
	list-style: none;
	padding-left: 0;
}

.comment-list .children {
	margin-left: 1.5rem;
}

.comment-body {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs5pro-radius);
}

/* ==========================================================================
   Kelas inti WordPress (wajib untuk kompatibilitas editor & Theme Check)
   ========================================================================== */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.alignleft {
	float: left;
	margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption,
.gallery-caption {
	color: var(--bs-secondary-color);
	font-size: 0.875rem;
	margin-top: 0.5rem;
	text-align: center;
}

.sticky .card-title::before {
	content: "\2605\00a0";
	color: var(--bs-warning);
}

.bypostauthor > .comment-body {
	border-color: var(--bs-primary);
}

/* ==========================================================================
   Identitas visual BS5 Pro: teal + sudut membulat + gradasi lembut.
   Mengganti warna primary Bootstrap lewat CSS variables (tanpa Sass).
   ========================================================================== */
:root {
	--bs-primary: #0f766e;
	--bs-primary-rgb: 15, 118, 110;
	--bs-primary-bg-subtle: #d5efec;
	--bs-primary-border-subtle: #a9dfd9;
	--bs-primary-text-emphasis: #073c38;
	--bs-link-color: #0f766e;
	--bs-link-color-rgb: 15, 118, 110;
	--bs-link-hover-color: #0b5a54;
	--bs-link-hover-color-rgb: 11, 90, 84;
	--bs5pro-accent: #f59e0b;
}

.btn-primary {
	--bs-btn-bg: #0f766e;
	--bs-btn-border-color: #0f766e;
	--bs-btn-hover-bg: #0b5a54;
	--bs-btn-hover-border-color: #0a504b;
	--bs-btn-active-bg: #0a504b;
	--bs-btn-active-border-color: #094641;
	--bs-btn-disabled-bg: #0f766e;
	--bs-btn-disabled-border-color: #0f766e;
	--bs-btn-focus-shadow-rgb: 15, 118, 110;
}

.btn-outline-primary {
	--bs-btn-color: #0f766e;
	--bs-btn-border-color: #0f766e;
	--bs-btn-hover-bg: #0f766e;
	--bs-btn-hover-border-color: #0f766e;
	--bs-btn-active-bg: #0f766e;
	--bs-btn-active-border-color: #0f766e;
	--bs-btn-disabled-color: #0f766e;
	--bs-btn-disabled-border-color: #0f766e;
	--bs-btn-focus-shadow-rgb: 15, 118, 110;
}

.pagination {
	--bs-pagination-color: #0f766e;
	--bs-pagination-hover-color: #0b5a54;
	--bs-pagination-focus-color: #0b5a54;
	--bs-pagination-active-bg: #0f766e;
	--bs-pagination-active-border-color: #0f766e;
}

.form-check-input:checked {
	background-color: #0f766e;
	border-color: #0f766e;
}

.form-control:focus {
	border-color: #0f766e;
	box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.25);
}

/* Judul seksi dengan garis aksen */
.section-title {
	position: relative;
	padding-bottom: 0.75rem;
	margin-bottom: 0;
}

.section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 3.5rem;
	height: 0.25rem;
	border-radius: 1rem;
	background: var(--bs5pro-accent);
}

/* Hero beranda */
.hero {
	background:
		radial-gradient(60rem 30rem at 90% -10%, rgba(245, 158, 11, 0.12), transparent 60%),
		linear-gradient(135deg, var(--bs-primary-bg-subtle) 0%, var(--bs-body-bg) 70%);
}

/* Pita statistik */
.stats-band .stat-number {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
}

/* Kategori */
.category-tile {
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs5pro-radius);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.category-tile:hover,
.category-tile:focus-visible {
	border-color: var(--bs-primary);
	background-color: var(--bs-primary-bg-subtle);
}

/* Instruktur */
.instructor-photo {
	width: 132px;
	height: 132px;
	object-fit: cover;
}

.instructor-photo--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bs-primary-bg-subtle);
	color: var(--bs-primary-text-emphasis);
	font-size: 2.5rem;
	font-weight: 700;
}

/* Testimoni */
.avatar-48 {
	width: 48px;
	height: 48px;
	object-fit: cover;
}

.testimonial-quote::before {
	content: "\201C";
	display: block;
	font-size: 3rem;
	line-height: 1;
	color: var(--bs5pro-accent);
}

/* CTA */
.cta-panel {
	background:
		radial-gradient(30rem 16rem at 100% 0, rgba(245, 158, 11, 0.35), transparent 60%),
		linear-gradient(135deg, #0f766e, #073c38);
	border-radius: 1.5rem;
}

/* Halaman tunggal kursus */
.course-hero,
.page-hero {
	background: linear-gradient(135deg, var(--bs-primary-bg-subtle) 0%, var(--bs-body-bg) 80%);
}

.sticky-lg-top.course-sidebar {
	top: 6rem;
}

.course-sidebar .card-img-top {
	border-radius: 0;
}

.course-price {
	font-size: 2rem;
	font-weight: 800;
	color: var(--bs-primary);
}

/* Halaman Tentang & Kontak */
.value-index {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--bs5pro-accent);
}

.contact-info dt {
	font-weight: 600;
}

.contact-info dd {
	color: var(--bs-secondary-color);
}

/* FAQ: accordion selaras identitas teal */
.accordion {
	--bs-accordion-border-radius: 0.75rem;
	--bs-accordion-inner-border-radius: calc(0.75rem - 1px);
	--bs-accordion-active-color: #073c38;
	--bs-accordion-active-bg: #d5efec;
	--bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.25);
	--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23073c38'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-item + .faq-item {
	margin-top: 0.75rem;
}

.faq-item.accordion-item {
	border-radius: var(--bs5pro-radius);
	overflow: hidden;
}
