/*
Theme Name: Astra Child
Theme URI: http://example.com/
Description: Astra Child Theme
Author: Your Name
Author URI: http://example.com/
Template: astra
Version: 1.0.0
*/

/* ============================================
   GLOBAL TITLE STYLES
   ============================================ */

.articles-title {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    text-align: center !important;
    margin: 0 0 35px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #1076e3 !important;
    display: block !important;
    width: 100% !important;
}

/* ============================================
   BLOG & ARTICLES - UNIFIED CARD GRID
   ============================================ */

.articles-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    margin-top: 10px !important;
}

/* ============================================
   UNIFIED CARD DESIGN
   ============================================ */

/* Card Container */
.article-card,
.rt-holder {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    border: 1px solid #f0f0f0 !important;
}

.article-card:hover,
.rt-holder:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent !important;
}

/* Card Image */
.article-card-image,
.rt-img-holder {
    overflow: hidden !important;
    background: #f7f9fc !important;
    height: 180px !important;
    position: relative !important;
}

.article-card-image img,
.rt-img-holder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    display: block !important;
}

.article-card:hover .article-card-image img,
.rt-holder:hover .rt-img-holder img {
    transform: scale(1.03) !important;
}

/* Card Content */
.article-card-content,
.rt-detail {
    padding: 18px 20px 22px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* Card Title */
.article-card-title,
.entry-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
}

.article-card-title a,
.entry-title a {
    color: #1a1a2e !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.article-card-title a:hover,
.entry-title a:hover {
    color: #1076e3 !important;
}

/* Card Meta */
.article-card-meta,
.post-meta-tags {
    font-size: 13px !important;
    color: #888888 !important;
    margin-bottom: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 15px !important;
}

.article-card-meta span,
.post-meta-tags span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.article-card-meta strong {
    color: #1a1a2e !important;
    font-weight: 600 !important;
}

/* Hide duplicate category in meta */
.post-meta-tags .categories-links {
    display: none !important;
}

/* Card Excerpt */
.article-card-excerpt,
.tpg-excerpt {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #555555 !important;
    flex: 1 !important;
    margin: 0 0 14px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Read More Button */
.article-card-readmore,
.read-more a {
    display: inline-block !important;
    padding: 8px 20px !important;
    background: #1076e3 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    align-self: flex-start !important;
    border: none !important;
}

.article-card-readmore:hover,
.read-more a:hover {
    background: #0a5db5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 118, 227, 0.25) !important;
}

/* ============================================
   SINGLE ARTICLE PAGE
   ============================================ */

.article-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-title {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    font-size: 14px;
    color: #666666;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta strong {
    color: #1a1a2e;
    font-weight: 600;
}

.abstract-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 10px 0 12px 0;
}

.article-abstract {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 25px 30px;
    border-left: 4px solid #1076e3;
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    margin: 0 0 20px 0;
}

/* Article Actions */
.article-actions {
    margin: 25px 0 20px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 22px;
    background: #f7f9fc;
    border-radius: 10px;
    align-items: center;
    border: 1px solid #e8ecf1;
}

.download-button,
.request-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-button {
    background: #1076e3;
    color: #ffffff;
}

.download-button:hover {
    background: #0a5db5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 118, 227, 0.25);
}

.download-button:disabled {
    background: #6c757d !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.download-button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.request-button {
    background: #ff6b35;
    color: #ffffff;
}

.request-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

/* Request Form */
.request-form {
    background: #f7f9fc;
    padding: 25px 30px;
    border-radius: 10px;
    margin: 20px 0 30px 0;
    border: 1px solid #e8ecf1;
}

.request-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.request-form-description {
    font-size: 14px;
    color: #666666;
    margin-bottom: 18px;
}

/* Article Featured Image */
.article-featured-image {
    margin: 0 0 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #f7f9fc;
    max-height: 450px;
}

.article-featured-image .article-featured-img {
    width: 100% !important;
    height: auto !important;
    max-height: 450px !important;
    object-fit: cover !important;
    display: block !important;
}

/* ============================================
   SINGLE BLOG POST PAGE
   ============================================ */

.blog-post-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-post-featured-image {
    margin: 0 0 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #f7f9fc;
    max-height: 450px;
}

.blog-post-featured-image .blog-post-featured-img {
    width: 100% !important;
    height: auto !important;
    max-height: 450px !important;
    object-fit: cover !important;
    display: block !important;
}

.blog-post-title {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    font-size: 14px;
    color: #666666;
    padding: 12px 0 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-meta strong {
    color: #1a1a2e;
    font-weight: 600;
}

.blog-post-meta a {
    color: #1076e3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-meta a:hover {
    color: #0a5db5;
}

.blog-post-views {
    background: rgba(16, 118, 227, 0.08);
    padding: 3px 14px;
    border-radius: 20px;
}

.blog-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333333;
}

.blog-post-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 35px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.blog-post-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 30px 0 12px 0;
}

.blog-post-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 25px 0 10px 0;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 20px 25px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content blockquote {
    background: #f7f9fc;
    border-left: 4px solid #1076e3;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 4px;
    font-style: italic;
}

.blog-post-content blockquote p {
    margin: 0;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.blog-post-content table th {
    background: #1a1a2e;
    color: #ffffff;
    padding: 12px 15px;
    text-align: left;
}

.blog-post-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-post-content table tr:nth-child(even) {
    background: #f7f9fc;
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.blog-post-navigation .nav-previous a,
.blog-post-navigation .nav-next a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-post-navigation .nav-previous a:hover,
.blog-post-navigation .nav-next a:hover {
    color: #1076e3;
}

/* ============================================
   PAGINATION
   ============================================ */

.articles-pagination {
    margin-top: 40px;
    text-align: center;
}

.articles-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: #ffffff;
    color: #1a1a2e;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.articles-pagination .page-numbers:hover {
    background: #1076e3;
    color: #ffffff;
    border-color: #1076e3;
}

.articles-pagination .page-numbers.current {
    background: #1076e3;
    color: #ffffff;
    border-color: #1076e3;
}

.rt-pagination-wrap {
    margin-top: 40px !important;
    text-align: center !important;
}

.rt-pagination .pagination-list {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rt-pagination .pagination-list li {
    display: inline-block !important;
    margin: 0 !important;
}

.rt-pagination .pagination-list li a,
.rt-pagination .pagination-list li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #1a1a2e !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    line-height: 38px !important;
}

.rt-pagination .pagination-list li a:hover {
    background: #1076e3 !important;
    color: #ffffff !important;
    border-color: #1076e3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 118, 227, 0.25) !important;
}

.rt-pagination .pagination-list li.active span {
    background: #1076e3 !important;
    color: #ffffff !important;
    border-color: #1076e3 !important;
    box-shadow: 0 4px 12px rgba(16, 118, 227, 0.25) !important;
}

/* ============================================
   SIDEBAR STYLING
   ============================================ */

.widget-area .widget {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 25px !important;
}

.widget-area .widget-title,
.widget-area .wp-block-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #1076e3 !important;
}

.widget-area .widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget-area .widget ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.widget-area .widget ul li:last-child {
    border-bottom: none !important;
}

.widget-area .widget ul li a {
    color: #333333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 14px !important;
}

.widget-area .widget ul li a:hover {
    color: #1076e3 !important;
}

/* ============================================
   HIDE ELEMENTS
   ============================================ */

.page-header,
.ast-archive-header,
.ast-archive-title,
.entry-header {
    display: none !important;
}

/* ============================================
   RESPONSIVE - TABLET (1024px)
   ============================================ */
@media only screen and (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .articles-title {
        font-size: 28px !important;
    }
    
    .article-featured-image,
    .blog-post-featured-image {
        max-height: 350px;
    }
    
    .article-featured-image .article-featured-img,
    .blog-post-featured-image .blog-post-featured-img {
        max-height: 350px !important;
    }
    
    .article-title,
    .blog-post-title {
        font-size: 30px;
    }
    
    .rt-img-holder img {
        height: 200px !important;
    }
    
    .entry-title {
        font-size: 20px !important;
    }
    
    .tpg-excerpt {
        font-size: 15px !important;
    }
    
    .post-meta-tags {
        font-size: 13px !important;
        gap: 8px 14px !important;
    }
    
    .rt-pagination .pagination-list li a,
    .rt-pagination .pagination-list li span {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
        line-height: 34px !important;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (767px)
   ============================================ */
@media only screen and (max-width: 767px) {
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    
    .articles-title {
        font-size: 24px !important;
        margin-bottom: 25px !important;
        padding-bottom: 12px !important;
    }
    
    .article-card-image,
    .rt-img-holder {
        height: 160px !important;
    }
    
    .article-card-title,
    .entry-title {
        font-size: 17px !important;
    }
    
    .article-card-content,
    .rt-detail {
        padding: 14px 16px 18px 16px !important;
    }
    
    .article-card-excerpt,
    .tpg-excerpt {
        font-size: 13px !important;
        -webkit-line-clamp: 2 !important;
    }
    
    .article-container,
    .blog-post-container {
        margin: 25px auto;
        padding: 0 15px;
    }
    
    .article-title,
    .blog-post-title {
        font-size: 24px;
    }
    
    .article-meta,
    .blog-post-meta {
        flex-direction: column;
        gap: 6px;
        font-size: 13px;
        padding: 10px 0;
    }
    
    .article-abstract {
        padding: 18px;
        font-size: 15px;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }
    
    .download-button,
    .request-button {
        justify-content: center;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .request-form {
        padding: 18px;
    }
    
    .article-featured-image,
    .blog-post-featured-image {
        max-height: 220px;
    }
    
    .article-featured-image .article-featured-img,
    .blog-post-featured-image .blog-post-featured-img {
        max-height: 220px !important;
    }
    
    .blog-post-content {
        font-size: 15px;
    }
    
    .blog-post-content h2 {
        font-size: 22px;
    }
    
    .blog-post-content h3 {
        font-size: 19px;
    }
    
    .blog-post-navigation {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
    
    .rt-img-holder img {
        height: 190px !important;
    }
    
    .rt-detail {
        padding: 16px 16px 20px 16px !important;
    }
    
    .read-more a {
        padding: 10px 22px !important;
        font-size: 14px !important;
    }
    
    .tpg-separate-category .categories-links a {
        font-size: 11px !important;
        padding: 3px 10px !important;
    }
    
    .rt-pagination .pagination-list {
        gap: 4px !important;
        flex-wrap: wrap !important;
    }
    
    .rt-pagination .pagination-list li a,
    .rt-pagination .pagination-list li span {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        line-height: 32px !important;
        border-width: 1.5px !important;
        border-radius: 5px !important;
    }
    
    .rt-pagination-wrap {
        margin-top: 25px !important;
    }
    
    .widget-area .widget {
        padding: 15px !important;
        margin-bottom: 18px !important;
    }
    
    .widget-area .widget-title,
    .widget-area .wp-block-heading {
        font-size: 16px !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }
    
    .widget-area .widget ul li a {
        font-size: 13px !important;
    }
}

/* ============================================
   RESPONSIVE - EXTRA SMALL (400px)
   ============================================ */
@media only screen and (max-width: 400px) {
    .articles-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
    }
    
    .article-card-image,
    .rt-img-holder {
        height: 140px !important;
    }
    
    .article-card-title,
    .entry-title {
        font-size: 15px !important;
    }
    
    .article-card-excerpt,
    .tpg-excerpt {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important;
    }
    
    .article-card-readmore,
    .read-more a {
        font-size: 12px !important;
        padding: 6px 16px !important;
    }
    
    .article-title,
    .blog-post-title {
        font-size: 20px;
    }
    
    .blog-post-content {
        font-size: 14px;
    }
    
    .blog-post-content h2 {
        font-size: 19px;
    }
    
    .article-featured-image,
    .blog-post-featured-image {
        max-height: 180px;
    }
    
    .article-featured-image .article-featured-img,
    .blog-post-featured-image .blog-post-featured-img {
        max-height: 180px !important;
    }
    
    .rt-img-holder img {
        height: 160px !important;
    }
    
    .rt-detail {
        padding: 12px 12px 16px 12px !important;
    }
    
    .post-meta-tags {
        font-size: 11px !important;
        gap: 4px 8px !important;
        margin-bottom: 8px !important;
    }
    
    .read-more a {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .tpg-separate-category .categories-links a {
        font-size: 10px !important;
        padding: 2px 8px !important;
    }
    
    .rt-pagination .pagination-list {
        gap: 3px !important;
    }
    
    .rt-pagination .pagination-list li a,
    .rt-pagination .pagination-list li span {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
        line-height: 28px !important;
        border-radius: 4px !important;
    }
    
    .rt-pagination-wrap {
        margin-top: 16px !important;
    }
    
    .widget-area .widget {
        padding: 12px !important;
        margin-bottom: 14px !important;
    }
    
    .widget-area .widget-title,
    .widget-area .wp-block-heading {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        padding-bottom: 6px !important;
    }
    
    .widget-area .widget ul li {
        padding: 6px 0 !important;
    }
    
    .widget-area .widget ul li a {
        font-size: 12px !important;
    }
}


/* ============================================
   SINGLE BLOG POST - CONTAINER FIX
   ============================================ */

.blog-post-wrapper,
.article-wrapper {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.blog-post-container,
.article-container {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media only screen and (max-width: 767px) {
    .blog-post-wrapper,
    .article-wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .blog-post-container,
    .article-container {
        padding: 0 !important;
    }
}


/* ============================================
   HOMEPAGE - LATEST POSTS & ARTICLES
   ============================================ */

.latest-posts-articles-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.latest-section {
    margin-bottom: 50px;
}

.latest-section:last-child {
    margin-bottom: 0;
}

.latest-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #1076e3;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ===== LATEST CARD ===== */
.latest-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.latest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Card Image */
.latest-card-image {
    overflow: hidden;
    background: #f7f9fc;
    height: 180px;
    position: relative;
}

.latest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.latest-card:hover .latest-card-image img {
    transform: scale(1.03);
}

/* Card Content */
.latest-card-content {
    padding: 18px 20px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card Title */
.latest-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.latest-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-card-title a:hover {
    color: #1076e3;
}

/* Card Meta */
.latest-card-meta {
    font-size: 13px;
    color: #888888;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
}

.latest-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Card Excerpt */
.latest-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    flex: 1;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Button */
.latest-card-readmore {
    display: inline-block;
    padding: 8px 20px;
    background: #1076e3;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: none;
}

.latest-card-readmore:hover {
    background: #0a5db5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 118, 227, 0.25);
}

/* ===== VIEW ALL BUTTONS ===== */
.latest-view-all {
    text-align: center;
    margin-top: 25px;
}

.latest-view-all-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #1076e3;
    color: #ffffff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.latest-view-all-btn:hover {
    background: #0a5db5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 118, 227, 0.25);
}

/* ============================================
   RESPONSIVE - TABLET (1024px)
   ============================================ */
@media only screen and (max-width: 1024px) {
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .latest-section-title {
        font-size: 26px;
    }
    
    .latest-card-image {
        height: 200px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (767px)
   ============================================ */
@media only screen and (max-width: 767px) {
    .latest-posts-articles-wrapper {
        padding: 30px 15px;
    }
    
    .latest-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .latest-section-title {
        font-size: 22px;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .latest-card-image {
        height: 180px;
    }
    
    .latest-card-title {
        font-size: 17px;
    }
    
    .latest-card-content {
        padding: 14px 16px 18px 16px;
    }
    
    .latest-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .latest-view-all-btn {
        padding: 10px 28px;
        font-size: 14px;
    }
}

/* ============================================
   RESPONSIVE - EXTRA SMALL (400px)
   ============================================ */
@media only screen and (max-width: 400px) {
    .latest-posts-articles-wrapper {
        padding: 20px 12px;
    }
    
    .latest-section-title {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .latest-card-image {
        height: 150px;
    }
    
    .latest-card-title {
        font-size: 15px;
    }
    
    .latest-card-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .latest-card-readmore {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .latest-view-all-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}