/**
 * J.TEST Philippines - Blog Theme
 * Redesigned to match the static site identity.
 * Brand: #3291cb (blue), #e5261f (red), #141924 (dark bg)
 **/

/* Reset / Base */
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

body {
  font-family: 'Poppins', -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: #f4f6f9;
  padding: 0;
  margin: 0;
}
.blog-hero a, .blog-hero a:hover,
.blog-section a, .blog-section a:hover,
.post-hero-banner a, .post-hero-banner a:hover,
.single-post-wrap a, .single-post-wrap a:hover {
  text-decoration: none;
  transition: color 0.2s ease;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.35;
  color: #1a202c;
}
img { max-width: 100%; height: auto; }

/* Blog page-title bar (listing page) */
.blog-hero {
  background: #f8f9fa;
  padding: 36px 0 28px;
  text-align: center;
}
.blog-hero h1 { color: #1a202c; font-size: 2rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.5px; }
.blog-hero .blog-hero-sub { color: #767676; font-size: 0.95rem; margin: 0; font-family: 'Poppins', sans-serif; font-weight: 400; }
.blog-hero-breadcrumb { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.82rem; font-family: 'Poppins', sans-serif; }
.blog-hero-breadcrumb a { color: #767676; }
.blog-hero-breadcrumb a:hover { color: #e5261f; text-decoration: none; }
.blog-hero-breadcrumb .sep { color: #ccc; }
.blog-hero-breadcrumb .current { color: #333; }

/* Blog content section */
.blog-section { padding: 40px 0 60px; }

/* Layout */
.blog-layout { display: flex; flex-wrap: wrap; align-items: flex-start; }
.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 12px rgba(0,0,0,0.10); transition: box-shadow 0.25s ease, transform 0.25s ease; border: none; padding: 0; }
.post-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.18); transform: translateY(-4px); }
.post-thumbnail { display: block; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; background: #d0d8e4; }
.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); }
.post-card-body { padding: 22px 26px 20px; }
.post-category { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #555; background: #edf0f4; border-radius: 4px; padding: 3px 9px; margin-bottom: 8px; font-family: 'Poppins', sans-serif; }
.post-category:hover { background: #dde2e9; text-decoration: none; }
.post-date { color: #8896a6; font-size: 0.82rem; margin: 0 0 9px 0; font-family: 'Poppins', sans-serif; }
.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: #e5261f; text-decoration: none; }
.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: #e5261f; margin-top: 12px; border-bottom: 1px solid transparent; transition: border-color 0.2s; font-family: 'Poppins', sans-serif; }
a.read-more:hover { border-bottom-color: #e5261f; text-decoration: none; }

/* Single post page-title bar */
.post-hero-banner { background: #f8f9fa; padding: 36px 0 28px; text-align: center; }
.post-hero-banner h1 { color: #1a202c; font-size: 1.75rem; font-weight: 700; margin: 0 auto 10px; padding: 0; max-width: 780px; line-height: 1.35; }
.post-meta-hero { color: #767676; font-size: 0.85rem; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; font-family: 'Poppins', sans-serif; }
.post-meta-hero a { color: #767676; }
.post-meta-hero a:hover { color: #e5261f; text-decoration: none; }

/* Single Post Wrap */
.single-post-wrap { max-width: 800px; margin: 48px auto 64px; padding: 0 24px; }
.post-featured-img { border-radius: 14px; overflow: hidden; margin: 0 0 36px; aspect-ratio: 16 / 9; background: #d0d8e4; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.post-featured-img img, .post-featured-img .post-img { width: 100%; height: 100%; object-fit: cover; display: block; }
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 #ccd3dc; background: #f7f9fc; padding: 16px 20px; margin: 1.6em 0; border-radius: 0 10px 10px 0; color: #4a5568; font-style: italic; }
article .post-content a { color: #333; border-bottom: 1px solid rgba(0,0,0,0.15); }
article .post-content a:hover { color: #000; border-bottom-color: #000; 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; font-family: 'Poppins', sans-serif; }
.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; font-family: 'Poppins', sans-serif; }
.share-btn:hover { opacity: 0.82; transform: translateY(-1px); text-decoration: none; }
.share-btn-fb { background: #1877f2; }
.share-btn-tw { background: #000; }

/* 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.15); 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; font-family: 'Poppins', sans-serif; }
.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; font-family: 'Poppins', sans-serif; }
.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 #d8dde6; border-radius: 8px; padding: 10px 24px; font-size: 0.88rem; font-weight: 600; color: #444; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: background 0.2s, box-shadow 0.2s, color 0.2s; font-family: 'Poppins', sans-serif; }
.pagination a:hover { background: #e5261f; color: #fff; border-color: #e5261f; box-shadow: 0 4px 12px rgba(229,38,31,0.25); text-decoration: none; }

/* 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.10); }
.sidebar-widget h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #1a202c; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #e5261f; font-family: 'Poppins', sans-serif; }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget ul li { border-bottom: 1px solid #f0f4f8; padding: 5px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #4a5568; }
.sidebar-widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-widget ul li a { color: #4a5568; font-size: 0.85rem; flex: 1; transition: color 0.2s; }
.sidebar-widget ul li a:hover { color: #e5261f; 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: 5px 0; font-size: 0.85rem; color: #4a5568; transition: color 0.2s; font-family: 'Poppins', sans-serif; }
.widget-item a:hover { color: #e5261f; text-decoration: none; }

/* No results */
.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.10); font-family: 'Poppins', sans-serif; }
.no-results-icon { font-size: 2.8rem; margin-bottom: 12px; }

/* Accessibility / Lighthouse */
.text-muted { color: #767676 !important; }
.btn-primary { color: #fff; }
.blog-site-title { display: none; }

/* 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; }
  .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; }
}
@media screen and (max-width: 480px) {
  .blog-hero h1, .post-hero-banner h1 { font-size: 1.45rem; }
}
