/**
 * Cotoha Real Estate Philippines – Blog Theme
 * Modern redesign matching the main site brand identity.
 *
 * Class name reference (old obfuscated → new readable):
 *   pitzpmwpij  → blog-layout
 *   kuhbrzzstr  → blog-main
 *   qirwnklhui  → blog-sidebar-col
 *   jbgfdzaqdc  → blog-pad
 *   ctvbptsved  → post-card
 *   ysfnkgaptl  → post-thumbnail
 *   xyghrxymse  → post-img
 *   gspamvhthi  → post-date
 *   kkfqzknfeg  → post-title
 *   sgyopbxzkp  → post-content
 *   roqwwmvewx  → post-featured-img
 *   mugjofznce  → sidebar-widget
 *   lnwkjxcgeq  → widget-item
 *   fhzbhccxrp  → pagination
 *   jrfyxnhgvc  → pagination-btn
 *   npakbbxlfd  → site-footer
 *   wnyvumydhz  → no-results
 *   pcigyahuwk  → visually-hidden
 *   lafvtccmju  → clearfix
 *   sidebarHR   → sidebar-divider
 *   ancvalquzt  → nav-collapse
 *   ozpvzuadmd  → nav-open
 **/

/* ─── Reset / Base ───────────────────────────────────────────── */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    "Noto Sans CJK JP", "Helvetica Neue", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2d3748;
  background-color: #f8fafc;
  padding: 0;
  margin: 0;
}

a {
  color: #4c8cf5;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #2563eb;
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.35;
  color: #1a202c;
}

img { max-width: 100%; height: auto; }

/* ─── Blog Hero Banner (listing page) ───────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #1a202c 0%, #2d3a5e 55%, #4c8cf5 100%);
  padding: 72px 0 56px;
  text-align: center;
  margin-top: 66px;
}
.blog-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.blog-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin: 0;
}
.blog-hero-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
}
.blog-hero-breadcrumb a  { color: rgba(255,255,255,0.78); }
.blog-hero-breadcrumb a:hover { color: #fff; text-decoration: none; }
.blog-hero-breadcrumb .sep { color: rgba(255,255,255,0.4); }
.blog-hero-breadcrumb .current { color: rgba(255,255,255,0.55); }

/* ─── Layout ─────────────────────────────────────────────────── */
.blog-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.blog-layout:after { content: ""; display: table; clear: both; }
.blog-container { max-width: 1200px; margin: auto; }

.blog-main {
  flex: 0 0 68%;
  max-width: 68%;
  padding-right: 12px;
}
.blog-sidebar-col {
  flex: 0 0 32%;
  max-width: 32%;
  padding-left: 12px;
}

.blog-pad { padding: 8px 4px; }

/* ─── Post Card ──────────────────────────────────────────────── */
.post-card {
  background: #ffffff;
  border-radius: 14px;
  margin: 0 0 28px 0;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  border: none;
  padding: 0;
}
.post-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,0.13);
  transform: translateY(-4px);
}

/* Thumbnail (16:9) */
.post-thumbnail {
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8ecf0;
}
.post-thumbnail a { display: block; height: 100%; }
.post-thumbnail .post-img,
.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.post-card:hover .post-thumbnail img { transform: scale(1.05); }

/* Card body */
.post-card-body { padding: 22px 26px 20px; }

/* Category badge */
.post-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4c8cf5;
  background: rgba(76,140,245,0.1);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
}
.post-category:hover { background: rgba(76,140,245,0.2); text-decoration: none; }

/* Date */
.post-date {
  color: #8896a6;
  font-size: 0.82rem;
  margin: 0 0 9px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Title */
.post-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.4;
  color: #1a202c;
}
.post-title a { color: #1a202c; }
.post-title a:hover { color: #4c8cf5; text-decoration: none; }

/* Excerpt */
.post-content {
  color: #4a5568;
  font-size: 0.92rem;
  line-height: 1.72;
  margin: 0;
}
.post-content p { margin: 0 0 12px; color: #4a5568; }

a.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #4c8cf5;
  margin-top: 12px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a.read-more:hover { border-bottom-color: #4c8cf5; text-decoration: none; }

/* ─── Post Hero Banner (single post) ────────────────────────── */
.post-hero-banner {
  background: linear-gradient(135deg, #1a202c 0%, #2d3a5e 55%, #4c8cf5 100%);
  padding: 72px 0 56px;
  text-align: center;
  margin-top: 66px;
}
.post-hero-banner h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 14px;
  max-width: 780px;
  padding: 0 20px;
  line-height: 1.35;
}
.post-meta-hero {
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.post-meta-hero a { color: rgba(255,255,255,0.72); }
.post-meta-hero a:hover { color: #fff; text-decoration: none; }

/* ─── Single Post Wrap ───────────────────────────────────────── */
.single-post-wrap {
  max-width: 800px;
  margin: 48px auto 64px;
  padding: 0 24px;
}

/* Featured image */
.post-featured-img {
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 36px;
  aspect-ratio: 16 / 9;
  background: #e8ecf0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.post-featured-img img,
.post-featured-img .post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article content */
article .post-content {
  color: #2d3748;
  font-size: 1rem;
  line-height: 1.9;
}
article .post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 2.2em 0 0.7em;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8ecf0;
}
article .post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a202c;
  margin: 1.8em 0 0.6em;
}
article .post-content p { margin-bottom: 1.4em; color: #2d3748; }
article .post-content img { border-radius: 10px; margin: 1em 0; }
article .post-content ul,
article .post-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
article .post-content li { margin-bottom: 0.4em; }
article .post-content blockquote {
  border-left: 4px solid #4c8cf5;
  background: rgba(76,140,245,0.06);
  padding: 16px 20px;
  margin: 1.6em 0;
  border-radius: 0 10px 10px 0;
  color: #3a4a6b;
  font-style: italic;
}
article .post-content a { color: #4c8cf5; border-bottom: 1px solid rgba(76,140,245,0.3); }
article .post-content a:hover { border-bottom-color: #4c8cf5; text-decoration: none; }

/* Share buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 0;
  padding: 28px 0;
  border-top: 1px solid #e8ecf0;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #8896a6;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  color: #fff !important;
  transition: opacity 0.2s, transform 0.2s;
}
.share-btn:hover { opacity: 0.82; transform: translateY(-1px); text-decoration: none; }
.share-btn-fb  { background: #1877f2; }
.share-btn-tw  { background: #000; }
.share-btn-li  { background: #0a66c2; }

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 0;
  padding-top: 36px;
  border-top: 1px solid #e8ecf0;
}
.post-nav-link {
  flex: 1;
  max-width: 48%;
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.post-nav-link:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.post-nav-link .nav-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8896a6;
  margin-bottom: 6px;
}
.post-nav-link .nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; margin-left: auto; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 32px;
  padding: 0 4px;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4c8cf5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.pagination a:hover {
  background: #4c8cf5;
  color: #fff;
  box-shadow: 0 4px 12px rgba(76,140,245,0.3);
  text-decoration: none;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  background: #4c8cf5;
  border-radius: 8px;
  padding: 10px 24px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 5px;
  transition: background 0.2s, box-shadow 0.2s;
}
.pagination-btn:hover {
  background: #2563eb;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(76,140,245,0.35);
}

/* ─── Sidebar ────────────────────────────────────────────────── */
aside { position: sticky; top: 90px; }

.sidebar-widget {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sidebar-widget h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8896a6;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f4f8;
}
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget ul li {
  border-bottom: 1px solid #f0f4f8;
  padding: 9px 0;
}
.sidebar-widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-widget ul li a {
  color: #4a5568;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.sidebar-widget ul li a:hover { color: #4c8cf5; text-decoration: none; }

.widget-item {
  border-bottom: 1px solid #f0f4f8;
  margin: 0;
}
.widget-item:last-child { border-bottom: none; }
.widget-item,
.widget-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 0.88rem;
  color: #4a5568;
  transition: color 0.2s;
}
.widget-item a:hover { color: #4c8cf5; text-decoration: none; }
.sidebar-divider { border: none; border-top: 2px solid #f0f4f8; margin: 16px 0; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #141924;
  color: rgba(255,255,255,0.6);
  border-top: none;
  padding: 0;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 28px 24px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-col { flex: 1; min-width: 170px; }
.footer-col h5 {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.52);
  font-size: 0.87rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col p {
  color: rgba(255,255,255,0.45);
  font-size: 0.83rem;
  line-height: 1.65;
  margin: 0 0 14px;
}
.footer-social {
  display: flex;
  gap: 9px;
  margin-top: 4px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.95rem;
  transition: background 0.2s;
  margin: 0;
}
.footer-social a:hover { background: #4c8cf5; color: #fff !important; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ─── Back to Top ────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: #4c8cf5;
  color: #fff !important;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(76,140,245,0.45);
  cursor: pointer;
  z-index: 999;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
#back-to-top:hover { background: #2563eb; transform: translateY(-2px); text-decoration: none; }

/* ─── Misc / Utility ─────────────────────────────────────────── */
.visually-hidden { display: none; }
.post-img { width: 100%; height: auto; }
.no-results {
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: #8896a6;
  padding: 64px 20px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.no-results-icon { font-size: 2.8rem; margin-bottom: 12px; }

/* Clearfix */
.clearfix:after { content: ""; display: table; clear: both; }
.clearfix { position: relative; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media screen and (max-width: 960px) {
  .blog-layout { flex-direction: column; }
  .blog-main,
  .blog-sidebar-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }
  aside { position: static; }
}

@media screen and (max-width: 768px) {
  .blog-hero,
  .post-hero-banner { padding: 52px 16px 40px; margin-top: 60px; }
  .blog-hero h1,
  .post-hero-banner h1 { font-size: 1.7rem; }
  .post-title { font-size: 1rem; }
  .post-card-body { padding: 16px 18px 14px; }
  .post-navigation { flex-direction: column; }
  .post-nav-link { max-width: 100%; }
  .single-post-wrap { padding: 0 16px; margin: 32px auto 40px; }
  .footer-grid { gap: 28px; }
}

@media screen and (max-width: 480px) {
  .blog-hero h1,
  .post-hero-banner h1 { font-size: 1.45rem; }
}














