/* =========================================================
   Cons News - Stylesheet
   Tông màu chủ đạo cam (#f1592a) theo theme Flatsome
   ========================================================= */

:root {
    --cn-orange: #f1592a;
    --cn-orange-dark: #d8481e;
    --cn-text: #2b2b2b;
    --cn-muted: #767676;
    --cn-border: #ececec;
    --cn-bg-soft: #f7f6f4;
    --cn-radius: 10px;
}

.cn-wrapper * { box-sizing: border-box; }

.cn-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.cn-breadcrumb {
    color: #ffe3d6;
    font-size: 14px;
    margin-bottom: 14px;
}
.cn-breadcrumb a { color: #ffe3d6; text-decoration: none; }
.cn-breadcrumb span { color: #fff; font-weight: 600; }

/* HERO */
.cn-hero {
    background: linear-gradient(135deg, var(--cn-orange) 0%, var(--cn-orange-dark) 100%);
    padding: 50px 20px 60px;
    text-align: center;
    margin-bottom: 0;
}
.cn-hero-inner { max-width: 1200px; margin: 0 auto; }
.cn-hero h1 {
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    margin: 0;
}

/* FILTER TABS */
.cn-filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--cn-border);
    padding: 16px 0;
    margin-bottom: 30px;
}
.cn-filter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 0 20px;
    flex-wrap: wrap;
}
.cn-filter-btn {
    background: #fbeae3;
    color: var(--cn-orange);
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
}
.cn-filter-btn.active,
.cn-filter-btn:hover {
    background: var(--cn-orange);
    color: #fff;
}

/* LAYOUT 2 COLUMNS */
.cn-content-area {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding-bottom: 60px;
}
.cn-main-col { flex: 1; min-width: 0; }
.cn-sidebar { width: 320px; flex-shrink: 0; }

/* NEWS GRID (archive) */
.cn-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 700px) {
    .cn-news-grid { grid-template-columns: 1fr; }
    .cn-content-area { flex-direction: column; }
    .cn-sidebar { width: 100%; }
}

.cn-news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--cn-radius);
    overflow: hidden;
    border: 1px solid var(--cn-border);
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}
.cn-news-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.cn-card-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--cn-bg-soft); }
.cn-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-card-body { padding: 18px; }

.cn-card-cat {
    display: inline-block;
    background: #fbeae3;
    color: var(--cn-orange);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.cn-card-body h2,
.cn-related-body h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    color: var(--cn-text);
}
.cn-card-excerpt {
    font-size: 14px;
    color: var(--cn-muted);
    line-height: 1.6;
    margin: 0 0 14px;
}
.cn-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--cn-muted);
}

/* PAGINATION */
.cn-pagination { margin-top: 30px; text-align: center; }
.cn-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--cn-border);
    text-decoration: none;
    color: var(--cn-text);
}
.cn-pagination .page-numbers.current,
.cn-pagination .page-numbers:hover {
    background: var(--cn-orange);
    color: #fff;
    border-color: var(--cn-orange);
}

/* SIDEBAR */
.cn-widget {
    background: var(--cn-bg-soft);
    border-radius: var(--cn-radius);
    padding: 20px;
    margin-bottom: 24px;
}
.cn-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
}

.cn-search-form {
    position: relative;
}
.cn-search-input {
    width: 100%;
    padding: 12px 48px 12px 14px;
    border: 1px solid var(--cn-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.cn-search-input:focus {
    outline: none;
    border-color: var(--cn-orange);
}
.cn-search-btn {
    position: absolute;
    right: -15px;
    top: 35%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cn-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background .2s ease;
}
.cn-search-btn:hover {
    background: var(--cn-orange-dark);
}

.cn-featured-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 14px;
}
.cn-featured-item:last-child { margin-bottom: 0; }
.cn-featured-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e9e9e9;
}
.cn-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cn-featured-info { display: flex; flex-direction: column; justify-content: center; }
.cn-featured-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--cn-text);
}
.cn-featured-date { font-size: 12px; color: var(--cn-muted); margin-top: 4px; }

.cn-widget-cats ul { list-style: none; margin: 0; padding: 0; }
.cn-widget-cats li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--cn-border);
}
.cn-widget-cats li:last-child { border-bottom: none; }
.cn-widget-cats a { color: var(--cn-orange); text-decoration: none; font-weight: 600; font-size: 14px; }
.cn-cat-count { color: var(--cn-muted); font-size: 13px; }

.cn-widget-newsletter {
    background: var(--cn-orange);
    color: #fff;
}
.cn-widget-newsletter h3 { color: #fff; }
.cn-widget-newsletter p { font-size: 13px; opacity: .9; margin-bottom: 16px; }
.cn-btn-newsletter {
    display: block;
    text-align: center;
    background: #fff;
    color: var(--cn-orange);
    font-weight: 700;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
}

/* SINGLE PAGE */
.cn-single-main { max-width: 100%; }
.cn-single-wrapper{padding-top:40px;}
.cn-single-cat {
    display: inline-block;
    background: #e6f7f1;
    color: #0e9b6e;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.cn-single-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px;
}
.cn-single-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--cn-muted);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cn-border);
    margin-bottom: 24px;
}
.cn-single-thumb {
    border-radius: var(--cn-radius);
    overflow: hidden;
    margin-bottom: 26px;
}
.cn-single-thumb img { width: 100%; display: block; }
.cn-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--cn-text);
}
.cn-single-content p { margin: 0 0 18px; }
.cn-single-content img { max-width: 100%; border-radius: 8px; }

/* SHARE BOX */
.cn-share-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 36px 0 30px;
    padding-top: 24px;
    border-top: 1px solid var(--cn-border);
}
.cn-share-label { font-weight: 600; margin-right: 6px; }
.cn-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}
.cn-share-fb { background: #1877f2; }
.cn-share-tw { background: #1d9bf0; }
.cn-share-mail { background: #ea4335; }
.cn-share-copy { background: #34a853; }

/* RELATED POSTS */
.cn-related-posts h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}
.cn-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 700px) {
    .cn-related-grid { grid-template-columns: 1fr; }
}
.cn-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--cn-border);
    border-radius: var(--cn-radius);
    overflow: hidden;
}
.cn-related-thumb { aspect-ratio: 16/10; background: var(--cn-bg-soft); overflow: hidden; }
.cn-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cn-related-body { padding: 14px; }
