
body {
    margin: 0;
    padding: 0;
}

:root {
    --bs-bg: White;
    --bs-card-bg: #f8f9fa;
    --bs-text: black;
    --bs-text-light: #a1a1a1;
    --bs-accent: #73bb44;
    --bs-radius: 8px;
    --bs-shadow: rgba(0, 0, 0, 0.5);
}

/*— Container —*/
.blog-header {
    background: var(--bs-bg);
    background-color: var(--bs-bg);
    text-align: center;
    color: #73bb44;
    padding: 1rem 0;
    margin-bottom: 3rem;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.blog-standard {
    background: var(--bs-bg);
    color: var(--bs-text);
    font-family: 'Inter', sans-serif;
    padding: 3.5rem;
}

/*— Header —*/
.bs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bs-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}


.bs-layout {
    display: flex;
    gap: 2rem;
    width: 80%;
    margin: auto;
}

.posts-container {
    width: 65%;
    display: flex;
    flex-direction: column;
}

.bs-posts {
    flex: 3;
}

.bs-sidebar {
    flex: 1;
    width: 35%;
}

/* pagination section */

.pagination {
    width: 100%;
}

.pagination-child {
    width: 100%;
    padding: 40px 16px;
    gap: 6px;
    display: flex;
    flex-wrap: wrap;
}

.pagination a {
    color: white;
    float: left;
    padding: 16px 22px;
    text-decoration: none;
    border-radius: 8px;
    border: 0.5px solid rgb(95, 95, 95);
    font-weight: 600;
}

.pagination a.active {
    background-color: #5ec900;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #5ec900;
}

/* Recent Posts */

.recent-posts {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.recent-posts-title {
    color: var(--bs-accent);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 28px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.post-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.post-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-item:last-child {
    margin-bottom: 0;
}

.post-image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.post-item:hover .post-image {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.25);
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-category {
    display: inline-block;
    background: var(--bs-accent);
    color: var(--bs-text);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow:
    0 4px 8px rgba(79, 70, 229, 0.3),
    0 2px 4px rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-date {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
    opacity: 0.8;
}

.post-title {
    color: var(--bs-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0 0 0;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.post-item:hover .post-title {
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.recent-posts {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(20px);
    }

    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.post-item {
    animation: slideInLeft 0.5s ease-out forwards;
    opacity: 0;
}

.post-item:nth-child(2) {
    animation-delay: 0.1s;
}

.post-item:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes slideInLeft {
    from {
    opacity: 0;
    transform: translateX(-20px);
    }

    to {
    opacity: 1;
    transform: translateX(0);
    }
}

/*— Post card —*/
.bs-post-card {
    background: var(--bs-card-bg);
    border-radius: var(--bs-radius);
    box-shadow: 0 4px 20px var(--bs-shadow);
    overflow: hidden;
}

.bs-post-card a {
    text-decoration: none;
}

.bs-post-image {
    position: relative;
    overflow: hidden;
}

.bs-post-image img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.bs-post-image img:hover {
    transform: scale(1.05);
    filter: brightness(1);
}

.bs-post-title {
    font-size: 2rem;
    margin: 1rem;
    color: var(--bs-accent);
}

.bs-post-meta {
    margin: 0 1rem;
    font-size: 0.875rem;
    color: var(--bs-text-light);
}

.bs-dot {
    margin: 0 0.5rem;
    font-weight: 700;
    color: var(--bs-text-light);
}

.bs-post-excerpt {
    margin: 0 1rem 1.5rem;
    line-height: 1.6;
}

.bs-read-more {
    display: inline-block;
    margin: 0 1rem 1.5rem;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--bs-accent);
    transition: color 0.3s;
}

.bs-read-more:hover {
    color: #9159e4;
}

.bs-widget {
    background: var(--bs-card-bg);
    border-radius: var(--bs-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px var(--bs-shadow);
}

.bs-widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--bs-accent);
}

.bs-search-box {
    position: relative;
}

.bs-search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: var(--bs-radius);
    border: none;
    background: #1a1c2e;
    color: var(--bs-text);
    outline: none;
    font-size: 0.95rem;
}

.bs-search-box input::placeholder {
    color: var(--bs-text-light);
}

.bs-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--bs-text-light);
}

.bs-search-btn:hover {
    color: var(--bs-accent);
}

.bs-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bs-categories-list li {
    margin-bottom: 0.75rem;
}

.bs-categories-list a {
    text-decoration: none;
    color: var(--bs-text);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.bs-categories-list a span {
    color: var(--bs-text-light);
}

.bs-categories-list a:hover {
    color: var(--bs-accent);
}

/* ******************************************************media query***************************************************************** */

@media screen and (max-width: 1200px) {
    .bs-layout {
    flex-direction: column;
    align-items: center;
    width: 90%;
    }

    .posts-container {
    width: 100%;
    }

    .bs-sidebar {
    width: 100%;
    }
}

@media screen and (max-width: 786px) {
    .blog-standard {
    padding: 0px;
    padding-top: 70px;
    }

    .bs-title {
    margin: 0px 0px 0px 0px;
    }
}

@media (max-width: 768px) {
    .recent-posts {
    padding: 24px 16px;
    border-radius: 16px;
    }

    .recent-posts-title {
    font-size: 20px;
    margin-bottom: 20px;
    }

    .post-item {
    padding: 12px;
    gap: 12px;
    margin-bottom: 16px;
    }

    .post-image {
    width: 60px;
    height: 60px;
    }

    .post-title {
    font-size: 14px;
    }
}

@media screen and (max-width: 450px) {
    .bs-layout {
    width: 95%;
    }

    .pagination-child {
    width: 90%;
    }
}