/* Macroeconomics Page Styles */

/* Main Content Section */
.macroeconomics-content {
    padding: 60px 0;
    background-color: #f5f5f5;
    min-height: calc(100vh - 400px);
}
.hero-background {
    background: url('assets/Group_3 (2).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
}
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Main Articles Section */
.main-articles {
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.article-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-category {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 15px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-content {
    padding: 30px 40px 40px;
}

.article-meta {
    margin-bottom: 15px;
}

.article-date {
    font-size: 14px;
    color: #999999;
    font-weight: 400;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 25px;
}

.read-more-btn {
    display: inline-block;
    background-color: #333333;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    border-radius: 0;
}

.read-more-btn:hover {
    background-color: #555555;
}

/* Sidebar */
.sidebar {
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333333;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.posts-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    padding: 18px 0;
    border-bottom: 1px solid #eeeeee;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 19px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: #666666;
}

.post-date {
    font-size: 13px;
    color: #999999;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-container {
        max-width: 100%;
        padding: 0 25px;
        gap: 40px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        padding: 25px 30px 35px;
    }
}

@media (max-width: 768px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .macroeconomics-content {
        padding: 40px 0;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-content {
        padding: 20px 25px 30px;
    }
    
    .sidebar {
        position: static;
        padding: 30px 25px;
    }
    
    .main-articles {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 0 15px;
    }
    
    .macroeconomics-content {
        padding: 30px 0;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-content {
        padding: 15px 20px 25px;
    }
    
    .sidebar {
        padding: 25px 20px;
    }
    
    .article-category {
        padding: 12px 15px;
        font-size: 11px;
    }
}

/* Featured Article Section */
.featured-article-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.featured-article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.featured-article-card {
    display: flex;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-article-image {
    position: relative;
    flex: 1;
    height: 400px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-category {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 15px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-article-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article-meta {
    margin-bottom: 15px;
}

.featured-article-date {
    font-size: 14px;
    color: #999999;
    font-weight: 400;
}

.featured-article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-article-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.featured-read-more-btn {
    display: inline-block;
    background-color: #333333;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.featured-read-more-btn:hover {
    background-color: #555555;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 15px;
    text-decoration: none;
    color: #666666;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination-btn:hover {
    color: #333333;
    background-color: rgba(0, 0, 0, 0.05);
}

.pagination-btn.active {
    background-color: #333333;
    color: #ffffff;
}

.pagination-btn.active:hover {
    background-color: #555555;
}

.pagination-number {
    min-width: 40px;
    text-align: center;
}

/* Featured Article Responsive Design */
@media (max-width: 1024px) {
    .featured-article-content {
        padding: 35px;
    }
    
    .featured-article-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .featured-article-card {
        flex-direction: column;
    }
    
    .featured-article-image {
        height: 250px;
    }
    
    .featured-article-content {
        padding: 30px 25px;
    }
    
    .featured-article-title {
        font-size: 24px;
    }
    
    .featured-article-section {
        padding: 40px 0;
    }
    
    .featured-article-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .featured-article-content {
        padding: 25px 20px;
    }
    
    .featured-article-title {
        font-size: 20px;
    }
    
    .featured-article-container {
        padding: 0 15px;
    }
    
    .pagination {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

