/* Pinned Posts Section */
.pinned-posts-section {
    background: var(--background-color);
    padding: 0 0 60px;
    position: relative;
}

.pinned-posts-header {
    text-align: center;
    margin-bottom: 40px;
}

.pinned-posts-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    font-family: var(--heading-font);
    margin-bottom: 10px;
}

.pinned-posts-title i {
    color: var(--accent-color);
    font-size: 20px;
}

.pinned-posts-subtitle {
    color: var(--default-color);
    font-size: 14px;
    opacity: 0.8;
}

.pinned-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pinned-post-card {
    background: var(--surface-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--accent-color);
    transition: all 0.4s ease;
    position: relative;
}

.pinned-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #2d5cff);
    z-index: 2;
}

.pinned-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(29, 96, 236, 0.3);
    border-color: #2d5cff;
}

.pinned-post-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.pinned-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pinned-post-card:hover .pinned-post-image img {
    transform: scale(1.08);
}

.pinned-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--accent-color), #ff6b35);
    color: var(--contrast-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.pinned-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--contrast-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.pinned-post-content {
    padding: 25px;
}

.pinned-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.pinned-post-meta i {
    color: var(--accent-color);
    margin-right: 4px;
}

.pinned-post-title {
    margin-bottom: 12px;
}

.pinned-post-title a {
    color: var(--heading-color);
    font-size: 18px;
    font-weight: 700;
    font-family: var(--heading-font);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pinned-post-title a:hover {
    color: var(--accent-color);
}

.pinned-post-excerpt {
    font-size: 14px;
    color: var(--default-color);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pinned-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pinned-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.pinned-read-more:hover {
    color: #2d5cff;
}

.pinned-read-more i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.pinned-read-more:hover i {
    transform: translateX(4px);
}

.pinned-tag {
    background: rgba(29, 96, 236, 0.2);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(29, 96, 236, 0.3);
}

/* Section Divider */
.section-divider {
    position: relative;
    margin: 60px 0;
    text-align: center;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.section-divider-text {
    background: var(--background-color);
    padding: 0 30px;
    color: var(--default-color);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
}

/* Update existing blog content section padding */
.blog-content-section {
    background: var(--background-color);
    padding: 0 0 120px; /* Remove top padding since pinned section handles spacing */
}

/* Responsive Design for Pinned Posts */
@media (max-width: 991px) {
    .pinned-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .pinned-posts-section {
        padding: 0 0 40px;
    }

    .pinned-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pinned-post-image {
        height: 160px;
    }

    .pinned-post-content {
        padding: 20px;
    }

    .pinned-posts-title {
        font-size: 20px;
    }

    .section-divider {
        margin: 40px 0;
    }
}

@media (max-width: 576px) {
    .pinned-posts-header {
        margin-bottom: 30px;
    }

    .pinned-post-title a {
        font-size: 16px;
    }

    .pinned-post-excerpt {
        font-size: 13px;
    }

    .pinned-post-content {
        padding: 18px;
    }

    .pinned-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
}
