/*
Home Page Styles - Hero Section, Article Grids, Latest Articles
*/

/* apt Hero Section */
.hero-section-apt {
    background: #fff;
    padding: 100px 0 0 0;
}

/* Adjust hero section for home page with transparent header */
.home .hero-section-apt {
    padding: 140px 0 30px 0;
}

.hero-content-apt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.hero-main-article {
    grid-column: 1;
}

.featured-article-large {
    background: #fff;
    overflow: hidden;
}

.featured-image-large {
    position: relative;
}

.featured-image-large img {
    border-radius: 5px;
    width: 100%;
    height: 427px;
    object-fit: cover;
    display: block;
}

.featured-overlay {
    position: static;
    background: #fff;
    color: #02020b;
}

.category-label-overlay {
    background: white;
    color: #1a936f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    font-family: 'Roboto Condensed', sans-serif;
}

.featured-title-overlay {
    font-size: 28px;
    font-weight: 400;
    line-height: 34px;
    margin-bottom: 10px;
    color: #02020b;
    clear: both;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.featured-title-overlay a {
    color: #02020b;
    text-decoration: none;
}

.featured-title-overlay a:hover {
    color: #1a936f;
}

.featured-excerpt-overlay {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* Hero Sidebar Articles */
.hero-sidebar-articles {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sidebar-article-item {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sidebar-article-item:hover {
    transform: translateY(-2px);
}

.sidebar-article-image img {
    width: 100%;
    height: 169px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.sidebar-category-label {
    background: white;
    color: #1a936f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
    font-family: 'Roboto Condensed', sans-serif;
}

.sidebar-article-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.sidebar-article-title a {
    color: #02020b;
    text-decoration: none;
}

.sidebar-article-title a:hover {
    color: #1a936f;
}

.sidebar-article-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Latest Articles Section */
.latest-articles-section-apt {
    padding-bottom: 40px;
    background: #fff;
}

.section-header-apt {
    text-align: left;
    margin-bottom: 40px;
    position: relative;
}

.section-title-apt {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    color: #02020b;
    background: #fff;
    padding: 0 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
    font-family: 'Roboto Condensed', sans-serif;
}

.section-header-apt::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 0;
}

/* Articles Grid */
.articles-grid-apt {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-card-apt {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.article-card-apt:hover {
    transform: translateY(-2px);
}

.article-image-apt {
    flex: 0 0 220px;
    height: 140px;
}

.article-image-apt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.article-content-apt {
    flex: 1;
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
}

.article-category {
    background: white;
    color: #1a936f;
    padding: 4px 0px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    align-self: flex-start;
    font-family: 'Roboto Condensed', sans-serif;
}

.article-title-apt {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title-apt a {
    color: #02020b;
    text-decoration: none;
}

.article-title-apt a:hover {
    color: #1a936f;
}

.article-excerpt-apt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    color: #02020b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #1a936f;
    color: white;
    border-color: #1a936f;
} 

@media (max-width: 991px) {
    .home .hero-section-apt {
        padding: 80px 0 30px 0;
    }
}

.sidebar-logo {
    width: 150px;
}