/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: #fff;
}

.blog-section-inner {
    width: 100%;
    text-align: center;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-section .tag,
.blog-section .title,
.blog-section .subtitle {
    margin-bottom: 20px;
}

/* Blog Cards Wrapper */
.blog-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: rgba(71, 103, 136, 0.04) 0px 4px 4.5px 0px, rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, rgba(71, 103, 136, 0.06) 0px 15px 30px 0px;
    transition: transform 0.3s cubic-bezier(0,0,0.5,1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-category {
    display: inline-block;
    padding: 6px 12px;
    background-color: #78A083 !important;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.32px;
}

.blog-read-time {
    font-size: 14px;
    color: #1d262d;
    font-weight: 400;
}

.blog-card-title {
    font-size: 24px;
    font-weight: 600;
    color: #35374B;
    font-family: "Inter", sans-serif;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-description {
    font-size: 16px;
    color: #1d262d;
    line-height: 24px;
    margin-bottom: 20px;
    flex-grow: 1;
    font-weight: 400;
}

.blog-card-link {
    color: #78A083;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-link {
    color: #5d7f66;
}

/* Blog Detail Page Styles */
.blog-detail-section {
    padding: 80px 0;
    background: #fff;
}

.blog-detail-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-detail-back {
    margin-bottom: 30px;
}

.back-link {
    color: #35374B;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #78A083;
}

.blog-detail-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-direction: row-reverse;
}

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

.blog-detail-content {
    width: 100%;
}

.blog-detail-header {
    margin-bottom: 40px;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-date {
    font-size: 14px;
    color: #1d262d;
    font-weight: 400;
}

.blog-detail-title {
    font-size: 48px;
    font-weight: 600;
    color: #35374B;
    font-family: "Inter", sans-serif;
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-detail-description {
    font-size: 20px;
    color: #1d262d;
    line-height: normal;
    margin-bottom: 30px;
    font-weight: 400;
}

.blog-detail-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 14px;
    overflow: hidden;
}

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

.blog-detail-body {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #35374B;
}

.blog-detail-body h1,
.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4,
.blog-detail-body h5,
.blog-detail-body h6 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #35374B;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-detail-body h1 {
    font-size: 36px;
}

.blog-detail-body h2 {
    font-size: 32px;
}

.blog-detail-body h3 {
    font-size: 28px;
}

.blog-detail-body h4 {
    font-size: 24px;
}

.blog-detail-body p {
    margin-bottom: 20px;
}

.blog-detail-body ul,
.blog-detail-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-detail-body li {
    margin-bottom: 10px;
}

.blog-detail-body a {
    color: #78A083;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-detail-body a:hover {
    color: #5d7f66;
}

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

.blog-detail-body blockquote {
    border-left: 4px solid #78A083;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #1d262d;
}

.blog-detail-body code {
    background: #fcfaf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Inter", sans-serif;
    font-size: 0.9em;
}

.blog-detail-body pre {
    background: #fcfaf8;
    padding: 20px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 30px 0;
}

.blog-detail-body pre code {
    background: none;
    padding: 0;
}

/* Blog Index Sidebar */
.blog-index-sidebar {
    position: sticky;
    top: 120px;
    width: 250px;
    flex-shrink: 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-left: 20px;
}

.index-title {
    font-size: 18px;
    font-weight: 600;
    color: #35374B;
    font-family: "Inter", sans-serif;
    margin-bottom: 20px;
}

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

.index-list li {
    margin-bottom: 12px;
}

.index-link {
    color: #1d262d;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.5;
    padding: 4px 0;
}

.index-link:hover {
    color: #78A083;
}

.index-link.active {
    color: #78A083;
    font-weight: 500;
    position: relative;
}

.index-link.active::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: #78A083;
    border-radius: 2px;
}

/* Scrollbar styling for sidebar */
.blog-index-sidebar::-webkit-scrollbar {
    width: 4px;
}

.blog-index-sidebar::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 8px;
}

.blog-index-sidebar::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Blog Author Info */
.blog-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px 0;
}

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

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

.blog-author-details {
    flex: 1;
}

.blog-author-name {
    font-size: 18px;
    font-weight: 600;
    color: #35374B;
    font-family: "Inter", sans-serif;
    margin-bottom: 4px;
}

.blog-author-position {
    font-size: 14px;
    color: #1d262d;
    font-weight: 400;
    margin: 0;
}

/* Blog Attachments Heading */
.blog-attachments-heading {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #35374B;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
    font-size: 32px;
}

/* Blog Content Images Grid */
.blog-content-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.blog-content-image-item {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
}

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

/* Legacy support for single images */
.blog-content-image {
    width: 100%;
    margin: 30px 0;
    border-radius: 14px;
    overflow: hidden;
}

.blog-content-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog Content Video */
.blog-content-video {
    width: 100%;
    margin: 30px 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.blog-content-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Styles */
@media (max-width: 1229px) {
    .blog-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .blog-detail-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 80px 0;
    }
    
    .blog-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 25px;
    }
    
    .blog-card-title {
        font-size: 20px;
    }
    
    .blog-detail-section {
        padding: 80px 0;
    }
    
    .blog-detail-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .blog-index-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        order: 1;
    }
    
    .blog-detail-main {
        order: 2;
    }
    
    .blog-detail-title {
        font-size: 32px;
    }
    
    .blog-detail-description {
        font-size: 18px;
    }
    
    .blog-detail-body {
        font-size: 16px;
    }
    
    .blog-detail-body h1 {
        font-size: 28px;
    }
    
    .blog-detail-body h2 {
        font-size: 24px;
    }
    
    .blog-detail-body h3 {
        font-size: 20px;
    }
    
    .blog-attachments-heading {
        font-size: 28px;
    }
    
    .blog-content-images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 18px;
    }
    
    .blog-card-description {
        font-size: 14px;
    }
    
    .blog-detail-title {
        font-size: 28px;
    }
    
    .blog-detail-description {
        font-size: 16px;
    }
    
    .blog-detail-body {
        font-size: 15px;
    }
}

