/* ============================================
   TEPAT SKOR - CUSTOM THEME STYLES
   Live Score & Statistics Platform
   ============================================ */

/* ============================================
   1. CSS RESET & BASE STYLES
   ============================================ */

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

:root {
    /* Primary Colors - Statistics/Data theme (Green/Teal) */
    --color-primary: #00897b;
    --color-primary-dark: #00695c;
    --color-primary-light: #4db6ac;

    /* Secondary Colors */
    --color-secondary: #26a69a;
    --color-accent: #ff6f00;

    /* Neutral Colors */
    --color-text: #202124;
    --color-text-light: #5f6368;
    --color-text-lighter: #80868b;
    --color-bg: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-tertiary: #e8eaed;
    --color-border: #dadce0;

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Container */
    --container-max-width: 1280px;
    --container-padding: 1.5rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

/* ============================================
   3. LAYOUT COMPONENTS
   ============================================ */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.main-column {
    min-width: 0; /* Fix for grid overflow */
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */

.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.site-logo:hover {
    color: var(--color-primary);
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   5. HERO SECTION (Homepage)
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
}

.hero-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.hero-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.hero-content ul {
    list-style: none;
    padding: 0;
}

.hero-content li {
    padding: var(--spacing-sm) 0;
}

/* ============================================
   6. FEATURED SECTION
   ============================================ */

.featured-section {
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.featured-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.featured-image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: var(--color-bg-tertiary);
}

.featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.featured-content {
    padding: var(--spacing-lg);
}

.featured-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.featured-title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

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

.featured-excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* ============================================
   7. ARTICLE GRID
   ============================================ */

.articles-section {
    margin-bottom: var(--spacing-2xl);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.article-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--color-primary-light);
}

.article-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 60%; /* Aspect ratio */
    background-color: var(--color-bg-tertiary);
}

.article-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.08);
}

.article-content {
    padding: var(--spacing-lg);
}

.article-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.article-title a {
    color: var(--color-text);
}

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

.article-excerpt {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* ============================================
   8. POST META & CATEGORIES
   ============================================ */

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-lighter);
}

.meta-separator {
    color: var(--color-border);
}

.post-categories {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color var(--transition-fast);
}

.category-badge:hover {
    background-color: var(--color-primary-dark);
}

/* ============================================
   9. PAGINATION
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.pagination-link,
.pagination-number {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination-link:hover,
.pagination-number:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-number.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination-numbers {
    display: flex;
    gap: var(--spacing-xs);
}

/* ============================================
   10. SINGLE ARTICLE PAGE
   ============================================ */

.single-article {
    background-color: var(--color-bg);
}

.article-header {
    margin-bottom: var(--spacing-2xl);
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.meta-item svg {
    color: var(--color-text-lighter);
}

.article-featured-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.article-body h2 {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    font-size: 1.75rem;
}

.article-body h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: 1.375rem;
}

.article-body p {
    margin-bottom: var(--spacing-lg);
}

.article-body ul,
.article-body ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.article-body li {
    margin-bottom: var(--spacing-sm);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-xl);
    font-size: 0.9375rem;
}

.article-body th,
.article-body td {
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    text-align: left;
}

.article-body th {
    background-color: var(--color-bg-secondary);
    font-weight: 600;
}

.article-body tr:hover {
    background-color: var(--color-bg-secondary);
}

.article-body blockquote {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--color-text-light);
}

.article-body code {
    padding: 0.125rem 0.375rem;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.article-body pre {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background-color: var(--color-text);
    color: var(--color-bg);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.article-body pre code {
    padding: 0;
    background: none;
    color: inherit;
}

/* Article Footer */
.article-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.article-tags {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.article-tags svg {
    color: var(--color-text-lighter);
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag:hover {
    background-color: var(--color-primary-light);
    color: white;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.share-label {
    font-weight: 600;
    color: var(--color-text);
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.share-button.facebook {
    background-color: #1877f2;
    color: white;
}

.share-button.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-button.whatsapp {
    background-color: #25d366;
    color: white;
}

.share-button.telegram {
    background-color: #0088cc;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Related Posts */
.related-posts {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--color-border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.related-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-thumbnail {
    display: block;
    position: relative;
    padding-top: 56.25%;
    background-color: var(--color-bg-tertiary);
    overflow: hidden;
}

.related-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: var(--spacing-lg);
}

.related-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.related-title a {
    color: var(--color-text);
}

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

.related-content time {
    font-size: 0.875rem;
    color: var(--color-text-lighter);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg);
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.nav-link:hover {
    background-color: var(--color-primary-light);
    color: white;
    transform: translateX(4px);
}

.nav-link.nav-prev:hover {
    transform: translateX(-4px);
}

.nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-lighter);
}

.nav-link:hover .nav-label {
    color: white;
}

.nav-title {
    font-weight: 600;
    color: var(--color-text);
}

.nav-link:hover .nav-title {
    color: white;
}

/* ============================================
   11. SIDEBAR
   ============================================ */

.sidebar {
    position: sticky;
    top: calc(var(--spacing-xl) + 70px); /* Header height + spacing */
    max-height: calc(100vh - var(--spacing-2xl) - 70px);
    overflow-y: auto;
}

.widget {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: var(--spacing-xs);
}

.search-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.search-button:hover {
    background-color: var(--color-primary-dark);
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.recent-post-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-thumbnail {
    position: relative;
    padding-top: 100%; /* Square */
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--color-bg-tertiary);
}

.recent-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

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

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

.recent-post-date {
    font-size: 0.8125rem;
    color: var(--color-text-lighter);
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: var(--spacing-sm);
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.category-list a:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-primary);
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 var(--spacing-xs);
    background-color: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag-cloud .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tag-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Ad Widget */
.widget-ad {
    min-height: 250px;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background-color: var(--color-bg-secondary);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-lighter);
    font-weight: 500;
}

/* ============================================
   12. FOOTER
   ============================================ */

.site-footer {
    background-color: var(--color-text);
    color: var(--color-bg-secondary);
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: var(--color-bg-tertiary);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-bg-tertiary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-bg-tertiary);
    font-size: 0.9375rem;
}

.footer-disclaimer {
    margin-top: var(--spacing-sm);
}

.footer-disclaimer a {
    color: var(--color-primary-light);
    font-weight: 600;
}

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

/* ============================================
   13. PAGE HEADER (for category/tag pages)
   ============================================ */

.page-header {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-description {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: var(--spacing-xl);
    }

    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .sidebar {
        position: static;
        max-height: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--color-bg);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-link {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

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

    .article-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .article-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   15. UTILITY CLASSES
   ============================================ */

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   TEPAT SKOR - MODERN CARD DESIGN
   ============================================ */

/* Compact Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.hero-content-compact {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-compact {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin: 0;
    font-weight: 500;
}

/* Stats Dashboard */
.stats-dashboard {
    margin-bottom: var(--spacing-2xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary-light);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Modern Content Wrapper */
.content-wrapper-modern {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-2xl);
}

.main-column-modern {
    min-width: 0;
}

/* Section Header Modern */
.section-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.section-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Modern Cards Grid */
.cards-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.modern-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.modern-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    background: var(--color-bg-tertiary);
}

.modern-card-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.modern-card:hover .modern-card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--color-primary);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.modern-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.modern-card-title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.modern-card-title a:hover {
    color: var(--color-primary);
}

.modern-card-excerpt {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.modern-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.card-time {
    color: var(--color-text-lighter);
    font-weight: 500;
}

.card-read-time {
    color: var(--color-primary);
    font-weight: 600;
}

/* Responsive for Modern Design */
@media (max-width: 1024px) {
    .content-wrapper-modern {
        grid-template-columns: 1fr 250px;
    }
    
    .cards-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-wrapper-modern {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .hero-title-compact {
        font-size: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
