/* ===== CSS Variables — brand Jhonny Multi (logo charcoal geometric) ===== */
:root {
    --primary: #1C1917;
    --primary-dark: #0C0A09;
    --primary-light: #292524;
    --accent: #C2410C;
    --accent-soft: #FED7AA;
    --success: #15803D;
    
    --bg: #FAFAF9;
    --bg-card: #FFFFFF;
    --bg-muted: #F5F5F4;
    --bg-dark: #1C1917;
    --text: #1C1917;
    --text-muted: #57534E;
    --text-light: #A8A29E;
    --border: #E7E5E4;
    
    --shadow-sm: 0 1px 2px rgba(28,25,23,0.05);
    --shadow: 0 4px 12px rgba(28,25,23,0.06), 0 2px 4px rgba(28,25,23,0.04);
    --shadow-lg: 0 12px 24px rgba(28,25,23,0.08), 0 4px 8px rgba(28,25,23,0.04);
    --shadow-xl: 0 24px 40px rgba(28,25,23,0.1);
    
    --radius: 14px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
    
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 72px;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #FAFAF9;
    --primary-dark: #E7E5E4;
    --primary-light: #D6D3D1;
    --accent: #FB923C;
    --bg: #0C0A09;
    --bg-card: #1C1917;
    --bg-muted: #292524;
    --text: #FAFAF9;
    --text-muted: #A8A29E;
    --text-light: #78716C;
    --border: #292524;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.4);
    --shadow-xl: 0 24px 40px rgba(0,0,0,0.5);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button, input {
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.85);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}


.logo-img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}
.logo-img-footer {
    height: 42px;
    max-width: 180px;
    /* logo gelap di footer gelap: invert agar terlihat */
    filter: none;
}
[data-theme="dark"] .logo-img {
    filter: none;
}
[data-theme="dark"] .logo-img-footer {
    filter: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.35rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text .highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #fef3c7 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1c1917 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Section Common ===== */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Category Pills ===== */
.categories {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.category-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
    cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Blog Cards ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.post-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}

.post-card:hover h3 {
    color: var(--primary);
}

.post-card p {
    color: var(--text-muted);
    font-size: 0.925rem;
    flex: 1;
    margin-bottom: 1.25rem;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more:hover {
    gap: 0.5rem;
}

/* ===== Featured Post ===== */
.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.featured-image {
    height: 100%;
    min-height: 360px;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-content h2 a:hover {
    color: var(--primary);
}

.featured-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===== Single Post ===== */
.post-hero {
    padding: 120px 0 40px;
}

.post-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-category-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.post-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-featured-img {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.post-featured-img img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.post-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.post-body p {
    margin-bottom: 1.25rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-body ul, .post-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ===== About Page ===== */
.about-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.about-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.about-hero p {
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.about-content {
    max-width: none;
    margin: 0 auto;
    padding-bottom: 80px;
}

.about-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    transition: all var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
    padding-bottom: 40px;
    border-bottom: 1px solid #334155;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    color: white;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-links h4,
.footer-newsletter h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-newsletter p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #1e293b;
    color: white;
    border: 1px solid #334155;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.newsletter-form button {
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 240px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-link {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===== Brand UI polish (logo-aligned) ===== */
.navbar {
    height: var(--nav-h);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-container {
    height: 100%;
}
.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}
.nav-link.active {
    color: var(--accent);
}
.nav-link.active::after {
    background: var(--accent);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
[data-theme="dark"] .btn-primary {
    background: var(--accent);
    color: #1C1917;
}
[data-theme="dark"] .btn-primary:hover {
    background: #FDBA74;
}

.btn-outline {
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--bg-muted);
}

.post-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}

.hero {
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 50%),
        var(--bg);
    padding-top: calc(var(--nav-h) + 2.5rem);
}

.section-header h2 {
    letter-spacing: -0.03em;
    font-weight: 700;
}

.category-pill {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-weight: 500;
    transition: all var(--transition);
}
.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
[data-theme="dark"] .category-pill.active {
    background: var(--accent);
    color: #1C1917;
    border-color: var(--accent);
}

.footer {
    background: var(--bg-dark);
    color: #E7E5E4;
}
.footer a:hover {
    color: #fff;
}

.value-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    transition: box-shadow var(--transition), transform var(--transition);
}
.value-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.value-icon {
    background: var(--bg-muted);
    color: var(--primary);
    border-radius: 12px;
}
[data-theme="dark"] .value-icon {
    background: var(--bg-muted);
    color: var(--accent);
}

.read-more {
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Mobile nav */
@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    .logo-img { height: 36px; max-width: 150px; }
}


/* ===== Fixes: footer logo, social icons, light-only, hero banner ===== */
html { color-scheme: light; }
body { background: var(--bg); color: var(--text); }

.footer-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}
.footer-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.footer-logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    filter: none !important;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
    filter: none !important;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #E7E5E4;
    transition: 0.2s ease;
}
.social-links a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.social-links a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    display: block;
}

/* Hide any leftover theme toggle */
.theme-toggle { display: none !important; }

/* Home hero banner */
.hero-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h, 72px) + 2rem) 0 3rem;
    background: linear-gradient(135deg, #1C1917 0%, #292524 50%, #44403C 100%);
    color: #FAFAF9;
    overflow: hidden;
}
.hero-banner.has-image {
    background-size: cover;
    background-position: center;
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(28,25,23,0.92) 0%, rgba(28,25,23,0.75) 45%, rgba(28,25,23,0.45) 100%);
    z-index: 0;
}
.hero-banner .container {
    position: relative;
    z-index: 1;
}
.hero-banner .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #FED7AA;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hero-banner h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 720px;
    margin-bottom: 1rem;
    color: #fff;
}
.hero-banner h1 span {
    color: #FB923C;
}
.hero-banner .hero-lead {
    font-size: 1.05rem;
    color: #D6D3D1;
    max-width: 560px;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}
.hero-banner .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.hero-banner .btn-primary {
    background: #FAFAF9;
    color: #1C1917;
}
.hero-banner .btn-primary:hover {
    background: #E7E5E4;
}
.hero-banner .btn-outline {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
.hero-banner .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.hero-stats .stat-item {
    min-width: 100px;
}
.hero-stats .stat-n {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.hero-stats .stat-l {
    font-size: 0.8rem;
    color: #A8A29E;
}

.promo-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
}
.promo-banner-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: block;
    transition: transform 0.2s ease;
}
.promo-banner-card:hover {
    transform: translateY(-3px);
}
.promo-banner-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.promo-banner-card .promo-body {
    padding: 1rem 1.15rem;
}
.promo-banner-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.promo-banner-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* About page richer layout */
.about-hero {
    padding: calc(var(--nav-h, 72px) + 3rem) 0 3rem;
    background: linear-gradient(180deg, #F5F5F4 0%, #FAFAF9 100%);
    text-align: center;
}
.about-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}
.about-hero p {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}
.about-content {
    padding: 3rem 0 4rem;
    max-width: none;
}
.about-content > .container {
    max-width: 1200px;
}
.about-hero > .container {
    max-width: 1200px;
}
.about-content h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.02em;
}
.about-content h2:first-child {
    margin-top: 0;
}
.about-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.75rem;
    align-items: start;
    margin-bottom: 2rem;
    width: 100%;
}
.about-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.about-panel h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.about-panel p, .about-panel li {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.about-panel ul {
    margin: 0.5rem 0 0 1.1rem;
    list-style: disc;
    line-height: 1.8;
}
.about-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.about-metric {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.about-metric .n {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}
.about-metric .l {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
@media (max-width: 768px) {
    .about-split { grid-template-columns: 1fr; }
    .about-metrics { grid-template-columns: 1fr; }
    .hero-banner { min-height: 360px; }
}


/* Back to top floating button */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #1C1917);
    color: #fff;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent, #C2410C);
    transform: translateY(-2px);
}
.back-to-top:focus-visible {
    outline: 2px solid var(--accent, #C2410C);
    outline-offset: 3px;
}
.back-to-top svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}
@media (max-width: 480px) {
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 44px;
        height: 44px;
    }
}


/* page-wide-about: Tentang & Hubungi full desktop width */
.about-content { max-width: none !important; width: 100%; }
.about-content > .container,
.about-hero > .container { width: 100%; max-width: 1200px; }
@media (min-width: 1100px) {
  .about-content > .container,
  .about-hero > .container { max-width: 1280px; }
}
.about-hero p { max-width: 900px !important; }
.about-split { width: 100%; }
.values-grid { width: 100%; }


/* =========================================================
   RESPONSIVE OPTIMIZATION — mobile / tablet / desktop
   ========================================================= */

/* Base fluid type & safe areas */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
}
img, video, iframe {
    max-width: 100%;
    height: auto;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 3vw, 1.5rem);
    padding-right: clamp(1rem, 3vw, 1.5rem);
}

/* Ensure navbar layout intact */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg-card, #fff) 90%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border, #e7e5e4);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h, 72px);
    height: auto;
    gap: 0.75rem;
}
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}
.logo-img {
    height: clamp(32px, 5vw, 48px);
    width: auto;
    max-width: min(200px, 55vw);
    object-fit: contain;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Grids default */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.25rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
}
.featured-post {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
}
.promo-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
}
.about-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.about-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    width: 100%;
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
}
.hero-banner .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Section spacing */
.section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.section-header {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.section-header h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

/* ——— Large desktop ——— */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    .about-content > .container,
    .about-hero > .container {
        max-width: 1280px;
    }
}

/* ——— Tablet landscape / small desktop ——— */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
    .featured-post {
        grid-template-columns: 1fr 1fr;
    }
    .hero-banner {
        min-height: 380px;
        padding-top: calc(var(--nav-h, 72px) + 1.5rem);
        padding-bottom: 2.5rem;
    }
    .hero-banner h1 {
        font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    }
}

/* ——— Tablet portrait ——— */
@media (max-width: 900px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    .featured-image {
        min-height: 220px;
        max-height: 280px;
    }
    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .about-split {
        grid-template-columns: 1fr;
    }
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    }
}

/* ——— Mobile & large phones ——— */
@media (max-width: 768px) {
    :root {
        --nav-h: 64px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-h, 64px);
        left: 0;
        right: 0;
        background: var(--bg-card, #fff);
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1rem 1rem;
        gap: 0;
        border-bottom: 1px solid var(--border, #e7e5e4);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        z-index: 999;
        max-height: calc(100vh - var(--nav-h, 64px));
        overflow-y: auto;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }
    .nav-link {
        padding: 0.9rem 0.25rem;
        border-bottom: 1px solid var(--border, #e7e5e4);
        font-size: 1rem;
    }
    .nav-link.active::after {
        display: none;
    }
    .nav-link.active {
        color: var(--accent, #c2410c);
        font-weight: 600;
    }
    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--border, #e7e5e4);
        border-radius: 10px;
        width: 42px;
        height: 42px;
        color: var(--text, #1c1917);
        cursor: pointer;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .about-metrics {
        grid-template-columns: 1fr;
    }
    .about-split {
        grid-template-columns: 1fr;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .promo-banners {
        grid-template-columns: 1fr;
        margin-top: -1.25rem;
    }

    .hero-banner {
        min-height: auto;
        padding: calc(var(--nav-h, 64px) + 1.5rem) 0 2rem;
    }
    .hero-banner h1 {
        font-size: clamp(1.45rem, 6vw, 1.9rem);
        max-width: 100%;
    }
    .hero-banner .hero-lead {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: 1.25rem;
    }
    .hero-banner .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-banner .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-stats {
        gap: 1rem 1.5rem;
    }
    .hero-stats .stat-n {
        font-size: 1.25rem;
    }

    .about-hero {
        padding: calc(var(--nav-h, 64px) + 1.5rem) 0 1.75rem;
        text-align: left;
    }
    .about-hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .about-hero p {
        max-width: 100% !important;
        font-size: 0.95rem;
        margin-left: 0;
        text-align: left;
    }
    .about-content {
        padding: 1.5rem 0 3rem;
    }

    .section-header {
        text-align: left;
    }

    .post-card-image img,
    .featured-image img {
        width: 100%;
        max-height: 220px;
        object-fit: cover;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .categories {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .category-pill {
        font-size: 0.85rem;
        padding: 0.45rem 0.85rem;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* ——— Small phones ——— */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .logo-img {
        max-width: 140px;
        height: 32px;
    }
    .hero-banner .hero-badge {
        font-size: 0.75rem;
    }
    .featured-content,
    .post-card-body,
    .about-panel {
        padding: 1rem !important;
    }
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    .footer-desc {
        font-size: 0.9rem;
    }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .category-pill,
    .btn,
    .social-links a {
        min-height: 44px;
    }
    .post-card:hover {
        transform: none;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
