/*
Theme Name: ACS Blog
Description: Blog theme for Aircon Cooling Systems. Header/footer mirror the main PHP site; all nav links point to https://airconcooling.com/. Posts per page: see ACS_POSTS_PER_PAGE in functions.php.
Version: 2.0
Author: ACS
Text Domain: acs-blog
*/

:root { --acs-navy: #18345e; --acs-orange: #f47d35; --acs-radius: 12px; }
body { background: #fff; color: #555; }

/* ---------- Hero ---------- */
.acs-hero { position: relative; background-size: cover; background-position: center; padding: 110px 0 100px; text-align: center; color: #fff; }
.acs-hero-small { padding: 70px 0; }
.acs-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,52,94,.82), rgba(24,52,94,.9)); }
.acs-hero .container { position: relative; z-index: 1; max-width: 860px; }
.acs-hero h1 { color: #fff; font-size: 46px; line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
.acs-hero-small h1 { font-size: 36px; }
.acs-hero p, .acs-hero-desc { color: #dbe4f1; font-size: 18px; margin: 0 auto 26px; max-width: 640px; }
.acs-hero-tag { display: inline-block; background: var(--acs-orange); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; padding: 4px 18px; border-radius: 100px; margin-bottom: 16px; text-decoration: none; line-height: 28px; }
.acs-hero-meta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; color: #dbe4f1; font-size: 15px; margin-top: 10px; }
.acs-hero .acs-search { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 100px; padding: 5px; }
.acs-hero .acs-search input { border: 0; background: transparent; box-shadow: none; padding: 8px 20px; }

/* ---------- Search form ---------- */
.acs-search { display: flex; gap: 8px; }
.acs-search input[type=search] { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; margin: 0; }
.acs-search button { background: var(--acs-orange); color: #fff; border: 0; border-radius: 8px; padding: 0 18px; cursor: pointer; }
.acs-hero .acs-search button { border-radius: 100px; }

/* ---------- Layout ---------- */
.acs-blog-wrap { padding: 60px 0 70px; }
.acs-catbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 45px; }
.acs-catbar a { padding: 6px 20px; line-height: 28px; border-radius: 100px; background: #eef2f8; color: var(--acs-navy); font-weight: 600; font-size: 14px; text-decoration: none; transition: .25s; }
.acs-catbar a:hover, .acs-catbar a.on { background: var(--acs-orange); color: #fff; }

/* ---------- Grid cards ---------- */
.acs-grid > div { margin-bottom: 32px; }
.acs-card { height: 100%; background: #fff; border: 1px solid #eceff4; border-radius: var(--acs-radius); padding: 14px; transition: box-shadow .3s, transform .3s; display: flex; flex-direction: column; }
.acs-card:hover { box-shadow: 0 14px 34px rgba(24,52,94,.12); transform: translateY(-4px); }
.acs-card-img { display: block; overflow: hidden; border-radius: var(--acs-radius); aspect-ratio: 800 / 520; }
.acs-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--acs-radius); transition: transform .5s; }
.acs-card:hover .acs-card-img img { transform: scale(1.06); }
.acs-card-body { padding: 18px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.acs-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #888; margin-bottom: 8px; line-height: 22px; }
.acs-meta i { color: var(--acs-orange); margin-right: 3px; }
.acs-cat { background: #fff3ea; color: var(--acs-orange); font-weight: 600; padding: 0 12px; border-radius: 100px; text-decoration: none; }
.acs-card h2 { font-size: 21px; line-height: 1.4; font-weight: 600; margin: 0 0 10px; }
.acs-card h2 a { color: var(--acs-navy); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acs-card h2 a:hover { color: var(--acs-orange); }
.acs-card p { font-size: 15px; line-height: 26px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acs-readmore { margin-top: auto; color: var(--acs-orange); font-weight: 600; text-decoration: none; font-size: 15px; }
.acs-readmore:hover { color: var(--acs-navy); }

/* ---------- Pagination ---------- */
.acs-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 25px; }
.acs-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dde3ec; border-radius: var(--acs-radius); color: var(--acs-navy); font-weight: 600; text-decoration: none; transition: .25s; }
.acs-pagination a.page-numbers:hover { background: var(--acs-orange); border-color: var(--acs-orange); color: #fff; }
.acs-pagination .current { background: var(--acs-navy); border-color: var(--acs-navy); color: #fff; }
.acs-pagination .dots { border: 0; }

/* ---------- Single post ---------- */
.acs-single .featured { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--acs-radius); margin: 0 0 30px; display: block; }
.acs-single .entry-content { font-size: 17px; line-height: 1.85; color: #555; }
.acs-single .entry-content p { margin-bottom: 22px; }
.acs-single .entry-content img { max-width: 100%; height: auto; border-radius: var(--acs-radius); }
.acs-single .entry-content h2, .acs-single .entry-content h3, .acs-single .entry-content h4 { color: var(--acs-navy); margin: 34px 0 14px; font-weight: 700; line-height: 1.3; }
.acs-single .entry-content h2 { font-size: 28px; }
.acs-single .entry-content h3 { font-size: 22px; }
.acs-single .entry-content ul, .acs-single .entry-content ol { margin: 0 0 22px 22px; padding-left: 10px; }
.acs-single .entry-content ul { list-style: disc; }
.acs-single .entry-content ol { list-style: decimal; }
.acs-single .entry-content li { margin-bottom: 6px; }
.acs-single .entry-content blockquote { border-left: 4px solid var(--acs-orange); background: #f6f8fb; padding: 18px 24px; border-radius: 0 var(--acs-radius) var(--acs-radius) 0; margin: 28px 0; color: var(--acs-navy); font-style: italic; }
.acs-single .entry-content a { color: var(--acs-orange); }
.acs-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.acs-tags a { background: #eef2f8; color: var(--acs-navy); padding: 0 16px; line-height: 32px; border-radius: 100px; font-size: 14px; text-decoration: none; }
.acs-tags a:hover { background: var(--acs-orange); color: #fff; }
.acs-share { margin-top: 30px; padding-top: 22px; border-top: 1px solid #eceff4; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.acs-share a { color: var(--acs-navy); font-weight: 600; text-decoration: none; }
.acs-share a:hover { color: var(--acs-orange); }
.acs-postnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; }
.acs-postnav > div { flex: 1; }
.acs-postnav a { color: var(--acs-navy); font-weight: 600; text-decoration: none; line-height: 1.4; display: inline-block; }
.acs-postnav a:hover { color: var(--acs-orange); }

/* ---------- Sidebar ---------- */
.acs-sidebar { position: sticky; top: 130px; }
.acs-sidebar .widget { border: 1px solid #eceff4; border-radius: var(--acs-radius); padding: 24px; margin-bottom: 28px; background: #fff; }
.acs-sidebar .widget-title { color: var(--acs-navy); font-size: 19px; font-weight: 700; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--acs-orange); display: inline-block; }
.acs-sidebar ul { list-style: none; padding: 0; margin: 0; }
.acs-sidebar a { color: #333; text-decoration: none; }
.acs-sidebar a:hover { color: var(--acs-orange); }
.acs-cats li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed #e4e8ef; }
.acs-cats li:last-child, .acs-recent li:last-child { border-bottom: 0; }
.acs-cats span { background: #eef2f8; color: var(--acs-navy); font-size: 12px; min-width: 28px; line-height: 24px; text-align: center; border-radius: 100px; }
.acs-recent li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #e4e8ef; align-items: center; }
.acs-recent .thumb { flex: 0 0 82px; width: 82px; height: 66px; display: block; }
.acs-recent .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--acs-radius); display: block; }
.acs-recent li > div a { font-weight: 600; line-height: 1.4; color: var(--acs-navy); display: block; font-size: 15px; }
.acs-recent small { color: #999; font-size: 12px; }
.acs-cta { background: var(--acs-navy); border-color: var(--acs-navy) !important; }
.acs-cta .widget-title, .acs-cta p { color: #fff; }
.acs-sidebar a.btn { color: #fff; }

/* ---------- Comments ---------- */
.acs-comments { margin-top: 50px; }
.acs-comments .comment-list { list-style: none; padding: 0; }
.acs-comments textarea, .acs-comments input[type=text], .acs-comments input[type=email], .acs-comments input[type=url] { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 12px; }
.acs-comments input[type=submit] { background: var(--acs-orange); color: #fff; border: 0; border-radius: 8px; padding: 10px 22px; cursor: pointer; }

@media (max-width: 991px) {
	.acs-hero { padding: 80px 0 70px; }
	.acs-hero h1 { font-size: 34px; }
	.acs-hero-small h1 { font-size: 28px; }
	.acs-sidebar { position: static; margin-top: 40px; }
}
@media (max-width: 575px) {
	.acs-hero h1 { font-size: 28px; }
	.acs-blog-wrap { padding: 40px 0 50px; }
}

/* ---------- Fixes ---------- */
.acs-ico { vertical-align: -2px; display: inline-block; }
.acs-readmore .acs-ico { margin-left: 4px; transition: transform .25s; }
.acs-readmore:hover .acs-ico { transform: translateX(4px); }
.acs-meta .acs-ico { color: var(--acs-orange); margin-right: 3px; }
.acs-hero-meta .acs-ico { margin-right: 4px; }
.acs-sidebar .widget.acs-cta { background: var(--acs-navy); border-color: var(--acs-navy); }
.acs-sidebar .acs-cta .widget-title { color: #fff; }
.acs-sidebar .acs-cta p { color: #dbe4f1; }
