/* ===========ALL BLOG PAGE========== */

/* ALL BLOG DISPLAY */

/* All Blog Posts Section */
.all-blog-posts {
    padding: 5rem 2rem;
    background: #fbf9f4;
    position: relative;
    overflow: hidden;
}

/* Abstract diagonal stripes background */
.all-blog-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(243, 156, 18, 0.02) 0px,
        rgba(243, 156, 18, 0.02) 2px,
        transparent 2px,
        transparent 8px
    );
    pointer-events: none;
}

.all-blog-posts::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #f39c12, #e67e22, #f39c12);
}

.all-blog-posts-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.all-blog-posts-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.all-blog-posts-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
  
    border-radius: 3px;
}

.all-blog-posts-badge {
    display: inline-block;
    background: #0a192f;
    color: #f39c12;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.all-blog-posts-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0a192f;
    margin-bottom: 0.5rem;
    font-family: 'Gabarito', sans-serif;
    letter-spacing: -0.5px;
}

.all-blog-posts-highlight {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.all-blog-posts-description {
    color: #64748b;
    font-size: 0.95rem;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 500;
}

/* Grid */
.all-blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Blog Card */
.all-blog-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(243, 156, 18, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.all-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(243, 156, 18, 0.3);
}

/* Card Image */
.all-blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.all-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.all-blog-card:hover .all-blog-card-image img {
    transform: scale(1.05);
}

.all-blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Date Badge */
.all-blog-card-date {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.all-blog-card-content {
    padding: 1.2rem 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #ffffff;
    flex: 1;
}

.all-blog-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a192f;
    line-height: 1.25;
    font-family: 'Gabarito', sans-serif;
    transition: color 0.3s ease;
    margin: 0;
}

.all-blog-card:hover .all-blog-card-title {
    color: #f39c12;
}

.all-blog-card-excerpt {
    font-size: 0.87rem;
    color: #64748b;
    line-height: 1.45;
    font-family: 'Bai Jamjuree', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

/* Read More Button */
.all-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f39c12;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.4rem 0;
    width: fit-content;
}

.all-blog-card-link i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.all-blog-card:hover .all-blog-card-link {
    gap: 12px;
    color: #e67e22;
}

.all-blog-card:hover .all-blog-card-link i {
    transform: translateX(4px);
}

/* Card Variants */
.all-blog-card:nth-child(2) {
    background: linear-gradient(135deg, #0a192f, #0d2240);
}

.all-blog-card:nth-child(2) .all-blog-card-content {
    background: transparent;
}

.all-blog-card:nth-child(2) .all-blog-card-title {
    color: #ffffff;
}

.all-blog-card:nth-child(2) .all-blog-card-excerpt {
    color: rgba(255, 255, 255, 0.7);
}

.all-blog-card:nth-child(2):hover .all-blog-card-title {
    color: #f39c12;
}

.all-blog-card:nth-child(2) .all-blog-card-date {
    background: #e67e22;
    color: #0a192f;
}

.all-blog-card:nth-child(3) {
    border: 2px solid rgba(243, 156, 18, 0.15);
}

.all-blog-card:nth-child(3) .all-blog-card-date {
    background: #0a192f;
    color: #f39c12;
}

/* Loading & No Posts States */
.blog-loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.blog-loading-state i {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 1rem;
    display: block;
}

.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.no-posts-message i {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 1rem;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .all-blog-posts-grid {
        gap: 1.5rem;
    }
    
    .all-blog-card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .all-blog-posts {
        padding: 3rem 1.5rem;
    }
    
    .all-blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .all-blog-posts-title {
        font-size: 2rem;
    }
    
    .blog-loading-state {
        grid-column: span 2;
    }
    
    .no-posts-message {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .all-blog-posts {
        padding: 2rem 1rem;
    }
    
    .all-blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .all-blog-posts-title {
        font-size: 1.6rem;
    }
    
    .all-blog-card-image {
        height: 200px;
    }
    
    .all-blog-card-content {
        padding: 1rem;
    }
    
    .blog-loading-state {
        grid-column: span 1;
    }
    
    .no-posts-message {
        grid-column: span 1;
    }
}


/* =======SINGLE POST PAGE ========== */

/* Single Article Page with Sidebar */
.single-article {
    padding: 4rem 2rem;
    background: linear-gradient(150deg, #ede9e3 0%, #f7f4ef 60%, #faf8f5 100%);
    position: relative;
    min-height: 70vh;
}

.single-article::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 25, 47, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.single-article-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

/* Main Content */
.single-article-main {
    flex: 2;
    background: #fffdf7;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(243, 156, 18, 0.1);
}

/* Sidebar */
.single-article-sidebar {
    flex: 1;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(243, 156, 18, 0.08);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(243, 156, 18, 0.2);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f39c12;
    font-family: 'Gabarito', sans-serif;
    display: inline-block;
}

/* Recent Posts List */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.recent-post-item {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.25s ease;
    background: #fafafc;
}

.recent-post-item:hover {
    background: rgba(243, 156, 18, 0.06);
    transform: translateX(4px);
}

.recent-post-img {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2e2a51;
    margin-bottom: 0.2rem;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.3;
}

.recent-post-date {
    font-size: 0.78rem;
    color: #f39c12;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Services List */
.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(243, 156, 18, 0.06);
    transition: all 0.25s ease;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list li:hover {
    transform: translateX(4px);
}

.services-list li i {
    width: 28px;
    height: 28px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f39c12;
    font-size: 0.8rem;
}

.services-list li span {
    color: #0a192f;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

/* Quote Widget */
.quote-widget {
    background: linear-gradient(135deg, #0a192f, #0d2240);
    border: none;
    text-align: center;
}

.quote-widget .widget-title {
    color: #ffffff;
    border-bottom-color: #f39c12;
}

.quote-widget p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-family: 'Bai Jamjuree', sans-serif;
    line-height: 1.5;
    font-weight: 500;
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.quote-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    gap: 0.7rem;
}

/* Article Content Styles */
.article-loading {
    text-align: center;
    padding: 3rem;
}

.article-loading i {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 0.8rem;
    display: block;
}

.article-loading p {
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
}

.article-error {
    text-align: center;
    padding: 2.5rem;
}

.article-error i {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 0.8rem;
    display: block;
}

.article-error h2 {
    font-size: 1.5rem;
    color: #2d2941;
    margin-bottom: 0.8rem;
    font-family: 'Gabarito', sans-serif;
    letter-spacing: -0.8px;
}

.article-error p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.79rem;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 600;
}

.article-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: #f39c12;
}

.article-breadcrumb i {
    color: #64748b;
    font-size: 0.6rem;
}

.article-breadcrumb span {
    color: #f39c12;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0a192f;
    margin-bottom: 0.8rem;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.3;
    letter-spacing: -0.6px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(243, 156, 18, 0.12);
}

.article-date, .article-author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
}

.article-date i, .article-author i {
    color: #f39c12;
    font-size: 0.65rem;
}

.article-featured-image {
    margin: 0 0 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #334155;
    font-weight: 500;
}

.article-body h2 {
    font-size: 1.3rem;
    color: #0a192f;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-family: 'Gabarito', sans-serif;
}

.article-body h3 {
    font-size: 1.1rem;
    color: #0a192f;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.2;
}

.article-body p {
    margin-bottom: 0.8rem;
}

.article-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 0.8rem 0;
}

.article-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(243, 156, 18, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.article-share span {
    color: #64748b;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
}

.article-share a {
    width: 28px;
    height: 28px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f39c12;
    transition: all 0.25s ease;
    font-size: 0.97rem;
    text-decoration: none;
}

.article-share a:hover {
    background: #f39c12;
    color: #0a192f;
    transform: translateY(-2px);
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #0a192f;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
}

.article-back-btn:hover {
    background: #f39c12;
    color: #0a192f;
    transform: translateY(-2px);
}

.recent-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem;
    color: #64748b;
    font-size: 0.7rem;
}

.no-posts {
    color: #64748b;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.7rem;
}

/* Mobile Responsive - Smaller Fonts */
@media (max-width: 1024px) {
    .single-article-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .single-article-sidebar {
        position: static;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .single-article {
        padding: 2rem 1rem;
    }
    
    .single-article-main {
        padding: 1.2rem;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
    
    .article-body {
        font-size: 0.85rem;
    }
    
    .article-body h2 {
        font-size: 1.2rem;
    }
    
    .article-body h3 {
        font-size: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .services-list li span {
        font-size: 0.8rem;
    }
    
    .recent-post-info h4 {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .single-article {
        padding: 1.5rem 0.8rem;
    }
    
    .single-article-main {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-meta {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .article-date, .article-author {
        font-size: 0.6rem;
    }
    
    .article-body {
        font-size: 0.88rem;
        line-height: 1.55;
    }
    
    .article-body h2 {
        font-size: 1.1rem;
    }
    
    .article-body h3 {
        font-size: 0.95rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-share {
        justify-content: center;
    }
    
    .article-back-btn {
        justify-content: center;
    }
    
    .sidebar-widget {
        padding: 0.8rem;
        border-radius: 16px;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .services-list li {
        padding: 0.5rem 0;
    }
    
    .services-list li span {
        font-size: 0.85rem;
    }
    
    .services-list li i {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .recent-post-img {
        width: 65px;
        height: 65px;
    }
    
    .recent-post-info h4 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .recent-post-date {
        font-size: 0.85rem;
    }
    
    .quote-widget p {
        font-size: 0.89rem;
        line-height: 1.3;
    }
    
    .quote-btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .single-article-sidebar {
    padding: 10px;
    
    }

}


/* Caption styling */
.article-body figure figcaption,
.article-body .post-image-with-caption figcaption {
    font-style: italic;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    margin-top: -0.2rem;
    padding-bottom: 0.5rem;
}