:root {
    --primary: #283246;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

body {
    background: var(--bg);
    color: var(--primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 24px 16px 60px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;

}

.hero-slide {
    min-width: 100%;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 34px;
    margin-bottom: 16px;
}

.hero p {
    color: var(--muted);
    max-width: 520px;
}

.hero-img {
    width: 100%;
    border-radius: 12px !important;
}

.hero-tag {
    color: #3b82f6;
    font-size: 13px;
    margin-bottom: 8px;
}

/* ===== DOTS ===== */
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.hero-dots .dot {
    width: 28px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s ease;
}

.hero-dots .dot.active {
    background: #0a2540;
    width: 40px;
}

/* ===== LAYOUT ===== */
.layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

/* ===== ARTICLE HEADER ===== */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.articles-header h2 {
    font-size: 22px;
}

.articles-header select {
    padding: 11px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

/* ===== SEARCH ===== */
#blogSearch {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

/* ===== ARTICLES ===== */
.article-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.article-card img {
    width: 100%;
    border-radius: 12px !important;
    object-fit: cover;
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.article-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.meta {
    font-size: 13px;
    color: var(--muted);
}

/* ===== PAGINATION ===== */
.blog_pagination {
    display: flex;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.blog_pagination a {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.blog_pagination a.active {
    background: #0a2540;
    color: #fff !important;
    border-color: #0a2540;
}

.blog_pagination .dots {
    display: flex;
    align-items: center;
    padding: 0 6px;
    color: var(--muted);
}

/* Mobile */
@media (max-width: 600px) {
    .blog_pagination a {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ===== SIDEBAR ===== */
.sidebar section {
    margin-bottom: 32px;
}

.sidebar h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

/* ===== COMMENTS ===== */
.list li {
    list-style: none;
    padding: 10px 0;
    font-size: 14px;
    color: var(--muted);
}

.list li p {
    margin-bottom: 6px;
}

/* ===== AVATAR ===== */
.avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 10px;
    margin-right: 6px;
    text-transform: uppercase;
}

.avatar.a,
.avatar.b,
.avatar.c {
    background: #3b82f6;
}

.avatar.d,
.avatar.e,
.avatar.f {
    background: #10b981;
}

.avatar.g,
.avatar.h,
.avatar.i {
    background: #8b5cf6;
}

.avatar.j,
.avatar.k,
.avatar.l {
    background: #f97316;
}

.avatar.m,
.avatar.n,
.avatar.o {
    background: #ec4899;
}

.avatar.p,
.avatar.q,
.avatar.r {
    background: #14b8a6;
}

.avatar.s,
.avatar.t,
.avatar.u {
    background: #6366f1;
}

.avatar.v,
.avatar.w,
.avatar.x,
.avatar.y,
.avatar.z {
    background: #ef4444;
}

/* ===== SOCIAL ===== */
.social {
    display: flex;
    gap: 12px;
}

.social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
    }

    .layout {
        grid-template-columns: 1fr;
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 0 !important;
    }

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

    .articles-header select {
        width: 45% !important;
    }

}

/* blog details page css */
.blog-details-container {
    max-width: 1200px;
    margin: auto;
    padding: 24px 16px 60px;
}

/* ================= HERO ================= */
.blog-future-image {
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-details-track {
    display: flex;
}

.blog-details-slide {
    min-width: 100%;
}

.blog-details-hero {
    display: grid;
    grid-template-columns: 5fr 1fr;
    gap: 32px;
    align-items: end;
    margin-bottom: 12px;
}

.blog-details-hero h1 {
    font-size: 34px;
    line-height: 1.25;
}

.blog-details-hero-tag {
    color: var(--primary);
    background-color: #f0f0f0;
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid #cdcdcd;
    width: fit-content;
    padding: 2px 10px;
    border-radius: 20px;
}

.blog-details-hero span {
    font-size: 13px;
    color: var(--muted);
    text-align: right;
}

.blog-details-slide img {
    border-radius: 16px;
    width: 100%;
}

/* ================= blog-LAYOUT ================= */
.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

/* ================= CONTENT ================= */
.blog-page-content p {
    margin-bottom: 16px;
    font-size: 15px;
}

.blog-page-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.blog-page-content h2 {
    font-size: 20px;
    margin: 28px 0 12px;
}

/* ================= SIDEBAR ================= */
.sidebar section {
    margin-bottom: 24px;
}

.sidebar h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.blog-article-card {
    margin-bottom: 16px;
}

.blog-article-card img {
    width: 100%;
    border-radius: 10px;
}

.blog-article-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.post,
.categories,
.tag,
.follow-us {
    background: #f0f0f0;
    padding: 14px;
    border-radius: 10px;
}

.categories span,
.tag span {
    display: inline-block;
    background: #d1d5db;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin: 4px 4px 0 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .blog-details-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-details-hero h1 {
        font-size: 26px;
    }

    .blog-details-hero span {
        text-align: left;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-article-card img {
        width: 25%;
        height: auto;
    }

    .blog-article-card {
        display: flex;
        gap: 16px;
    }

    .blog-article-card h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .blog-details-hero h1 {
        font-size: 22px;
    }

    .blog-details-container {
        padding: 16px 14px 40px;
    }

    .blog-article-card img {
        width: 30%!important;
        height: auto;
    }

    .blog-article-card {
        display: flex;
        gap: 16px;
    }
}

/* form css */
.comment-textarea {
    min-height: 120px;
    resize: none;
    overflow-y: auto;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    padding: 10px 10px;
    width: 100%;
}

.comment-name,
.comment-email,
.comment-url {
    padding: 10px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    width: 100%;
}

form#commentform p {
    padding: 5px 0px;
}

#submit {
    background: var(--primary);
    color: #fff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}