/* News Page Specific Styles */

/* Two Column Layout for News Page */
.two-column-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.two-column-layout .sidebar {
    flex: 0 0 300px;
    min-width: 250px;
}

.two-column-layout .main-news-content {
    flex: 1;
    min-width: 0;
}

/* News Item Styles */
.news-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-right: 1rem;
}

.news-item-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.news-item-image {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item-image img:hover {
    transform: scale(1.05);
}

.news-item-text {
    flex: 1;
    min-width: 0;
}

/* Visual accent for news items */
.news-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #1AAB9E, #2F2D69);
    border-radius: 2px;
    opacity: 0.7;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-item h3 {
    color: #2c3e50;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #1AAB9E;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.62rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #159a8a;
}

/* News Search Widget - Simple and Clean */
.news-search-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.news-search-form h3 {
    color: #2F2D69;
    font-size: 0.68rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #1AAB9E;
}

.search-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 0.8rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.62rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #1AAB9E;
    background: white;
}

.search-btn {
    position: absolute;
    left: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    background: #1AAB9E;
    border: none;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.54rem;
}

.search-btn:hover {
    background: #159a8a;
    transform: translateY(-50%) scale(1.05);
}

.search-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.6rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.58rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #1AAB9E;
}

.filter-select:hover {
    border-color: #1AAB9E;
}

/* News Archive - Simple and Clean */
.news-archive {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.news-archive h3 {
    color: #2F2D69;
    font-size: 0.68rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #1AAB9E;
}

.archive-year {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e9ecef;
}

.archive-year:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.archive-year-title {
    color: #2F2D69;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    padding: 0.4rem 0;
    background: white;
    border-radius: 4px;
    text-align: center;
    border-right: 3px solid #1AAB9E;
}

.archive-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
}

.archive-month {
    color: #555;
    text-decoration: none;
    font-size: 0.54rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e9ecef;
    display: block;
}

.archive-month:hover {
    color: white;
    background: #1AAB9E;
    border-color: #1AAB9E;
}

/* Responsive Design */
@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .two-column-layout .sidebar {
        flex: 1;
        min-width: auto;
    }
    
    .two-column-layout .main-news-content {
        order: -1;
    }
    
    .news-item-content {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .news-item-image {
        flex: none;
        width: 100%;
        height: 150px;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .archive-months {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    
    .archive-month {
        font-size: 0.54rem;
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .news-search-form,
    .news-archive {
        padding: 0.8rem;
    }
    
    .search-input {
        padding: 0.5rem 2rem 0.5rem 0.6rem;
        font-size: 0.58rem;
    }
    
    .search-btn {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.47rem;
    }
    
    .archive-months {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.2rem;
    }
    
    .archive-month {
        font-size: 0.51rem;
        padding: 0.3rem 0.4rem;
    }
    
    .archive-year-title {
        font-size: 0.62rem;
        padding: 0.3rem 0;
    }
}