/* Blog Section & Cards Styling */
:root {
    --primary-gradient: linear-gradient(135deg, #1acc8d 0%, #17bebb 100%);
    --dark-bg: #0d1117;
    --dark-card: #161b22;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-white: rgba(255, 255, 255, 0.05);
}

.page-header {
    background: linear-gradient(135deg, #1d283a 0%, #0d1117 100%), url('../img/blog-bg.jpg') center/cover;
    background-blend-mode: overlay;
    padding: 140px 0 100px;
    color: #fff;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #f8f9fa, transparent);
    z-index: 1;
}

body.dark-mode .page-header::before {
    background: linear-gradient(to top, var(--dark-bg), transparent);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.blog-posts {
    padding: 100px 0;
    background-color: #f8f9fa;
}

body.dark-mode .blog-posts {
    background-color: var(--dark-bg);
}

/* Card Styling */
.blog-posts article {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

body.dark-mode .blog-posts article {
    background: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-posts article:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    border-color: #1acc8d50;
}

.blog-posts .post-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.blog-posts .post-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-posts article:hover .post-img::after {
    opacity: 1;
}

.blog-posts .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0, 0, 0.2, 1);
}

.blog-posts article:hover .post-img img {
    transform: scale(1.1) rotate(1deg);
}

.blog-posts .post-category {
    padding: 30px 30px 10px;
    font-size: 0.75rem;
    color: #1acc8d;
    font-weight: 800;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-posts .title {
    padding: 0 30px 20px;
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 800;
    margin: 0;
}

.blog-posts .title a {
    color: #1d283a;
    text-decoration: none;
    transition: color 0.3s;
}

body.dark-mode .blog-posts .title a {
    color: #f0f6fc;
}

.blog-posts .title a:hover {
    color: #1acc8d;
}

.blog-posts .post-excerpt {
    padding: 0 30px 30px;
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.7;
    flex-grow: 1;
}

body.dark-mode .blog-posts .post-excerpt {
    color: #8b949e;
}

.blog-posts .readmore {
    padding: 25px 30px;
    background: rgba(26, 204, 141, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #1acc8d;
    transition: all 0.3s;
    text-decoration: none;
}

.blog-posts article:hover .readmore {
    background: rgba(26, 204, 141, 0.08);
    padding-left: 40px;
}

/* Blog Details Styling */
.blog-details {
    padding: 100px 0;
    background: #f8f9fa;
}

body.dark-mode .blog-details {
    background: var(--dark-bg);
}

.blog-details article.post-details {
    background: #fff;
    padding: 0;
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .blog-details article.post-details {
    background: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.08);
}

.blog-details .post-img {
    width: 100%;
    max-height: 550px;
    overflow: hidden;
}

.blog-details .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-details .content-wrap {
    padding: 60px;
}

@media (max-width: 768px) {
    .blog-details .content-wrap {
        padding: 30px;
    }
}

.blog-details .content {
    font-size: 1.25rem;
    line-height: 2;
    color: #444;
}

body.dark-mode .blog-details .content {
    color: #c9d1d9;
}

.blog-details .content h1,
.blog-details .content h2,
.blog-details .content h3 {
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 800;
    color: #1d283a;
    line-height: 1.3;
}

body.dark-mode .blog-details .content h1,
body.dark-mode .blog-details .content h2,
body.dark-mode .blog-details .content h3 {
    color: #f0f6fc;
}

.blog-details .content p {
    margin-bottom: 30px;
}

.blog-details .content blockquote {
    background: #f8f9fa;
    padding: 40px;
    border-right: 6px solid #1acc8d;
    border-radius: 20px;
    font-style: italic;
    font-size: 1.4rem;
    color: #1d283a;
    margin: 40px 0;
}

body.dark-mode .blog-details .content blockquote {
    background: rgba(255, 255, 255, 0.03);
    color: #f0f6fc;
}

.sidebar {
    background: #fff;
    padding: 40px;
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 120px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .sidebar {
    background: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #1d283a;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.dark-mode .sidebar-title {
    color: #f0f6fc;
}

.post-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-item img {
    border-radius: 15px;
    object-fit: cover;
    width: 100px;
    height: 80px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.post-item h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-item h4 a {
    color: #1d283a;
    text-decoration: none;
    transition: 0.3s;
}

.post-item h4 a:hover {
    color: #1acc8d;
}

body.dark-mode .post-item h4 a {
    color: #f0f6fc;
}

.post-item time {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pagination Styling */
.pagination {
    margin-top: 70px;
    gap: 12px;
}

.pagination .page-item .page-link {
    border: none;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px !important;
    color: #1d283a;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.4s;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

body.dark-mode .pagination .page-item .page-link {
    background: var(--dark-card);
    color: #f0f6fc;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 15px 30px rgba(26, 204, 141, 0.3);
}

.pagination .page-item:not(.active) .page-link:hover {
    background: #1acc8d10;
    color: #1acc8d;
    transform: translateY(-5px);
}

/* Social Share Icons */
.social-share {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-share h5 {
    font-weight: 800;
    margin: 0;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-5px);
    color: #fff;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}