.hc-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
	width: 1680px;
    max-width: 90%;
    margin: 150px auto 40px;
    padding: 0 20px;
	
}

.hc-main {
    min-width: 0;
}

.hc-sidebar-area {
    position: relative;
}

/* POST CONTENT */
/* decmial ordered list */
.hc-content ol {
  list-style-type: none;
  counter-reset: item;
  margin: 0;
  padding: 0;
}
 
.hc-content ol > li {
  display: table;
  counter-increment: item;
  margin-bottom: 0.6em;
}
 
.hc-content ol > li:before {
  content: counters(item, ".") ". ";
  display: table-cell;
  padding-right: 0.6em;    
}
 
.hc-content li ol > li {
  margin: 0;
}
.hc-content li ol > li:before {
  content: counters(item, ".") " ";
}

.hc-content a {
    color: #1568aa !important;
    text-decoration: underline;
}

.hc-content ul {
	list-style-type: disc !important;
	margin-bottom: 1em !important;
}

/* =========================
   SEARCH (FIXED LAYERING)
========================= */

.hc-search-wrap {
    position: relative;
    z-index: 999;
    max-width: 600px;
    margin: 0 auto;
}

#hc-search {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}
.hc-search-results {
	z-index: 999999;
}
.hc-search-results li {
    padding: 10px 12px;
	z-index: 999999;
    border-bottom: 1px solid #f1f1f1;
}

.hc-search-results li:last-child {
    border-bottom: none;
}

.hc-search-results a {
    color: #333 !important;
    text-decoration: none;
}

.hc-search-results a:hover {
    color: #1568aa !important;
}

#hc-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999999;
    display: none;
    background: #fff;

    list-style: none !important;
    margin-top: 8px;
    padding: 0;

    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.hc-search-wrap {
    position: relative;
}

/* =========================
   CATEGORIES
========================= */

.hc-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hc-category {
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}
.hc-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hc-category-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hc-category-header h3 {
    margin: 0;
    font-size: 18px;
}

.hc-count {
    font-size: 13px;
    color: #888;
}

.hc-category-description {
    color: #333 !important;
    margin: 10px 0 15px;
    line-height: 1.5;
}

.hc-category-articles {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.hc-category-articles li {
    margin-bottom: 8px;
}

.hc-category-articles a {
    text-decoration: none;
    color: #333 !important;
}

.hc-category-articles a:hover {
    color: #2da86d !important;
}

.hc-view-all {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #1568aa !important;
    text-decoration: none;
}

.hc-view-all:hover {
    text-decoration: underline;
}


/* =========================
   ARTICLES GRID
========================= */

.hc-articles ul {
    list-style: none !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* GRID */
.hc-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* CARD */
.hc-article-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

/* hover effect */
.hc-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

/* link reset */
.hc-article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* title */
.hc-article-title {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333;
}

/* excerpt */
.hc-article-excerpt {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* read more */
.hc-article-link {
    font-size: 13px;
    font-weight: 600;
    color: #1568aa !important;
}

/* =========================
   SIDEBAR
========================= */

.hc-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.hc-sidebar h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.hc-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hc-sidebar-list li {
    margin-bottom: 10px;
}

.hc-sidebar-list a {
    text-decoration: none;
    color: #333;
}

.hc-sidebar-list li.active a {
    font-weight: bold;
    color: #1568aa !important;
}

/* =========================
   BREADCRUMBS
========================= */

/* BREADCRUMBS */
.hc-breadcrumbs {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.hc-breadcrumbs a {
    color: #1568aa;
    text-decoration: none;
}

.hc-breadcrumbs a:hover {
    text-decoration: underline;
}

.hc-breadcrumbs span {
    margin: 0 6px;
    color: #bbb;
}

.hc-breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

/* =========================
   CONTENT LINKS
========================= */

.hc-content a {
    color: #1568aa !important;
    text-decoration: underline;
}

/* =========================
   SLIDER (SWIPER FIXED)
========================= */

.hc-popular-slider {
    position: relative;
    z-index: 1; /* IMPORTANT: keep below search */
    padding: 40px !important;
}

/* Slide cards */
.hc-slide {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    height: auto;
}

/* Make slide content clickable area safe */
.hc-slide a,
.hc-slide-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* Read more */
.hc-read-more {
    display: inline-block;
    margin-top: 10px;
    color: #1568aa !important;
    font-weight: 600;
}

/* =========================
   SWIPER NAVIGATION (FIXED)
========================= */

.swiper-button-next,
.swiper-button-prev {
    width: 36px !important;
    height: 36px !important;

    color: #1568aa !important;

    top: 50% !important;
    transform: translateY(-50%);
}

/* Clean arrow style */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px;
    font-weight: bold;
}

.hc-popular-slider .swiper-pagination {
    bottom: 0px !important;
    position: absolute;
    left: 0;
    width: 100%;
}

/* inactive dots */
.swiper-pagination-bullet {
    background: #d6d6d6;
    opacity: 1;
}

/* active dot */
.swiper-pagination-bullet-active {
    background: #1568aa !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .hc-category-grid {
        grid-template-columns: repeat(1, 1fr);
    }
	.hc-articles-grid {
		grid-template-columns: repeat(1, 1fr);
	}
    .hc-articles ul {
        grid-template-columns: 1fr;
    }
	.hc-layout {
		margin-top: 100px;
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

#hc-results:empty {
    display: none;
}
