/* Blog & Category List Template CSS Start */

/* ---------- Hero ---------- */
.bloglist-template-section {
	.blogbg.hero-main { background-position: bottom center; }
	.hero-text,
	.categorylist-template .hero-text { padding: 30px 0; }
	.hero-text span,
	.categorylist-template .hero-text span { font-size: 16px; line-height: 1.5; }

	/* ---------- Filter Bar ---------- */
	.filter-bar { padding: 23px 0; box-shadow: 0 10px 25px #00000012; }
	.categorylist-template .filter-bar { padding: 18px 0; }
	.filter-wrap { align-items: center; gap: 60px; }
	.filter-heading { max-width: max-content; }
	.filter-heading h5 { margin: 0; }
	.filter-nav { align-items: center; max-width: max-content; gap: 40px; }
	.filter-nav a { font-size: 16px; line-height: 25px; }
	.filter-nav a:hover { color: #ED5B3E; }
	.filter-bar-wrap { max-width: 70%; }
	.filter-row { justify-content: space-between; }
	.filter-heading-gap { gap: 60px; }

	ul#menu-blog-filter-menu { margin-bottom: 0; }
	ul#menu-blog-filter-menu li { display: inline; }
	ul#menu-blog-filter-menu li:nth-child(1) { padding-left: 0; }
	ul#menu-blog-filter-menu li:before { display: none; }
	ul#menu-blog-filter-menu li.current-menu-item a { color: #ED5B3E; }

	/* View switcher buttons (list / grid / 3-grid) */
	.filter-buttons { max-width: 50%; display: flex; align-items: center; }
	.filter-buttons > div { color: #fff; padding: 7px 14px; background-color: #001949; cursor: pointer; position: relative; font-size: 15px; }
	.filter-buttons > div:first-child { border-radius: 5px 0 0 5px; }
	.filter-buttons > div:last-child { border-radius: 0 5px 5px 0; }
	.filter-buttons > div.active { color: #001949; z-index: 1; }
	.filter-buttons > div.active:before { content: ''; height: 100%; width: 100%; background-color: #fff; position: absolute; opacity: 0.59; top: 0; left: 0; z-index: -1; }

	/* ---------- Section / Heading ---------- */
	.comm-section { padding: 60px 0; }
	.section-heading { position: relative; margin-bottom: 50px; }
	.section-heading h2 { font-size: 24px; line-height: 35px; letter-spacing: 0; font-weight: 600; margin-bottom: 12px; }
	.section-heading:after { content: ''; position: absolute; bottom: -20px; left: 0; width: 250px; height: 1px; background-color: #021849; }

	/* ---------- Featured Card ---------- */
	.featured-card { display: flex !important; align-items: center; max-height: 400px; border-radius: 10px; background-color: #fff; box-shadow: 0 10px 25px #0000000D; }
	.featured-card .featured-img { width: calc(100% - 547px); min-width: 547px; max-width: 547px; }
	.featured-card .featured-img img { width: 100%; height: 400px; object-fit: cover; object-position: top center; }
	.featured-content { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }

	/* ---------- Shared Card Parts ---------- */
	.card-tags { margin-bottom: 30px; }
	.card-tags span { display: inline-block; font-size: 12px; line-height: 12px; margin-right: 10px; padding: 5px 10px; border-radius: 5px; background-color: #F2F7FD; }
	.card-tags span a:hover { color: #ED5B3E; }
	.card-tags span.read-time { float: right; font-size: 12px; line-height: 20px; padding: 0; margin-right: 0; background: none; color: #001949C9; }
	.card-content { margin-bottom: 30px; }
	.card-content h3 a:hover,
	.card-content h6 a:hover { color: #ED5B3E !important; }
	.card-content .author-details span.publish-date:after { display: none; }

	.author-profile { display: flex; align-items: flex-end; justify-content: space-between; padding: 15px 0 0; border-top: 1px solid #00194929; }
	.author-details a { display: block; font-size: 13px; line-height: 20px; text-align: left; color: #0019498D !important; }
	.author-details a:hover { color: #ED5B3E !important; }
	.author-details span { display: block; font-size: 13px; line-height: 20px; text-align: left; color: #0019498D !important; }

	/* ---------- Editor Card ---------- */
	.editor-card-wrap { border-radius: 0 0 10px 10px; background-color: #fff; box-shadow: 0 4.4px 12px -1px rgba(19, 16, 34, 0.11); }
	.editor-card-wrap h3.card-title { font-size: 18px; font-weight: 500; line-height: 20px; }
	.editor-card-wrap h3.card-title:hover a { color: #ED5B3E; }
	.editor-card-wrap a.learn-btn { margin-left: 0; font-size: 13px; color: #ED5B3E; }
	.editor-card-wrap a.learn-btn:hover { color: #004398; }
	.card-img img { width: 100%; height: 250px; object-fit: cover; object-position: center; box-shadow: 0 4.4px 12px -1px rgba(19, 16, 34, 0.11); }

	.editor-card-row .card-content { margin-bottom: 0; padding: 27px 20px; }
	.editor-card-row .card-tags { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }

	/* ---------- Card Grid / View Filters ---------- */
	/* Default (Blog List: Editor's Pick, etc.) */
	.editor-card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
	/* 3 cards per row */
	.editor-card-row.list.js-blog-cat.threeGrid-view-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
	/* 2 cards per row */
	.editor-card-row.list.js-blog-cat.grid-view-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
	/* 1 card per row (flex layout: image left, content right) */
	.editor-card-row.list.js-blog-cat.list-view-filter { grid-template-columns: 1fr; gap: 40px; }

	.editor-card-row.list-view-filter .editor-card-wrap { position: relative; display: flex; align-items: center; width: 100%; min-height: 0; padding: 0; }
	.editor-card-row.list-view-filter .editor-card-wrap:after { content: ''; position: absolute; bottom: -20px; left: 0; width: 100%; height: 1px; background-color: #E3E3E3; }
	.editor-card-row.list-view-filter .editor-card-wrap:last-child:after { display: none; }
	.editor-card-row.list-view-filter .editor-card-wrap .card-img { flex: 0 0 214px; max-width: 214px; margin-right: 30px; }
	.editor-card-row.list-view-filter .editor-card-wrap .card-img img { height: 165px; object-position: center; center; }
	.editor-card-row.list-view-filter .editor-card-wrap .card-content { flex: 1; min-width: 0; padding: 20px 20px 20px 0; }
	.editor-card-row.list-view-filter .editor-card-wrap .author-profile { position: static; width: auto; padding: 10px 0 0; }

	/* ---------- Company News Slider ---------- */
	.company-news-slider.slick-dotted.slick-slider { margin-bottom: 0; }
	.company-news-slider .featured-card { margin-bottom: 50px; }
	.company-news-slider .featured-card-wrap { padding: 0 20px; }
	.company-news-slider a.slick-arrow.slick-prev,
	.company-news-slider a.slick-arrow.slick-next { position: absolute; top: 40%; z-index: 3; padding: 10px 16px; color: #001949; cursor: pointer; border: 2px solid #F2F7FD; border-radius: 10px; background-color: #DAF4FF; transition: all 0.4s ease; }
	.company-news-slider a.slick-arrow.slick-prev { left: 0; }
	.company-news-slider a.slick-arrow.slick-next { right: 0; }
	.company-news-slider ul.slick-dots { position: relative !important; margin-bottom: 0; }
	.company-news-slider li { padding-left: 0 !important; }
	.company-news-slider li:before { display: none; }
	.company-news-slider li button { font-size: 0; height: 12px; width: 12px; padding: 0; border: 0; box-shadow: none !important; background-color: #DAF4FF; }
	li.slick-active button,
	.company-news-slider li button:hover { background-color: #fc552e !important; }

	/* ---------- Latest Insights + Sidebar ---------- */
	.latest-insight-Row { gap: 40px; justify-content: space-between;}
	.latest-insight-wrap { max-width: calc(100% - 290px); }
	/*.latest-insight-wrap .editor-card-row { gap: 30px; }*/
	.latest-insight-wrap .editor-card-wrap { position: relative;}
	/*.latest-insight-wrap .editor-card-wrap .author-profile { position: absolute; bottom: 20px; left: 0; width: 100%; padding: 10px 20px 0; }*/
	.latest-insight-wrap .card-tags span:first-child { max-width: calc(100% - 90px); }
	.latest-insight-Row .card-img img { height: 195px; }
	.latest-insight-Row h3.card-title { font-size: 16px; line-height: 20px; margin-bottom: 20px; }
	.insight-side-bar { width: 250px; }

	.cat-list ul li { padding-left: 0; margin-bottom: 0; }
	.cat-list ul li:before { display: none; }
	.cat-list ul li a { display: block; font-size: 16px; line-height: 25px; margin-bottom: 10px; }
	.cat-list ul li a:hover { color: #ED5B3E; }

	/* ---------- Pagination ---------- */
	.pagination { display: flex; align-items: center; justify-content: center; padding-top: 50px; }
	.pagination button { padding: 15px; font-size: 20px; color: #001949; cursor: pointer; border: 0; border-radius: 5px; box-shadow: none !important; background-color: #FAFAFA; }
	.pagination button:disabled,
	.pagination button[disabled] { position: relative; cursor: not-allowed; }
	.pagination button:disabled:before,
	.pagination button[disabled]:before { content: ''; position: absolute; top: 0; left: 0; z-index: -1; width: 100%; height: 100%; background-color: #fff; opacity: 0.59; }
	#pagination-numbers { display: flex; justify-content: normal; padding: 0 30px; }
	.pagination-number { display: flex; align-items: center; justify-content: center; margin: 0 12px; padding: 4px 6px; min-width: 55px; height: 55px; font-size: 20px; color: #001949; cursor: pointer; }
	.pagination-number.active { border: 3px solid #ED5B3E; border-radius: 50%; }
	.pagination-number:hover { color: #ED5B3E; }
	.pagination .dots { display: flex; align-items: center; border: 0; }

	/* ---------- Footer CTA ---------- */
	.footer-cta-banner-wrap,
	.categorylist-template .footer-cta-banner-wrap { margin-top: 0; padding: 65px 0; background-position: bottom center !important; }

	@media only screen and (max-width: 1440px) {
	    .company-news-section .company-news-slider { max-width: 100%; margin: auto; }
	}
	@media only screen and (max-width: 1200px) {
	    .featured-card .card-content h3 { font-size: 26px; line-height: 34px; margin-bottom: 15px; }
	    .featured-card .featured-img { min-width: 50%; max-width: 50%; }
	    .company-news-slider .featured-card { display: block !important; max-height: 100%; }
	    .company-news-slider .featured-card .featured-img { min-width: 100%; max-width: 100%; }
	    .company-news-slider .featured-card .featured-img img { width: 100%; height: 100%; }
	    .editor-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	    .editor-card-wrap a.learn-btn { margin: 0;}
	    .three-grid-view-button { display: none; }
	    .grid-view-button { border-radius: 0 5px 5px 0; }
	}
	@media only screen and (max-width: 1140px) {
	    .latest-insight-wrap { max-width: calc(100% - 240px); }
	    .insight-side-bar { width: 200px; }
	}
	@media only screen and (max-width: 1023px) {
	    .insight-side-bar { display: none; }
	    .latest-insight-wrap { max-width: 100%; }
	    /* 3 cards -> 2 cards */
	    .editor-card-row.list.js-blog-cat.threeGrid-view-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
	@media only screen and (max-width: 991px) {
	    .featured-card { display: block !important; max-height: 100%; }
	    .featured-card .featured-img { min-width: 100%; max-width: 100%; }
	    .featured-content { padding: 20px; }
	    .company-news-slider .featured-card-wrap { padding: 0; }
	}
	@media only screen and (max-width: 767px) {
	    .filter-buttons { display: none; }
	    .filter-heading-gap,
	    .filter-wrap { display: block !important; }
	    .filter-heading h5 { margin-bottom: 15px; }
	    .categorylist-template ul#menu-blog-filter-menu li { display: block; padding-left: 0 !important; margin-bottom: 5px; }

	    .featured-card .featured-img img { height: 240px; }
	    .featured-card .author-avatar { text-align: left; margin: 0 0 15px; }
	    .featured-card span.author-name { text-align: left; }
	    .featured-content .post-meta { justify-content: flex-start; }
	    .card-img img { height: 150px; }

	    /* All views -> 1 card per row */
	    .editor-card-row.list.js-blog-cat.threeGrid-view-filter,
	    .editor-card-row.list.js-blog-cat.grid-view-filter,
	    .editor-card-row.list.js-blog-cat.list-view-filter { grid-template-columns: 1fr; gap: 15px; }

	    .pagination button { padding: 8px; font-size: 12px; }
	    #pagination-numbers { padding: 0 5px; }
	    .pagination-number { margin: 0 3px; padding: 0; min-width: 30px; height: 30px; font-size: 12px; }
	    .pagination-number.active { border-width: 1px; }
	}
	@media only screen and (max-width: 600px) {
	    /* List view: stack image above content */
	    .editor-card-row { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	    .editor-card-row.list-view-filter .editor-card-wrap { display: block; }
	    .editor-card-row.list-view-filter .editor-card-wrap .card-img { max-width: 100%; margin-right: 0; }
	    .editor-card-row.list-view-filter .editor-card-wrap .card-img img { height: 180px; object-position: center; }
	    .editor-card-row.list-view-filter .editor-card-wrap .card-content { padding: 20px; }
	}
	@media only screen and (max-width: 400px) {
	    ul#menu-blog-filter-menu li { display: block; padding-left: 0 !important; margin-bottom: 5px; }
	}
}
/* Blog & Category List Template CSS End */