:root {
    --primary-color: #346bb2;
    --primary-light: #e8f0fe;
    --secondary-color: #2a5592;
    --accent-color: #4a7bc8;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-dark: #333;
    --text-muted: #666;
    --gradient: linear-gradient(135deg, #346bb2 0%, #4a7bc8 100%);
    --shadow: 0 10px 30px rgba(52, 107, 178, 0.15);
    --shadow-hover: 0 20px 40px rgba(52, 107, 178, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Hero */
.hero {
    background: var(--gradient);
    color: #fff;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd' opacity='0.1'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .lead {
    max-width: 720px;
    margin: 1.5rem auto 0;
    opacity: 0.9;
    font-weight: 400;
    font-size: 1.2rem;
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(52, 107, 178, 0.2);
}

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

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card h5 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.2s ease;
    background-image: linear-gradient(var(--primary-color), var(--primary-color));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left 85%;
    padding-bottom: 3px;
}

.blog-card:hover h5 a {
    color: var(--primary-color);
    background-size: 100% 2px;
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    text-align: justify;
}

@media (max-width: 576px) {
    .blog-card-img-container {
        height: 180px;
    }

    .hero {
        padding: 3rem 1rem;
    }
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.blog-meta .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

.sidebar {
    /* margin: 3.7rem 0; */
    background: #fff;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.sidebar h5::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar li:last-child {
    margin-bottom: 0;
}

.sidebar a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
    position: relative;
}

.sidebar a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    gap: 0.5rem;
    align-items: stretch;
}

.tags a {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    flex: 1;
    text-align: center;
}

.btn-read-more {
    align-self: flex-start;
    margin-top: auto;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: var(--transition);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    inset-inline-start: 30px;
    bottom: -5px;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 4px;
}

.blog-section {
    padding: 4rem 0;
}