/* Frontend template-3 styles (diekstrak dari _template.php) */
* {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
	background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
	padding: 1rem 0;
}

.hero-content h1 {
	font-size: clamp(2rem, 6vw, 3rem);
	line-height: 1.1;
	margin-bottom: 0;
	letter-spacing: -0.5px;
}

.hero-content .lead {
	font-size: clamp(1rem, 2.5vw, 1.125rem);
	line-height: 1.7;
	color: #6c757d;
}

@media (max-width: 768px) {
	.hero-section {
		padding: 0.75rem 0;
		text-align: center;
	}

	.hero-content h1 {
		font-size: 1.75rem;
		margin-bottom: 0;
	}

	.hero-content .lead {
		font-size: 1rem;
		margin-bottom: 1.5rem;
	}
}

/* Article Detail Page */
.article-cover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	display: block;
	width: 100%;
}

.article-cover img {
	display: block;
	width: 100%;
	height: auto;
}

.article-meta {
	font-size: 0.95rem;
}

.article-meta .bi {
	margin-right: 0.5rem;
}

/* Share Buttons */
.share-buttons {
	gap: 0.75rem;
	display: flex;
	flex-wrap: wrap;
}

.btn-social {
	width: 50px;
	height: 50px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	font-size: 1.3rem;
	border: none;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-social:hover {
	transform: translateY(-4px) scale(1.1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
	.btn-social {
		width: 46px;
		height: 46px;
		font-size: 1.2rem;
	}

	.share-buttons {
		gap: 0.6rem;
	}
}

.btn-facebook {
	background: #3B5998;
	color: #fff;
}

.btn-twitter {
	background: #55ACEE;
	color: #fff;
}

.btn-whatsapp {
	background: #25d366;
	color: #fff;
}

.btn-telegram {
	background: #2aabee;
	color: #fff;
}

/* Featured Articles Slider */
.featured-articles {
	margin-bottom: 1.5rem;
	margin-top: 0;
}

.featured-card {
	position: relative;
	overflow: hidden;
	display: block;
	background: #000;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	border-radius: 1.5rem;
}

.featured-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.featured-card img {
	width: 100%;
	height: 480px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.featured-card:hover img {
	transform: scale(1.05);
}

.featured-overlay {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
	z-index: 1;
	transition: all 0.3s ease;
}

.featured-card:hover .featured-overlay {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.featured-content {
	z-index: 2;
	position: relative;
}

.featured-content h3 {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	line-height: 1.3;
	margin: 0;
}

.featured-content p {
	font-size: 0.95rem;
	margin: 0.5rem 0 0;
}

/* Articles List */
.articles-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow: hidden;
	background: #fff;
	border-radius: 0.75rem;
	border: 1px solid #e9ecef;
}

/* Desktop: daftar mengisi tinggi kartu utama, item dibagi rata (tanpa scroll) */
@media (min-width: 992px) {
	.articles-list {
		height: 480px;
	}

	.article-item {
		flex: 1 1 0;
		min-height: 0;
		align-items: center;
	}
}

.article-item {
	display: flex;
	gap: 1rem;
	padding: 1rem !important;
	background: transparent;
	border-bottom: 1px solid #e9ecef;
	transition: all 0.3s ease;
	color: inherit;
}

.article-item:last-child {
	border-bottom: none;
}

.article-item:hover {
	background: #f9f9f9;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transform: translateX(4px);
}

.article-thumb {
	flex-shrink: 0;
}

.article-thumb img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 0.75rem;
	transition: transform 0.3s ease;
}

.article-item:hover .article-thumb img {
	transform: scale(1.05);
}

.article-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.article-info .badge {
	width: fit-content;
	font-size: 0.75rem;
	padding: 0.35rem 0.6rem;
}

.article-info h6 {
	font-size: 0.95rem;
	color: #1a1a1a;
}

.article-item:hover .article-info h6 {
	color: var(--theme-color);
}

@media (max-width: 992px) {
	.featured-card img {
		height: 380px;
	}

	.article-thumb img {
		width: 90px;
		height: 90px;
	}

	.featured-content h3 {
		font-size: 1.25rem;
	}

	.featured-content p {
		font-size: 0.9rem;
	}
}

@media (max-width: 768px) {
	.featured-card img {
		height: 300px;
	}

	.featured-content {
		padding: 1rem !important;
	}

	.featured-content h3 {
		font-size: 1.1rem;
	}

	.featured-content p {
		display: none;
	}

	.article-item {
		padding: 0.75rem !important;
	}

	.article-thumb img {
		width: 80px;
		height: 80px;
	}

	.article-info h6 {
		font-size: 0.85rem;
	}
}

.article-content {
	line-height: 1.8;
	font-size: clamp(1rem, 2vw, 1.125rem);
}

.article-content p {
	margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

.article-content img {
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0;
	border-radius: 0.5rem;
}

/* Author Info */
.author-info {
	font-size: 0.95rem;
}

.author-info p {
	margin-bottom: 0.5rem;
}

.author-info .bi {
	margin-right: 0.5rem;
}

/* Related Articles */
.related-articles h3 {
	font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.related-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.related-thumb {
	overflow: hidden;
}

.related-thumb img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.related-card:hover .related-thumb img {
	transform: scale(1.06);
}

.related-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.related-card:hover .related-title {
	color: var(--theme-color) !important;
}

.card-grid {
	overflow: hidden;
	transition: transform 0.3s ease;
}

.card-grid:hover {
	transform: translateY(-5px);
}

.card-grid img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.card-grid:hover img {
	transform: scale(1.05);
}

.card-grid .title {
	z-index: 2;
	height: auto;
}

.card-grid .title a {
	color: var(--bs-body-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.card-grid .title a:hover {
	color: var(--theme-color);
}

/* Sidebar */
.sidebar-widgets {
	z-index: 10;
}

@media (max-width: 992px) {
	.sidebar-widgets {
		position: static !important;
		margin-top: 3rem;
	}
}

/* Pagination */
.pagination {
	gap: 0.5rem;
}

.page-link {
	border-radius: 0.375rem;
	border: 1px solid #dee2e6;
	color: var(--theme-color);
}

.page-link:hover {
	background-color: var(--theme-color);
	color: #fff;
}

.page-item.active .page-link {
	background-color: var(--theme-color);
	border-color: var(--theme-color);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 600;
	letter-spacing: -0.3px;
}

.display-5,
.display-6 {
	font-weight: 700;
}

.text-primary {
	color: var(--theme-color) !important;
}

/* Breadcrumb */
.breadcrumb {
	background-color: transparent;
	padding: 0.5rem 0;
	margin-bottom: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
	content: "→";
}

.breadcrumb-item a {
	color: var(--theme-color);
	text-decoration: none;
}

.breadcrumb-item a:hover {
	text-decoration: underline;
}

.bg-theme {
	background: var(--theme-color);
}

a {
	text-decoration: none;
}

.carousel-caption {
	background: rgba(0, 0, 0, .6);
	padding: 10px;
}

.carousel-caption p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-grid .title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3rem;
}

.card-grid .title a {
	color: var(--bs-body-color);
}

.card-grid .description {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 4.5rem;
}

.card-1 .title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-1 a .title {
	color: var(--bs-body-color);
}

.artikel-list-2 .card-2:nth-child(even) {
	background: rgba(200, 200, 200, .1);
}

.card-2 .title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-2 .title a {
	font-weight: bold;
}

.card-3 a {
	color: #000;
}

.card-3 .background {
	opacity: .25;
}

.card-3:hover .background {
	opacity: 0 !important;
	transition: all .5s ease-out;
}

.card-3 .title {
	min-height: 3em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-3 .description {
	min-height: 4.5em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.section-title {
	position: relative;
	overflow: hidden;
}

.section-title a {
	color: #fff;
}

.section-title span {
	display: inline-block;
	vertical-align: baseline;
	zoom: 1;
	*display: inline;
	*vertical-align: auto;
	position: relative;
	padding-right: 15px;
	letter-spacing: .2em;
}

.section-title span:before,
.section-title span:after {
	content: '';
	display: block;
	width: 1000px;
	position: absolute;
	top: .73em;
}

.section-title span:before {
	right: 100%;
}

.section-title span:after {
	left: 100%;
}

.rounded-list {
	counter-reset: li;
	list-style: none;
	*list-style: decimal;
}

.rounded-list li {
	margin-bottom: 5px;
}

.rounded-list a {
	position: relative;
	display: block;
	padding: .4em .4em .4em 2em;
	color: #444;
	text-decoration: none;
	border-radius: .3em;
	transition: all .3s ease-out;
}

.rounded-list a:hover {
	background: #eee;
	color: var(--bs-link-color);
}

.rounded-list a:hover:before {
	transform: rotate(360deg);
}

.rounded-list a:before {
	content: counter(li);
	counter-increment: li;
	position: absolute;
	left: -1.3em;
	top: 50%;
	margin-top: -1.3em;
	background: var(--theme-color2);
	padding: .2em .7em;
	border: .3em solid #fff;
	text-align: center;
	font-weight: 700;
	border-radius: 2em;
	transition: all .3s ease-out;
}

.holder {
	border: 1px dashed #afafaf;
	padding: 15px;
	margin: 15px auto;
}

/* Mobile-specific spacing */
@media (max-width: 576px) {
	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.hero-section {
		padding: 1rem 0;
	}

	.share-buttons {
		justify-content: center !important;
		flex-wrap: wrap;
	}

	.btn-social {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}

	.article-content {
		font-size: 1rem;
	}

	.article-content h2,
	.article-content h3 {
		margin-top: 1.5rem;
	}

	/* Make sidebar full width on mobile */
	.sidebar-widgets {
		margin-top: 2rem;
	}

	.card-grid img {
		height: 150px;
	}

	.display-5 {
		font-size: 1.5rem;
	}

	.display-6 {
		font-size: 1.25rem;
	}

	.lead {
		font-size: 0.95rem;
	}
}

/* Tablet */
@media (min-width: 577px) and (max-width: 992px) {
	.hero-section {
		padding: 1.5rem 0;
	}

	.article-content {
		font-size: 1.05rem;
	}
}

/* Desktop */
@media (min-width: 993px) {
	.hero-section {
		padding: 3rem 0;
	}

	.article-content {
		font-size: 1.125rem;
	}
}

/* Old styles for backward compatibility */
.fa-btn.fa {
	padding: 10px 10px;
	width: 40px;
	text-align: center;
	text-decoration: none;
	margin-right: 5px;
}

.fa-btn.fa:hover {
	opacity: .7;
}

.fa-btn.fa-facebook {
	background: #3B5998;
	color: #fff;
}

.fa-btn.fa-twitter {
	background: #55ACEE;
	color: #fff;
}

.fa-btn.fa-whatsapp {
	background: #25d366;
	color: #fff;
}

.fa-btn.fa-telegram {
	background: #2aabee;
	color: #fff;
}

@media (min-width: 420px) {
	.card-1 .title {
		line-height: 1.3;
	}

	.card-2 .title {
		line-height: 1.3;
	}

	.card-2 .title a {
		font-size: 1rem;
	}
}

@media (min-width: 295px) and (max-width: 419px) {
	.card-1 .title {
		margin: -1.8rem .4rem 1rem;
		padding: .2rem !important;
		font-size: 1rem;
		line-height: 1.2;
	}

	.card-2 .title {
		line-height: 1.2;
	}

	.card-2 .title a {
		font-size: 1rem;
	}

	.card-2 .footer {
		position: relative !important;
		font-size: .6rem;
		margin-top: 3px;
	}
}

/* Print styles */
@media print {

	.navbar,
	.footer,
	.share-buttons,
	.pagination {
		display: none;
	}
}

/* Footer */
.footer {
	background: #eef0f3;
	color: #495057;
}

.footer-heading {
	color: #5c636a;
	letter-spacing: 0.6px;
	font-size: 0.78rem;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 0.9rem;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a,
.footer-social-list a {
	color: #495057;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-social-list a:hover {
	color: var(--theme-color);
}

.footer-social-list li {
	margin-bottom: 0.5rem;
}

.footer-social-list a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.footer-social-list .bi {
	font-size: 1.05rem;
}

.footer-top-link {
	color: var(--theme-color);
	text-decoration: none;
}

.footer-top-link:hover {
	text-decoration: underline;
}

/* Category page */
.category-hero {
	position: relative;
	z-index: 1;
}

.featured-content h2 {
	font-size: clamp(1.4rem, 3.5vw, 2.25rem);
	line-height: 1.2;
}

.related-desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Tombol Cari (modern) */
.btn-search-pill {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e3e6ea;
	background: #f1f3f5;
	color: #6c757d;
	border-radius: 50rem;
	padding: 0.45rem 1.1rem;
	font-size: 0.95rem;
	transition: all 0.2s ease;
}

.btn-search-pill:hover {
	background: #fff;
	border-color: var(--theme-color);
	color: var(--theme-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.btn-search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--theme-color);
	color: #fff;
	font-size: 1.1rem;
	border: none;
	transition: all 0.2s ease;
}

.btn-search-icon:hover,
.btn-search-icon:focus {
	filter: brightness(0.92);
	color: #fff;
}

/* Modal Cari (modern + mobile) */
#modal-cari .modal-content {
	border: none;
	border-radius: 1rem;
}

#modal-cari .form-control {
	border-radius: 50rem 0 0 50rem;
	padding-left: 1.2rem;
}

#modal-cari .btn {
	border-radius: 0 50rem 50rem 0;
	padding-inline: 1.3rem;
}

@media (max-width: 575.98px) {
	#modal-cari .modal-dialog {
		margin: 0.75rem;
	}

	#modal-cari .modal-content {
		border-radius: 0.9rem;
	}
}

/* ============================================================
   Widget artikel (CONTENT/MAIN BOTTOM) — tampilan lebih mewah
   Berlaku di semua tema; warna mengikuti --theme-color (skin).
   ============================================================ */

/* Heading seksi premium: bar aksen kiri + garis bawah */
.section-title {
	position: relative;
	border-bottom: 2px solid #e9ecef;
	padding-bottom: .55rem;
	margin-bottom: 1.4rem;
	overflow: visible;
}
.section-title span {
	display: inline-block;
	padding: 0 0 0 .85rem;
	border-left: 5px solid var(--theme-color);
	letter-spacing: .04em;
	position: relative;
}
.section-title span:before,
.section-title span:after { display: none !important; }
.section-title .badge.bg-theme {
	box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
	padding: .45rem .9rem;
}

/* GRID: kartu bergambar jadi kartu ber-elevasi */
.card-grid {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: .8rem;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(17, 24, 39, .06);
	transition: transform .3s ease, box-shadow .3s ease;
	height: 100%;
}
.card-grid:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(17, 24, 39, .15);
}
.card-grid > a {
	order: -1;
	display: block;
	overflow: hidden;
}
.card-grid img {
	width: 100%;
	height: 210px;
	object-fit: cover;
	border-radius: 0 !important;
}
.card-grid .title {
	order: 1;
	padding: .9rem 1.1rem .35rem;
	margin: 0;
	min-height: 0;
	font-weight: 700;
	line-height: 1.3;
}
.card-grid .description {
	order: 2;
	padding: 0 1.1rem 1.15rem;
	margin: 0;
	height: auto;
	-webkit-line-clamp: 2;
	color: #6b7280;
	font-size: .9rem;
	line-height: 1.55;
}

/* CARD-1 (judul + thumbnail kecil): kartu rapi + hover */
.card-1 {
	background: #fff;
	border: 1px solid #eef0f2;
	border-radius: .6rem;
	padding: .55rem;
	transition: box-shadow .25s ease, transform .25s ease;
}
.card-1:hover { box-shadow: 0 10px 26px rgba(17, 24, 39, .10); transform: translateY(-3px); }
.card-1 .img { border-radius: .45rem; height: 64px; object-fit: cover; }
.card-1 a .title { color: var(--bs-body-color); transition: color .2s ease; }
.card-1:hover a .title { color: var(--theme-color); }

/* CARD-2 (daftar horizontal): baris elegan, thumbnail membulat */
.artikel-list-2 {
	border-radius: .8rem;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(17, 24, 39, .06);
}
.artikel-list-2 .card-2 {
	padding: 1rem !important;
	border-bottom: 1px solid #eef0f2;
	transition: background .2s ease;
}
.artikel-list-2 .card-2:last-child { border-bottom: none; }
.artikel-list-2 .card-2:nth-child(even) { background: transparent; }
.artikel-list-2 .card-2:hover { background: #f7f8fa; }
.card-2 .img { border-radius: .5rem; height: 90px; object-fit: cover; }
.card-2 .title a { transition: color .2s ease; }
.card-2:hover .title a { color: var(--theme-color); }
.card-2 .description p { color: #6b7280; font-size: .88rem; margin-bottom: .25rem; }

/* CARD-3 (kartu overlay): gambar bersih + judul tegas */
.card-3 .background { display: none; }
.card-3 .img { border-radius: .6rem; height: 150px; object-fit: cover; transition: transform .35s ease; }
.card-3 a { overflow: hidden; display: block; }
.card-3:hover .img { transform: scale(1.05); }
.card-3 .title {
	min-height: 0;
	margin-top: .55rem;
	font-size: .95rem;
	line-height: 1.35;
	transition: color .2s ease;
}
.card-3:hover .title { color: var(--theme-color); }
