/*
Theme Name: Qalam VIZ
Theme URI: vizjournal.com
Description: VIZ Child theme for the Qalam theme
Author: Saurabh Sharma/Edy Pang
Author URI: https://a-more.co
Template: qalam
Version: 1.0.1
*/

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;600;700&family=Marcellus&display=swap');

/* ==========================================================================
   Typography
   ========================================================================== */

article:not(.live) .post-modified-info,
article:not(.live) .entry-modified-date,
article:not(.live) .updated,
article:not(.live) .updated-time {
	display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
	font-family: "Marcellus", sans-serif !important;
}

/* Fox London demo: Inter for UI, EB Garamond for reading text */
body {
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
}

.entry-content,
.entry-content p,
.article-body,
.article-body p,
.page-content,
.page-content p {
	font-family: "EB Garamond", serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.5;
}

.entry-content li,
.article-body li,
.page-content li {
	font-family: "EB Garamond", serif;
	font-size: 21px;
	line-height: 1.5;
}

.entry-sub-title,
.entry-excerpt,
.post-excerpt {
	font-family: "EB Garamond", serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.5;
}

.entry-content blockquote,
.article-body blockquote,
.page-content blockquote {
	font-family: "EB Garamond", serif;
	font-size: 1.8rem;
	font-weight: 400;
	line-height: 1.2;
}

.qlm-meta,
.qlm-meta a,
.entry-meta,
.entry-meta a,
.post-meta,
.post-meta a,
.meta-item,
.meta-item a,
.viz-post-label,
.posted-on,
.byline,
.cat-links,
.tags-links {
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: uppercase;
	color: #acacac;
}

.viz-post-label,
.cat-links a,
.tags-links a {
	font-size: 12.8px;
	font-weight: 700;
	letter-spacing: 2px;
}

.main-navigation,
.main-navigation a,
.qlm-nav,
.qlm-nav a,
.site-header,
.site-footer,
.widget,
.widget-title,
.sidebar,
button,
input,
select,
textarea,
label {
	font-family: "Inter", sans-serif;
}

.main-navigation a,
.qlm-nav a {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #6d6d6d;
	text-transform: none;
}

.widget,
.widget p,
.site-footer,
.site-footer p {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
	text-transform: none;
}

/* ==========================================================================
   VIZjournal Custom Post Layouts (The Fox Inspired)
   ========================================================================== */

/* --- 1. FULL HERO LAYOUT --- */
.viz-hero-full {
	position: relative;
	width: 100%;
	height: 70vh;
	min-height: 500px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	margin-bottom: 40px;
}

.viz-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
	z-index: 1;
}

.viz-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-bottom: 40px;
	color: #ffffff;
}

.viz-hero-full .entry-title,
.viz-hero-full .entry-sub-title,
.viz-hero-full .qlm-meta a,
.viz-hero-full .qlm-meta {
	color: #ffffff !important;
}

.viz-hero-full .entry-title {
	font-size: 3rem;
	line-height: 1.1;
	margin-bottom: 15px;
}

/* --- 2. HALF HERO LAYOUT --- */
.viz-hero-half {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
	margin-bottom: 40px;
	padding-top: 20px;
}

.viz-half-text {
	flex: 1 1 45%;
}

.viz-half-image {
	flex: 1 1 50%;
}

.viz-half-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
}

.viz-hero-half .entry-title {
	font-size: 2.8rem;
	line-height: 1.2;
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	.viz-hero-half {
		flex-direction: column-reverse;
		gap: 20px;
	}

	.viz-half-text,
	.viz-half-image {
		flex: 1 1 100%;
	}

	.viz-hero-full .entry-title {
		font-size: 2rem;
	}
}

/* ==========================================================================
   VIZjournal: Half Hero Layout + Narrow Content
   ========================================================================== */

.viz-half-hero-wrapper {
    margin-top: 40px;
}

/* --- HEADER: HALF HERO --- */
.viz-hero-half {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    gap: 40px;
    padding: 0 20px;
}

.viz-half-text {
    flex: 1 1 45%;
}

.viz-half-image {
    flex: 1 1 45%;
}

.viz-half-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Sedikit bayangan agar elegan */
}

/* Tipografi Header */
.viz-post-label {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e63946; /* Sesuaikan dengan warna brand Anda */
    font-weight: 700;
    margin-bottom: 15px;
}

.viz-hero-half .entry-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111;
}

.viz-hero-half .entry-sub-title {
    font-size: 1.3rem;
    color: #555;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* --- KONTEN ARTIKEL: MENYEMPIT RATA TENGAH (NARROW) --- */
.viz-narrow-text {
    max-width: 740px !important; /* Lebar ideal untuk membaca */
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .viz-hero-half {
        flex-direction: column-reverse; /* Teks di bawah gambar saat di HP */
        gap: 25px;
    }
    .viz-half-text, .viz-half-image {
        flex: 1 1 100%;
    }
    .viz-hero-half .entry-title {
        font-size: 2.2rem;
    }
    .viz-narrow-text {
        font-size: 1.05rem;
    }
}

/* --- VIZ Editorial Style (The Fox Inspired) --- */

.viz-editorial-wrapper {
    padding-top: 40px;
}

/* Header Editorial - Rata Tengah */
.viz-editorial-header {
    text-align: center;
    margin-bottom: 50px;
}

.viz-post-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: #999;
    margin-bottom: 15px;
}

.viz-editorial-title {
    font-size: 3.5rem !important;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.viz-editorial-excerpt {
    font-size: 1.5rem !important;
    font-weight: 300;
    color: #666;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Featured Image - Lebar Besar tapi Elegan */
.viz-editorial-featured {
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

.viz-editorial-featured img {
    width: 100%;
    height: auto;
}

/* Teks Artikel - Menyempit & Nyaman dibaca */
.viz-editorial-text {
    max-width: 700px !important; /* Lebar artikel editorial standar */
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Responsif */
@media (max-width: 768px) {
    .viz-editorial-title { font-size: 2rem !important; }
    .viz-editorial-text { padding: 0 20px; }
}
