/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
   :root {
    /* PKS Brand Colors */
    --pks-orange: #F37021;
    --pks-orange-hover: #D65A15;
    --pks-black: #1A1A1A;
    --pks-black-light: #2C2C2C;
    --pks-white: #FFFFFF;
    
    /* Layout Colors */
    --bg-color: #F8F9FA;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #EAEAEA;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-hover: 0 10px 15px rgba(243, 112, 33, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

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

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

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

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

.text-center { text-align: center; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    background-color: var(--pks-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--pks-orange);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-text-orange { color: var(--pks-orange); }
.logo-text-black { color: var(--pks-black); margin-left: 4px; }
.logo-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -4px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    color: var(--pks-black-light);
    font-size: 0.95rem;
    padding: 10px 0;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--pks-orange);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--pks-orange);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--pks-black);
    transition: var(--transition);
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
.section-header {
    margin-bottom: 30px;
    position: relative;
}

.section-header h2 {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    color: var(--pks-black);
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--pks-orange);
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin-top: -1px;
}

/* ==========================================================================
   Headline News
   ========================================================================== */
.headline-section {
    margin-top: 30px;
}

.headline-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow-md);
    display: block;
    background-color: #ddd; /* fallback */
    cursor: pointer;
}

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

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

.headline-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 30px 30px;
    color: var(--pks-white);
}

.category-tag {
    background-color: var(--pks-orange);
    color: var(--pks-white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.headline-overlay h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.meta-info {
    font-size: 0.85rem;
    color: #e0e0e0;
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   Content Layout (Grid + Sidebar)
   ========================================================================== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Standard Article Card */
.article-card {
    background: var(--pks-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

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

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

.card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--pks-black);
}

.card-content p.excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.widget {
    background: var(--pks-white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border-top: 4px solid var(--pks-orange);
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--pks-black);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-main);
    border-bottom: 1px dashed var(--border-color);
}

.category-list a:hover {
    color: var(--pks-orange);
    padding-left: 5px;
}

.banner-widget {
    padding: 0;
    overflow: hidden;
    border: none;
}

.pks-banner {
    background-color: var(--pks-orange);
    color: var(--pks-white);
    padding: 30px 20px;
    text-align: center;
}

.pks-banner h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--pks-orange);
    color: var(--pks-white);
}

.btn-primary:hover {
    background-color: var(--pks-orange-hover);
    box-shadow: var(--shadow-md);
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   Single Article Page (berita.html)
   ========================================================================== */
.article-header {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--pks-black);
    margin: 15px 0;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.article-hero-img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-hero-img img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-body {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2, .article-body h3 {
    font-family: var(--font-serif);
    margin: 30px 0 15px;
    color: var(--pks-black);
}

.article-body img {
    border-radius: 8px;
    margin: 20px 0;
}

/* Share Tools */
.share-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-title {
    font-weight: 600;
    color: var(--pks-black);
}

.share-btn {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--pks-white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-btn:hover {
    background: var(--pks-orange);
    color: var(--pks-white);
    border-color: var(--pks-orange);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--pks-black);
    color: var(--pks-white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--pks-orange);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaa;
    font-size: 0.9rem;
    max-width: 400px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--pks-orange);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--pks-orange);
    padding-left: 5px;
}

.footer-contact p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons .icon {
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pks-white);
    font-size: 0.8rem;
}

.social-icons .icon:hover {
    background-color: var(--pks-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #888;
}

/* ==========================================================================
   Skeletons & Loading States
   ========================================================================== */
.skeleton-loader {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
}

.skeleton-headline {
    width: 100%;
    height: 100%;
}

.skeleton-card {
    height: 300px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* In a real app, toggle with JS */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .headline-overlay h1 {
        font-size: 1.5rem;
    }
    
    .headline-card {
        height: 350px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
}
