/* Latest Articles Section Styles */
.latest-section {
    position: relative;
    padding: 120px 0;
    background-color: #fff;
    overflow: hidden;
}

.latest-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(76, 175, 80, 0.1) 2px, transparent 2px), 
                     radial-gradient(rgba(255, 160, 0, 0.1) 2px, transparent 2px);
    background-size: 30px 30px, 50px 50px;
    background-position: 0 0, 15px 15px;
    opacity: 0.5;
    z-index: 1;
}

.latest-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 20px;
}

.section-header-content {
    max-width: 600px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.5;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-view-all i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* Articles Layout */
.latest-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.latest-primary {
    grid-column: 1 / 2;
}

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

/* Article Cards */
.article-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-card-large {
    display: flex;
    flex-direction: column;
}

.article-card-small {
    display: flex;
    flex-direction: column;
}

/* Article Image */
.article-image {
    position: relative;
    overflow: hidden;
}

.article-card-large .article-image {
    height: 300px;
}

.article-card-small .article-image {
    height: 180px;
}

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

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

/* Article Date Badge */
.article-date {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.article-card-small .article-date {
    width: 50px;
    height: 50px;
}

.date-day {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.article-card-small .date-day {
    font-size: 1rem;
}

.date-month {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
    margin-top: 3px;
}

/* Article Content */
.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: white;
}

.article-card-small .article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.article-category:hover {
    color: var(--primary-dark);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.article-card-small .article-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.article-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-subtitle {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
}

.article-subtitle-small {
    color: var(--light-text);
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-style: italic;
}

.article-excerpt {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Read Buttons */
.btn-read {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.btn-read:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-read-small {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
}

.btn-read-small::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.btn-read-small i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-read-small:hover {
    color: var(--primary-dark);
}

.btn-read-small:hover::after {
    width: 100%;
}

.btn-read-small:hover i {
    transform: translateX(5px);
}

/* No Articles Message */
.no-articles {
    text-align: center;
    padding: 50px;
    background-color: #f9f9f9;
    border-radius: 15px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Decorative Shapes */
.latest-shape {
    position: absolute;
    z-index: 1;
}

.shape-1 {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(76, 175, 80, 0.05);
    border-radius: 50%;
}

.shape-2 {
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 160, 0, 0.05);
    border-radius: 50%;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .latest-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .latest-section {
        padding: 80px 0;
    }
    
    .latest-articles {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .latest-primary,
    .latest-grid {
        grid-column: 1 / -1;
    }
    
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .latest-section {
        padding: 60px 0;
    }
    
    .article-card-large .article-image {
        height: 250px;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-card-small .article-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .latest-section {
        padding: 50px 0;
    }
    
    .latest-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card-large .article-image {
        height: 200px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}