/* ===========================
   Sidebar Widgets - Modern Design
   =========================== */

/* Sidebar Container */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding-top: 0;
}

/* Widget Base Styles */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 0 !important;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    padding: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #009246;
    font-size: 1.2rem;
}

/* Trending Widget */
.trending-widget {
    background: linear-gradient(135deg, #009246 0%, #00b359 100%);
    color: white;
    padding: 0;
    overflow: hidden;
}

.trending-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    padding: 10px;
    margin-bottom: 0;
}

.trending-widget .widget-title i {
    color: #FFD700;
}

.trending-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.trending-news-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.trending-news-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.trending-news-item:last-child {
    border-bottom: none;
}

.trending-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.trending-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-news-item:hover .trending-thumb img {
    transform: scale(1.1);
}

.trending-content {
    flex: 1;
    min-width: 0;
}

.trending-title {
    display: block;
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-title:hover {
    color: #FFD700 !important;
}

.trending-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.trending-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trending-meta i {
    font-size: 11px;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #CE2B37 0%, #a01f2a 100%);
    color: white;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-content {
    padding: 10px;
}

.newsletter-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.newsletter-content h4 {
    color: white !important;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 15px;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.newsletter-form button {
    background: white;
    color: #CE2B37;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background: #FFD700;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Latest News Widget */
.latest-news-list {
    list-style: none;
    padding: 0 10px 10px;
    margin: 0;
}

.latest-news-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.latest-news-item:last-child {
    border-bottom: none;
}

.latest-news-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.latest-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-news-item:hover .latest-news-thumb img {
    transform: scale(1.1);
}

.latest-news-info {
    flex: 1;
    min-width: 0;
}

.latest-news-title {
    color: #1a1a1a !important;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-news-title:hover {
    color: #009246 !important;
}

.latest-news-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-news-date i {
    color: #009246;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0 10px 10px;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #f0f0f0;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    color: #333 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.categories-list a:hover {
    color: #009246 !important;
    transform: translateX(5px);
}

.category-name {
    flex: 1;
}

.category-count {
    background: #009246;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.categories-list a:hover .category-count {
    background: #CE2B37;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #009246 0%, #00b359 100%);
    color: white;
}

.cta-content {
    padding: 15px 10px;
    text-align: center;
}

.cta-content i {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 15px;
}

.cta-content h4 {
    color: white !important;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 20px;
    font-size: 14px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #009246;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #FFD700;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Ad Widget */
.ad-widget {
    background: #f8f9fa;
}

.ad-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    border: 2px dashed #ddd;
    margin: 20px;
    border-radius: 8px;
}

.ad-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.ad-placeholder p {
    margin: 0;
    font-size: 14px;
}