/* Custom Properties / Variables */
:root {
    --primary-blue: #0A4D98; /* Kompas-like corporate blue */
    --secondary-orange: #F37021; /* Accent orange */
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --bg-light: #F3F4F6;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --transition: all 0.3s ease;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utility */
.text-blue { background-color: var(--primary-blue) !important; color: white !important; }
.text-orange { background-color: var(--secondary-orange) !important; color: white !important; }
.text-purple { background-color: #8B5CF6 !important; color: white !important; }
.text-red { background-color: #EF4444 !important; color: white !important; }

/* --- Header Section --- */
.top-header {
    background-color: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.date-today {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.date-today i {
    margin-right: 6px;
    color: var(--primary-blue);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-light);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(10, 77, 152, 0.1);
}

.search-box input {
    border: none;
    padding: 10px 16px;
    outline: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    width: 200px;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 0 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--primary-blue);
}

.login-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    background-color: #083c76;
    box-shadow: 0 4px 6px rgba(10, 77, 152, 0.2);
}

/* --- Navigation --- */
.main-nav {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.main-nav ul {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    white-space: nowrap;
}

.main-nav ul::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.main-nav a {
    display: block;
    padding: 16px 0;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* --- Breaking News --- */
.breaking-news {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
}

.ticker-label {
    background-color: var(--secondary-orange);
    color: var(--white);
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.8125rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-right: 16px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(243, 112, 33, 0.3);
}

.ticker-content {
    font-size: 0.9375rem;
    font-weight: 500;
}

.ticker-content a {
    color: var(--text-dark);
}

.ticker-content a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* --- Main Content Area --- */
.main-content-area {
    margin-top: 32px;
    margin-bottom: 64px;
}

/* --- Hero Grid --- */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.hero-main, .hero-sub {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.hero-main img, .hero-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-main {
    height: 480px;
}

.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.hero-sub {
    height: 228px; /* (480 - 24 gap) / 2 */
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 24px 24px;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.6) 60%, transparent 100%);
    color: var(--white);
}

.hero-main:hover img, .hero-sub:hover img {
    transform: scale(1.05);
}

.category-tag {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-main h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 12px;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-sub h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-main .meta {
    font-size: 0.875rem;
    color: #D1D5DB;
}

.hero-main .meta span {
    color: var(--white);
    font-weight: 600;
}

/* --- Content Layout (Two Columns) --- */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-dark);
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-blue);
}

.view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all:hover {
    color: var(--secondary-orange);
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-item {
    display: flex;
    gap: 24px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.article-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: #D1D5DB;
}

.article-item img {
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-info h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 10px 0;
    font-weight: 700;
}

.article-info h3 a:hover {
    color: var(--primary-blue);
}

.article-info p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.article-info .meta {
    font-size: 0.8125rem;
    color: #9CA3AF;
    margin-top: auto;
    font-weight: 500;
}

.load-more {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 32px;
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
}

.load-more:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 16px;
}

.trending-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.rank {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-orange);
    line-height: 1;
    min-width: 24px;
    text-align: center;
}

.trending-info h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 6px;
    font-weight: 600;
}

.trending-info h4 a:hover {
    color: var(--primary-blue);
}

.trending-info .meta {
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.ad-widget {
    padding: 16px;
    background-color: #F9FAFB;
}

.ad-placeholder {
    background-color: #E5E7EB;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-weight: 600;
    border-radius: 4px;
    border: 1px dashed #D1D5DB;
}

.editor-article img {
    border-radius: 6px;
    margin-bottom: 16px;
}

.editor-article h4 {
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 600;
}

.editor-article h4 a:hover {
    color: var(--primary-blue);
}

/* --- Footer --- */
.main-footer {
    background-color: #111827; /* Darker modern footer */
    color: #F3F4F6;
    padding: 64px 0 24px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    color: #9CA3AF;
    font-size: 0.9375rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 16px;
}

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

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

.footer-links h3, .footer-subscribe h3 {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: var(--white);
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #9CA3AF;
    font-size: 0.9375rem;
    transition: var(--transition);
}

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

.footer-subscribe p {
    color: #9CA3AF;
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.subscribe-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    font-family: var(--font-primary);
}

.subscribe-form button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: #083c76;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #374151;
    color: #6B7280;
    font-size: 0.875rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }
    .hero-main {
        height: 400px;
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    .hero-side {
        grid-template-columns: 1fr;
    }
    .article-item {
        flex-direction: column;
        padding: 16px;
    }
    .article-item img {
        width: 100%;
        height: 220px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
