body { background-color: #f4f7f6; }

/* E-commerce Category Icons Section */
.category-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: 
      radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.8) 100%),
      repeating-linear-gradient(45deg, #2a2a2a, #2a2a2a 3px, #1a1a1a 3px, #1a1a1a 6px);
    background-color: #111;
    padding: 15px 5px;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 0 30px rgba(0,0,0,0.2);
    height: 280px;
    border: none;
    gap: 10px;
}
.category-badge {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: calc(25% - 15px); /* 4 items per row */
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 12px 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.category-badge::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #2065D1;
    transition: width 0.3s ease;
    z-index: -1;
}

.category-badge:hover {
    border-color: #2065D1;
    box-shadow: 0 5px 15px rgba(32, 101, 209, 0.2);
    transform: translateY(-3px);
}

.category-badge:hover::after {
    width: 100%;
}

.category-badge i {
    font-size: 24px;
    margin-bottom: 6px;
    color: #637381;
    transition: all 0.3s ease;
}
.category-badge:hover i {
    color: #ffffff;
}

.category-badge span {
    font-size: 11px;
    font-weight: 500;
    color: #555;
    line-height: 1.3;
}
.category-badge:hover span {
    color: #ffffff;
    font-weight: 600;
}

/* Accordion */
.custom-accordion {
    background: transparent;
    margin-bottom: 30px;
}
.acc-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: none;
    overflow: hidden;
}
.acc-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border: none;
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #639bb0; 
    cursor: pointer;
    transition: all 0.2s;
    outline: none !important;
}
.acc-trigger:hover {
    color: #3b748a;
    background: #fafcff;
}
.acc-trigger[aria-expanded="true"] {
    background: #f4f8fb;
    color: #3b748a;
    border-bottom: 1px solid #f0f0f0;
}
.acc-trigger i.icon-left {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 16px;
}
.acc-body {
    background: #fff;
}
.acc-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.acc-sublist li a {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 20px;
    color: #777;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border-top: 1px solid #fcfcfc;
}
.acc-sublist li a:hover {
    background: #fafafa;
    color: #639bb0;
    padding-left: 24px; 
}
.acc-sublist li a i {
    font-size: 9px;
    color: #639bb0;
    margin-right: 8px;
}

/* Useful Links */
.sidebar-title {
    color: #639bb0;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 30px;
}
.useful-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.useful-links-list li {
    margin-bottom: 12px;
}
.useful-links-list a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.useful-links-list a:hover {
    color: #639bb0;
}
.useful-links-list i {
    width: 24px;
    text-align: center;
    color: #aaa;
    margin-right: 8px;
}

/* Article Card Styles */
.article-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.article-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}
.article-content {
    flex: 1;
}
.article-content h3 {
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}
.article-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}
.article-content h3 a:hover {
    color: #639bb0;
}
.article-content .article-text {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}
.article-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.article-meta i {
    margin-right: 6px;
    color: #cbd5e0;
}

/* Empty State */
.empty-state {
    background: #fff;
    border-radius: 10px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.empty-state i {
    font-size: 40px;
    color: #d8d8d8;
    margin-bottom: 15px;
}
.empty-state p {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* Overriding theme slider defaults to match our design */
.top-news .tn-slider .tn-title {
    background-image: linear-gradient(rgba(0, 0, 0, .0), rgba(0, 0, 0, .4), rgba(0, 0, 0, .9));
}
.top-news .tn-slider .tn-title a {
    font-size: 24px;
    font-weight: 600;
}
.top-news .tn-slider img {
    border-radius: 12px;
    width: 100%;
    height: 280px;
    object-fit: cover;
}
