/* Blog Page Styles - Based on Figma Design */

/* Content Sections */
.content-section {
    padding: 30px 0;
}

.content-section:nth-child(odd) {
    background-color: #f2f5f9;
}

.content-section:nth-child(even) {
    background-color: white;
}

.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #1a1a1a;
    margin: 0 0 32px 0;
}

/* Recent Blog Posts Grid */
.recent-blogs-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.featured-blog {
    flex: 1;
    min-width: 0;
}

.recent-blogs-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

/* Blog Card Styles */
.blog-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: none;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    gap: 32px;
}

.blog-card:hover {
    transform: none;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
}

.blog-card-image-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.featured-blog .blog-card-image-wrapper {
    height: auto;
    aspect-ratio: 16/9;
}

.side-image {
    width: 320px;
    height: 200px;
    flex-shrink: 0;
}

.horizontal-image {
    flex: 1;
    min-width: 0;
    height: 246px;
}

.all-blogs-grid .blog-card-image-wrapper {
    height: 240px;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-blog {
    flex-direction: row;
    gap: 24px;
}

.side-blog .blog-card-content {
    flex: 1;
    min-width: 0;
}

.horizontal-blog {
    flex-direction: row;
    gap: 32px;
}

.horizontal-blog .blog-card-content {
    flex: 1;
    min-width: 0;
}

.blog-card-meta-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    margin: 0;
}

.blog-card-title-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.blog-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.side-title {
    font-size: 18px;
    line-height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

.blog-card-icon i {
    font-size: 16px;
    color: #1a1a1a;
}

.blog-card-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.blog-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #667085;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-excerpt {
    -webkit-line-clamp: 4;
}

.blog-card-excerpt-full {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #667085;
}

.blog-card-excerpt-full p {
    margin: 0 0 16px 0;
}

.blog-card-excerpt-full p:last-child {
    margin-bottom: 0;
}

/* Category Badges */
.blog-card-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-badge {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    padding: 2px 10px;
    border-radius: 16px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

/* Badge Color Variants */
.badge-health {
    background-color: #f9f5ff;
    color: #6941c6;
}

.badge-refreshment {
    background-color: #eef4ff;
    color: #3538cd;
}

.badge-benefits {
    background-color: #fdf2fa;
    color: #c11574;
}

.badge-yoga {
    background-color: #fdf2fa;
    color: #c11574;
}

.badge-stretch,
.badge-stretching {
    background-color: #ecfdf3;
    color: #027a48;
}

.badge-workout {
    background-color: #fdf2fa;
    color: #c11574;
}

.badge-nutrition {
    background-color: #fdf2fa;
    color: #c11574;
}

.badge-family {
    background-color: #f9f5ff;
    color: #6941c6;
}

.badge-fitness {
    background-color: #f8f9fc;
    color: #363f72;
}

.badge-challenge,
.badge-challange {
    background-color: #fff6ed;
    color: #c4320a;
}

.badge-parents {
    background-color: #eef4ff;
    color: #3538cd;
}

.badge-strategies,
.badge-stragegies {
    background-color: #fdf2fa;
    color: #c11574;
}

.badge-happy {
    background-color: #fff1f3;
    color: #c01048;
}

.badge-kids {
    background-color: #f8f9fc;
    color: #363f72;
}

/* Default badge style for unknown categories */
.blog-badge:not([class*="badge-"]) {
    background-color: #f0f9ff;
    color: #026aa2;
}

/* All Blog Posts Grid */
.all-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #eaecf0;
}

.pagination-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.pagination-btn:hover {
    color: #1a1a1a;
    text-decoration: none;
}

.pagination-btn.disabled {
    color: #d0d5dd;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn i {
    font-size: 16px;
}

.pagination-numbers {
    display: flex;
    gap: 2px;
    align-items: center;
}

.pagination-number {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background-color: #f2f5f9;
    color: #1a1a1a;
    text-decoration: none;
}

.pagination-number.active {
    background-color: #f9f5ff;
    color: #7f56d9;
}

.pagination-ellipsis {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty State */
.blogs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #667085;
}

.blogs-empty h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.blogs-empty p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #667085;
}

/* Responsive Design */
@media only screen and (max-width: 1024px) {
    .recent-blogs-grid {
        flex-direction: column;
    }
    
    .side-image {
        width: 100%;
        height: 200px;
    }
    
    .side-blog {
        flex-direction: column;
    }
    
    .horizontal-blog {
        flex-direction: column;
    }
    
    .horizontal-image {
        height: 240px;
    }
    
    .all-blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media only screen and (max-width: 768px) {
    .blog-container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .recent-blogs-grid {
        gap: 24px;
    }
    
    .side-image {
        height: 180px;
    }
    
    .all-blogs-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .blog-card-title {
        font-size: 20px;
    }
    
    .side-title {
        font-size: 18px;
    }
    
    .blog-pagination {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .pagination-numbers {
        order: -1;
    }
}

/* Blog Detail Page Styles */
#blog-detail.content-section {
    background-color: #f2f5f9;
    padding: 30px 0;
    min-height: calc(100vh - 200px);
    width: 100%;
}

.blog-detail-container {
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 32px;
}

.blog-detail-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Sidebar Styles */
.blog-detail-sidebar {
    width: 342px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #667085;
    margin: 0;
}

.sidebar-blog-card {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-decoration: none;
    color: inherit;
}

.sidebar-blog-card:hover {
    text-decoration: none;
    color: inherit;
}

.sidebar-blog-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.sidebar-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-blog-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-blog-date {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    margin: 0;
}

.sidebar-blog-title-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sidebar-blog-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    color: #667085;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.sidebar-blog-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

.sidebar-blog-icon i {
    font-size: 16px;
    color: #667085;
}

.sidebar-blog-excerpt {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #667085;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-blog-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Main Content Styles */
.blog-detail-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-detail-date-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    margin: 0;
}

.blog-detail-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #52606e;
    margin: 0;
}

.blog-detail-header-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #cecece;
}

.blog-detail-header-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.blog-detail-content-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #667085;
}

.blog-detail-content-body p {
    margin: 0 0 16px 0;
}

.blog-detail-content-body p:last-child {
    margin-bottom: 0;
}

.blog-detail-content-body h2,
.blog-detail-content-body h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #52606e;
    margin-top: 24px;
    margin-bottom: 12px;
}

.blog-detail-content-body h2 {
    font-size: 20px;
    line-height: 24px;
}

.blog-detail-content-body h3 {
    font-size: 18px;
    line-height: 24px;
}

.blog-detail-content-body ul,
.blog-detail-content-body ol {
    margin: 12px 0;
    padding-left: 30px;
}

.blog-detail-content-body li {
    margin-bottom: 8px;
    line-height: 29px;
}

.blog-detail-content-body li span {
    display: block;
}

.blog-detail-content-body strong {
    font-weight: 700;
    color: #52606e;
}

.blog-detail-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 24px 0;
}

/* Author Section */
.blog-detail-author-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
}

.author-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #717171;
    margin: 0;
}

.author-details {
    display: flex;
    gap: 18px;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #202020;
    margin: 0;
}

.author-email {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #909090;
    text-decoration: underline;
    text-underline-position: from-font;
}

.author-email:hover {
    color: #667085;
    text-decoration: underline;
}

/* Responsive Design for Blog Detail */
@media only screen and (max-width: 1024px) {
    .blog-detail-layout {
        flex-direction: column;
    }
    
    .blog-detail-sidebar {
        width: 100%;
    }
    
    .sidebar-blog-image {
        aspect-ratio: 16/9;
        max-width: 342px;
    }
}

@media only screen and (max-width: 768px) {
    .blog-detail-container {
        padding: 0 20px;
    }
    
    .blog-detail-layout {
        gap: 24px;
    }
    
    .blog-detail-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .sidebar-title {
        font-size: 20px;
    }
    
    .sidebar-blog-title {
        font-size: 20px;
    }
    
    .author-details {
        flex-direction: column;
        align-items: flex-start;
    }
}
