/* ============================================
   Sidebar — Light Theme
   Replaces old dark (#1e1e1e) theme
   ============================================ */

/* Sidebar section card */
.sidebar-section {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Section heading */
.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a4b8c;
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: #ff9d2f;
}

/* Search */
.search-form {
    display: flex;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #dde3ec;
    border-radius: 20px 0 0 20px;
    background-color: #f5f7fa;
    color: #333;
    font-size: 14px;
}

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

.search-button {
    padding: 9px 14px;
    border: none;
    border-radius: 0 20px 20px 0;
    background-color: #1a4b8c;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #3a7bd5;
}

/* Category list */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    border-bottom: 1px solid #eef0f4;
    padding: 8px 0;
}

.category-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: #1a4b8c;
}

.category-count {
    background-color: #eef2fb;
    color: #1a4b8c;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.category-link:hover .category-count {
    background-color: #1a4b8c;
    color: #fff;
}

/* Popular / recent articles */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popular-article {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.popular-article-image {
    width: 80px;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 5px;
    flex-shrink: 0;
}

.popular-article-content {
    flex: 1;
}

.popular-article-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.popular-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popular-article-title a:hover {
    color: #1a4b8c;
}

.popular-article-meta {
    font-size: 12px;
    color: #888;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #eef2fb;
    color: #1a4b8c;
    text-decoration: none;
    border-radius: 14px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: #1a4b8c;
    color: #fff;
}

/* Sidebar ad */
.sidebar-ad {
    margin-bottom: 10px;
}

.sidebar-ad img {
    width: 100%;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.sidebar-ad img:hover {
    transform: scale(1.02);
}

/* Subscribe form */
.subscribe-form {
    margin-top: 12px;
}

.subscribe-input {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #dde3ec;
    border-radius: 20px;
    background-color: #f5f7fa;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.subscribe-input:focus {
    outline: none;
    border-color: #1a4b8c;
    background-color: #fff;
}

.subscribe-button {
    width: 100%;
    padding: 9px 14px;
    border: none;
    border-radius: 20px;
    background-color: #ff9d2f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-button:hover {
    background-color: #e08c20;
    transform: translateY(-1px);
}
