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

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Merriweather', serif;
    color: #1a202c;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.logo span {
    color: #2563eb;
}

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

.main-nav a {
    font-weight: 600;
    font-size: 14px;
    color: #4a5568;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2563eb;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img-hero-banner.png');
    background-size: cover;
    background-position: center;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-tag {
    background: #2563eb;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h2 {
    color: white;
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn-read-more {
    display: inline-block;
    background: white;
    color: #1a202c;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background: #2563eb;
    color: white;
}

/* Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 60px 20px;
}

/* Cards */
.articles-grid {
    display: grid;
    gap: 40px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.3s;
    height: 250px;
}

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

.card-image {
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-category {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card p {
    color: #718096;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-link {
    font-weight: 700;
    color: #2563eb;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.category-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.category-list a {
    color: #4a5568;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: #2563eb;
}

/* Footer */
.main-footer {
    background: #1a202c;
    color: #a0aec0;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h5 {
    color: white;
    margin-bottom: 20px;
}

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

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

.footer-bottom {
    background: #11151d;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .card-image {
        height: 200px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-read-more {
        padding: 10px 25px;
        font-size: 14px;
    }

    .main-content {
        padding: 30px 15px;
        gap: 20px;
    }

    .card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .card-image {
        height: 180px;
        min-height: 180px;
    }

    .card-content {
        padding: 20px;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .post-content img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .main-nav ul {
        gap: 10px;
        font-size: 13px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col {
        padding: 0 20px;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-card {
        padding: 20px;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Category Pages */
.category-title {
    font-size: 2rem;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.category-description {
    color: #718096;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.category-articles {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.category-card-content h3 {
    margin: 10px 0 15px;
}

.category-card-content h3 a {
    color: #1a202c;
    text-decoration: none;
}

.category-card-content h3 a:hover {
    color: #2563eb;
}