/*
Theme Name: Sahifa Style
Theme URI: https://kabarteknoz.my.id/
Author: Muse (untuk Berita Tekno Terbaru)
Author URI: https://kabarteknoz.my.id/
Description: Child theme Twenty Twenty-Five yang meniru tampilan tema berita/majalah Sahifa: top bar gelap, menu utama gelap aksen biru, ticker berita terkini, blok homepage per kategori, dan layout boxed. Menampilkan featured image; perbaikan warna teks menu; kolom tautan Informasi di footer (v1.1.2).
Version: 1.1.2
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: sahifa-style
Tags: news, magazine, blog, two-columns, custom-menu
*/

/* ============================================================
   Sahifa Style — palet warna skin default Sahifa
   ============================================================ */
:root {
	--sahifa-dark: #2d2d2d;
	--sahifa-darker: #1f1f1f;
	--sahifa-orange: #1e7fd9;
	--sahifa-red: #0b5fa5;
	--sahifa-bg: #e9e9e9;
	--sahifa-line: #e2e2e2;
	--sahifa-text: #222222;
	--sahifa-muted: #777777;
}

/* ============================================================
   1. Layout boxed ala Sahifa
   ============================================================ */
body {
	background-color: var(--sahifa-bg);
}

.sahifa-topbar,
.sahifa-masthead,
.sahifa-mainnav,
main.sahifa-page,
.sahifa-footer {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

main.sahifa-page {
	background: #ffffff;
	padding: 24px 28px 32px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ============================================================
   2. Top bar gelap (tanggal + pencarian)
   ============================================================ */
.sahifa-topbar {
	background: var(--sahifa-dark);
	color: #cfcfcf;
	font-size: 13px;
}

.sahifa-topbar-inner {
	padding: 6px 20px;
}

.sahifa-date {
	margin: 0;
	color: #cfcfcf;
}

.sahifa-topbar-search {
	max-width: 260px;
}

.sahifa-topbar-search .wp-block-search__input {
	background: #1f1f1f;
	border: 1px solid #444444;
	color: #eeeeee;
	font-size: 13px;
}

.sahifa-topbar-search .wp-block-search__input::placeholder {
	color: #999999;
}

.sahifa-topbar-search .wp-block-search__button {
	background: var(--sahifa-orange);
	color: #ffffff;
	border: 0;
	font-size: 13px;
}

/* ============================================================
   3. Header putih (logo / judul situs)
   ============================================================ */
.sahifa-masthead {
	background: #ffffff;
	border-top: 4px solid var(--sahifa-orange);
	padding: 26px 28px;
}

.sahifa-site-title {
	margin: 0;
}

.sahifa-site-title a {
	color: var(--sahifa-text);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.1;
	text-decoration: none;
}

.sahifa-site-title a:hover {
	color: var(--sahifa-orange);
}

.sahifa-site-tagline {
	color: var(--sahifa-muted);
	margin: 6px 0 0;
	font-size: 15px;
}

/* ============================================================
   4. Menu utama gelap, aksen oranye
   ============================================================ */
.sahifa-mainnav {
	background: var(--sahifa-dark);
	padding: 0 12px;
}

.sahifa-mainnav .wp-block-navigation {
	font-size: 14px;
}

.sahifa-mainnav .wp-block-navigation-item__content,
.sahifa-mainnav .wp-block-navigation a {
	/* !important: aturan bawaan blok Navigation WordPress (color: inherit)
	   menimpa warna ini sehingga teks menu ikut gelap di atas bar gelap —
	   hanya terlihat saat hover. Paksa putih di semua kondisi. */
	color: #ffffff !important;
	padding: 14px 16px;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.sahifa-mainnav .wp-block-navigation-item__content:visited,
.sahifa-mainnav .wp-block-navigation a:visited {
	color: #ffffff !important;
}

.sahifa-mainnav .wp-block-navigation-item__content:hover,
.sahifa-mainnav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
	background: var(--sahifa-orange);
	color: #ffffff;
}

/* Tombol menu mobile (ikon hamburger). */
.sahifa-mainnav .wp-block-navigation__responsive-container-open {
	color: #ffffff;
}

/* Menu mobile (overlay): latar gelap, teks putih. */
.sahifa-mainnav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--sahifa-dark);
	color: #ffffff;
}
.sahifa-mainnav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.sahifa-mainnav .wp-block-navigation__responsive-container.is-menu-open a {
	color: #ffffff !important;
}
.sahifa-mainnav .wp-block-navigation__responsive-container-close {
	color: #ffffff;
}

/* ============================================================
   5. Ticker breaking news
   ============================================================ */
.sahifa-ticker-wrap {
	border: 1px solid var(--sahifa-line);
	background: #ffffff;
	margin-bottom: 28px;
}

.sahifa-ticker-label {
	background: var(--sahifa-red);
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 9px 14px;
	margin: 0;
	white-space: nowrap;
}

.sahifa-ticker-query {
	flex: 1;
	min-width: 0;
}

/* Tanpa JS: semua judul tampil sebagai strip yang bisa digeser. */
.sahifa-ticker-list {
	list-style: none;
	margin: 0;
	padding: 8px 14px;
	display: flex;
	gap: 28px;
	align-items: center;
	overflow-x: auto;
	white-space: nowrap;
}

.sahifa-ticker-list li {
	flex: 0 0 auto;
}

/* Dengan JS: hanya 1 judul tampil, berganti tiap 4 detik. */
.sahifa-ticker-list.sahifa-ticker-js {
	display: block;
	overflow: hidden;
	white-space: normal;
}

.sahifa-ticker-list.sahifa-ticker-js li {
	display: none;
}

.sahifa-ticker-list.sahifa-ticker-js li.is-active {
	display: block;
}

.sahifa-ticker-list h3 {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
}

.sahifa-ticker-list a {
	color: var(--sahifa-text);
	text-decoration: none;
	font-weight: 600;
}

.sahifa-ticker-list a:hover {
	color: var(--sahifa-orange);
}

/* ============================================================
   6. Homepage: berita utama + blok kategori
   ============================================================ */
.sahifa-section-title {
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-bottom: 3px solid var(--sahifa-orange);
	padding-bottom: 8px;
	margin-bottom: 16px;
}

.sahifa-featured {
	margin-bottom: 32px;
}

.sahifa-featured-title {
	font-size: 30px;
	line-height: 1.25;
	margin: 0 0 6px;
}

.sahifa-featured-title a {
	color: var(--sahifa-text);
	text-decoration: none;
}

.sahifa-featured-title a:hover {
	color: var(--sahifa-orange);
}

.sahifa-featured-excerpt {
	color: #444444;
	font-size: 16px;
	line-height: 1.6;
}

.sahifa-featured-excerpt a {
	color: var(--sahifa-orange);
}

.sahifa-meta {
	color: var(--sahifa-muted);
	font-size: 13px;
	margin: 0 0 10px;
}

.sahifa-cat-block {
	margin-bottom: 32px;
}

.sahifa-cat-head {
	border-bottom: 3px solid var(--sahifa-orange);
	padding-bottom: 6px;
	margin-bottom: 4px;
}

.sahifa-cat-title {
	font-size: 19px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin: 0;
}

.sahifa-cat-more {
	margin: 0;
	font-size: 13px;
	white-space: nowrap;
}

.sahifa-cat-more a {
	color: var(--sahifa-orange);
	text-decoration: none;
	font-weight: 600;
}

.sahifa-cat-more a:hover {
	text-decoration: underline;
}

/* Daftar judul per kategori (tanpa gambar). */
.sahifa-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sahifa-cat-list li {
	border-bottom: 1px solid var(--sahifa-line);
	padding: 11px 0;
}

.sahifa-cat-list li:last-child {
	border-bottom: 0;
}

.sahifa-cat-item::before {
	content: "\25B8";
	color: var(--sahifa-orange);
	font-weight: 700;
}

.sahifa-item-date {
	color: var(--sahifa-muted);
	font-size: 12px;
	white-space: nowrap;
	margin: 0;
}

.sahifa-cat-list h3 {
	font-size: 16px;
	line-height: 1.4;
	margin: 0;
}

.sahifa-cat-list h3 a {
	color: var(--sahifa-text);
	text-decoration: none;
}

.sahifa-cat-list h3 a:hover {
	color: var(--sahifa-orange);
}

/* ============================================================
   7. Sidebar
   ============================================================ */
.sahifa-home-sidebar {
	border-left: 1px solid var(--sahifa-line);
	padding-left: 28px;
}

.sahifa-widget {
	margin-bottom: 28px;
}

.sahifa-widget-title {
	background: var(--sahifa-dark);
	color: #ffffff;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 10px 14px;
	border-left: 4px solid var(--sahifa-orange);
	margin-bottom: 12px;
}

.sahifa-home-sidebar .wp-block-categories {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sahifa-home-sidebar .wp-block-categories li {
	border-bottom: 1px solid var(--sahifa-line);
	padding: 7px 0;
}

.sahifa-home-sidebar .wp-block-categories li:last-child {
	border-bottom: 0;
}

.sahifa-home-sidebar .wp-block-categories a {
	color: var(--sahifa-text);
	text-decoration: none;
}

.sahifa-home-sidebar .wp-block-categories a:hover {
	color: var(--sahifa-orange);
}

.sahifa-home-sidebar .wp-block-latest-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sahifa-home-sidebar .wp-block-latest-posts li {
	margin-bottom: 12px;
	line-height: 1.45;
}

.sahifa-home-sidebar .wp-block-latest-posts a {
	color: var(--sahifa-text);
	text-decoration: none;
	font-weight: 600;
}

.sahifa-home-sidebar .wp-block-latest-posts a:hover {
	color: var(--sahifa-orange);
}

.sahifa-home-sidebar .wp-block-latest-posts__post-date {
	display: block;
	color: var(--sahifa-muted);
	font-size: 12px;
	margin-top: 2px;
}

/* ============================================================
   8. Footer gelap
   ============================================================ */
.sahifa-footer {
	background: var(--sahifa-darker);
	color: #bbbbbb;
	padding: 36px 28px 0;
}

.sahifa-footer-title {
	margin: 0;
}

.sahifa-footer-title a {
	color: #ffffff;
	font-size: 24px;
	font-weight: 700;
	text-decoration: none;
}

.sahifa-footer-title a:hover {
	color: var(--sahifa-orange);
}

.sahifa-footer-tagline {
	color: #999999;
	margin: 6px 0 12px;
}

.sahifa-footer-heading {
	color: #ffffff;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-bottom: 2px solid var(--sahifa-orange);
	padding-bottom: 8px;
	margin-bottom: 12px;
}

.sahifa-footer a {
	color: #dddddd;
	text-decoration: none;
}

.sahifa-footer a:hover {
	color: var(--sahifa-orange);
}

.sahifa-footer .wp-block-categories {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sahifa-footer .wp-block-categories li {
	padding: 4px 0;
}

.sahifa-footer .wp-block-navigation {
	font-size: 14px;
}

.sahifa-copyright {
	border-top: 1px solid #333333;
	margin-top: 28px;
	padding: 16px 0;
	font-size: 13px;
	color: #999999;
}

/* ============================================================
   9. Sentuhan Sahifa di halaman lain (single, arsip, page)
   ============================================================ */
.wp-block-post-terms a {
	background: var(--sahifa-orange);
	color: #ffffff !important;
	padding: 3px 9px;
	border-radius: 2px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
}

.wp-block-post-terms a:hover {
	background: var(--sahifa-dark);
}

.wp-block-post-title a {
	color: var(--sahifa-text);
	text-decoration: none;
}

.wp-block-post-title a:hover {
	color: var(--sahifa-orange);
}

.wp-block-query-pagination a {
	color: var(--sahifa-orange);
}

/* ============================================================
   10. Responsif
   ============================================================ */
@media (max-width: 800px) {
	main.sahifa-page {
		padding: 18px 16px 24px;
	}

	.sahifa-masthead {
		padding: 18px;
	}

	.sahifa-site-title a {
		font-size: 30px;
	}

	.sahifa-home-sidebar {
		border-left: 0;
		padding-left: 0;
		margin-top: 8px;
	}

	.sahifa-featured-title {
		font-size: 24px;
	}

	.sahifa-topbar-search {
		max-width: 100%;
	}
}

/* v1.1.2 — Kolom tautan Informasi di footer. */
.sahifa-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.sahifa-footer-links li {
	padding: 4px 0;
}

/* ============================================================
   v1.1.0 — Featured image (16:9, tanpa teks di dalam gambar)
   ============================================================ */
.sahifa-featured-img {
	margin: 0 0 12px;
}
.sahifa-featured-img img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 3px;
}
.sahifa-cat-item .wp-block-post-featured-image {
	flex-shrink: 0;
	margin: 0;
}
.sahifa-cat-item .wp-block-post-featured-image img {
	width: 120px;
	height: 68px;
	object-fit: cover;
	display: block;
	border-radius: 3px;
}
.sahifa-widget .wp-block-latest-posts__featured-image img {
	border-radius: 3px;
}
