/* Variables & Reset */
:root {
    --bg-color: #fafafa;
    --text-color: #2b2b2b;
    --card-bg: #ffffff;
    --primary-color: #1a202c;
    --accent-color: #2b6cb0;
    --accent-hover: #2c5282;
    --border-color: #e2e8f0;
    --text-muted: #4a5568;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.25;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

/* Hero */
.hero {
    background-color: var(--primary-color);
    color: #edf2f7;
    padding: 6rem 0;
    margin-bottom: 5rem;
}

.hero h1 {
    color: #ffffff;
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 800px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.7;
}

/* Grids */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background-color: #f1f5f9;
}

.card-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: #edf2f7;
    border-radius: 20px;
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.card-summary {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.card-actions.promujer-actions {
    flex-direction: row;
    justify-content: space-between;
}

.card-actions.promujer-actions .btn-secondary {
    width: 32%;
    padding: 0.6rem 0.2rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Compact Card Adjustments */
.compact-card {
    padding: 1.25rem;
    border-radius: 10px;
}

.compact-card .card-title {
    font-size: 1.15rem;
}

.compact-card .card-summary {
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card .card-date {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-main {
    width: 50%;
}

.btn:hover, .btn:focus {
    background-color: var(--accent-hover);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #edf2f7;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #e2e8f0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: auto;
}

footer p {
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        margin-bottom: 3rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

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