:root {
    --blog-primary: #062C6B;
    --blog-secondary: #0f3f97;
    --blog-surface: #ffffff;
    --blog-muted: #5b677d;
    --blog-border: rgba(6, 44, 107, 0.12);
}

.blog-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(5,44,107,0.80) 0%, rgba(9,23,73,0.85) 100%), url("assets/images/slider1.jpg") center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 90px;
}

.blog-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 34, 84, 0.32);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-copy .eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-copy .lead {
    max-width: 650px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.75;
}

.blog-search {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    background: #ffffff;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 0;
    font-size: 1rem;
    min-width: 0;
    color: var(--color-text);
    background: transparent;
}

.search-input::placeholder {
    color: rgba(17, 24, 39, 0.6);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: var(--color-secondary);
    color: white;
    border: 0;
    padding: 1rem 1.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-btn:hover {
    background: #c90e42;
    transform: translateY(-1px);
}

.blog-content-area {
    padding: 70px 0 120px;
}

.blog-layout {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1.3fr) 420px;
    max-width: 1240px;
    margin: 0 auto;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.blog-intro-copy {
    font-size: 1rem;
    color: var(--blog-muted);
}

.blog-count {
    font-size: 0.95rem;
    color: var(--blog-secondary);
    font-weight: 600;
}

.blog-post-card {
    background: var(--blog-surface);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    box-shadow: 0 28px 80px rgba(6, 44, 107, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 90px rgba(6, 44, 107, 0.12);
}

.post-image {
    height: 340px;
    overflow: hidden;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-content {
    padding: 32px;
}

.post-category-chip {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 10px 16px;
    background: rgba(227, 18, 76, 0.10);
    color: var(--color-secondary);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 18px;
}

.post-title {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 3.2vw, 2.2rem);
    line-height: 1.12;
}

.post-title a {
    color: #152646;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--color-secondary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--blog-muted);
    margin-bottom: 20px;
}

.post-excerpt {
    color: #475569;
    line-height: 1.85;
    margin-bottom: 22px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #c90e42;
    transform: translateY(-1px);
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid #d6d9e3;
    border-radius: 999px;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.pagination-link:hover {
    background: #f8fafd;
}

.pagination-link.active {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.blog-sidebar {
    display: grid;
    gap: 24px;
}

.widget {
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(6, 44, 107, 0.06);
}

.widget-title {
    font-size: 1.15rem;
    margin-bottom: 18px;
    color: #152646;
}

.category-list,
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #152646;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(6, 44, 107, 0.08);
    transition: background 0.3s ease, transform 0.2s ease;
}

.category-link:hover {
    background: rgba(6, 44, 107, 0.06);
    transform: translateY(-1px);
}

.category-count {
    color: var(--blog-muted);
    font-size: 0.9rem;
}

.recent-post-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 14px;
    align-items: start;
}

.recent-post-image {
    width: 82px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-title {
    display: block;
    margin-bottom: 8px;
    color: #152646;
    font-weight: 700;
    text-decoration: none;
}

.recent-post-title:hover {
    color: var(--color-secondary);
}

.recent-post-date {
    color: var(--blog-muted);
    font-size: 0.9rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background: rgba(227, 18, 76, 0.08);
    color: var(--color-secondary);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.tag-link:hover {
    background: var(--color-secondary);
    color: white;
}

.no-posts {
    padding: 50px;
    text-align: center;
    border-radius: 24px;
}

.no-posts h3 {
    margin-bottom: 16px;
    color: #152646;
}

.no-posts p {
    color: var(--blog-muted);
    line-height: 1.8;
}

@media (max-width: 1080px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
    }

    .blog-search {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
        border-radius: 0 0 999px 999px;
    }

    .blog-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .recent-post-item {
        grid-template-columns: 1fr;
    }
}
