/*
Theme Name: LSP Komunikasi
Theme URI: 
Author: Antigravity
Author URI: 
Description: Dibuat khusus untuk LSP Komunikasi Indonesia.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.0
Text Domain: https://lspkomunikasi.id/
*/

:root {
    --primary-color: #72161a;
    --secondary-color: #f89b29;
    --text-color: #333333;
    --bg-color: #f9f9f9;
    --footer-bg: #72161a;
    --footer-text: #ffffff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

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

/* Header & Sticky Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--primary-color); /* Red background initially */
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.is-sticky {
    position: fixed;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Branding & Logo */
.header-logo {
    display: block;
}

.header-logo .custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.header-title-sticky {
    display: none; /* Hidden by default */
}

/* Site Title (fallback if no logo) */
.site-branding .site-title a {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff; /* White text on red background */
    text-transform: uppercase;
}

/* Sticky Header Branding Logic */
.site-header.is-sticky .header-logo {
    display: none;
}

.site-header.is-sticky .header-title-sticky {
    display: block;
}

.site-header.is-sticky .site-branding .site-title a {
    color: var(--primary-color); /* Red text on white background */
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: #ffffff; /* White text on red background */
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

/* Sticky Header Nav Logic */
.site-header.is-sticky .main-navigation a {
    color: var(--text-color);
}

.site-header.is-sticky .main-navigation a:hover {
    color: var(--secondary-color);
}

/* Parallax Banner */
.parallax-banner {
    position: relative;
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    /* Default fallback image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.parallax-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(114, 22, 26, 0.7);
    /* Primary color overlay */
}

.parallax-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 20px;
}

.parallax-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.parallax-content p {
    font-size: 18px;
}

/* Main Content Area */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-title a {
    color: var(--primary-color);
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
}

.read-more:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 5px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--primary-color);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Footer (4 Columns) */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 20px 20px;
    border-top: 4px solid var(--secondary-color);
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget-area h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.footer-widget-area p,
.footer-widget-area li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-widget-area ul {
    list-style: none;
}

.footer-widget-area a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area a:hover {
    color: var(--secondary-color);
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.site-info a {
    color: #ffffff;
    font-weight: 700;
}

.site-info a:hover {
    color: var(--secondary-color);
}

/* Comments Area */
.comments-area {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-top: 40px;
}

.comments-title, .comment-reply-title {
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
    color: var(--text-color);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.comment-list .comment {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    flex-direction: column;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-meta .avatar {
    border-radius: 50%;
}

.comment-author b {
    font-size: 16px;
    color: var(--primary-color);
}

.comment-metadata a {
    font-size: 12px;
    color: #888;
}

.comment-content {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.reply {
    margin-top: 10px;
}

.reply a {
    font-size: 13px;
    font-weight: 500;
}

/* Comment Form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-notes {
    font-size: 14px;
    color: #666;
}

.comment-form p {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    color: #333;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.comment-form input[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .parallax-banner {
        height: 300px;
    }

    .parallax-content h1 {
        font-size: 32px;
    }
}