/* =====================================================
   123 iSmile — Blog-specific styles
   Loaded on top of the main site's /css/styles.css
   ===================================================== */

/* ── Fix GeneratePress nav list overrides ─────────── */
html body ul.nav-links,
html body ul.nav-links li,
html body .navbar ul.nav-links,
html body .navbar ul.nav-links li,
html body .header ul.nav-links li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

html body ul.nav-links li::before,
html body ul.nav-links li::after,
html body ul.nav-links li::marker {
  display: none !important;
  content: "" !important;
  width: 0 !important;
}

html body .nav-links {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* ── Fix mobile panel to match main site ──────────── */
.mobile-nav-panel {
  background: #fff !important;
}

.mobile-panel-header {
  background: #fff !important;
  border-bottom: 1px solid #e8f0eb !important;
}

.mobile-panel-close {
  background: none !important;
  color: #333 !important;
}

.mobile-panel-close svg path {
  stroke: #333 !important;
}

.mobile-panel-cta {
  background: #0cab52 !important;
  color: #fff !important;
  border-color: #0cab52 !important;
}

.mobile-panel-nav ul li a,
.mobile-panel-nav ul li button {
  color: #1a2e22 !important;
  background: none !important;
}

.mobile-dropdown-toggle {
  background: none !important;
  color: #1a2e22 !important;
}

/* Highlight Blog in nav */
.nav-links a.active-blog, .mobile-panel-nav a.active-blog {
    color: #f2f7f5 !important;
    font-weight: 600;
}

/* ── Reset GeneratePress defaults ─────────────────── */

/* Body top padding for fixed navbar */
body {
  padding-top: 80px !important;
  margin: 0 !important;
  background: var(--white, #f2f7f5) !important;
}

/* Remove GP page wrapper padding */
#page,
.site,
#content,
.site-content,
.content-area,
.site-main {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

div#right-sidebar {
  display: none !important;
}

/* Remove default GP header/nav/footer */
.site-header,
.main-navigation,
.generate-back-to-top,
.site-footer,
#colophon {
  display: none !important;
}

/* Remove GP before/after content wrappers */
.generate-before-header-wrap,
.generate-after-header-wrap {
  display: none !important;
}

/* ── Blog Page Banner ─────────────────────────────── */
.blog-banner {
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f5ee 100%);
  padding: 64px 24px;
  text-align: center;
}

.blog-banner h1 {
  font-size: 42px;
  font-weight: 700;
  color: #1a2e22;
  margin: 0 0 12px;
}

.blog-banner p {
  font-size: 18px;
  color: #4a6455;
  margin: 0;
}

@media (max-width: 768px) {
  .blog-banner h1 { font-size: 28px; }
  .blog-banner p  { font-size: 16px; }
}

/* ── Blog Grid ────────────────────────────────────── */
.blog-section {
  padding: 80px 24px;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Blog Card ────────────────────────────────────── */
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e8f0eb;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(12,171,82,0.12);
}

.blog-card__image {
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__date {
  font-size: 13px;
  color: #0cab52;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card__title {
  font-size: 19px;
  font-weight: 700;
  color: #1a2e22;
  margin: 0 0 10px;
  line-height: 1.4;
  transition: color 0.2s;
}

.blog-card:hover .blog-card__title {
  color: #0cab52;
}

.blog-card__excerpt {
  font-size: 14px;
  color: #5a7060;
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0cab52;
  text-decoration: none !important;
  margin-top: auto;
  transition: gap 0.2s;
}

.blog-card__link::after {
  content: '→';
  transition: transform 0.2s;
}

.blog-card:hover .blog-card__link::after {
  transform: translateX(4px);
}

/* ── Pagination ───────────────────────────────────── */
.blog-pagination {
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span,
.blog-pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1a2e22 !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border: 1.5px solid #d4e8da !important;
  transition: all 0.2s !important;
  line-height: 1 !important;
}

.blog-pagination a:hover,
.blog-pagination .page-numbers:hover {
  background: #0cab52 !important;
  color: #fff !important;
  border-color: #0cab52 !important;
}

.blog-pagination .current,
.blog-pagination span.current {
  background: #0cab52 !important;
  color: #fff !important;
  border-color: #0cab52 !important;
}

.blog-pagination .dots,
.blog-pagination span.dots {
  background: transparent !important;
  border-color: transparent !important;
  color: #888 !important;
}

/* ── Single Post ──────────────────────────────────── */
.single-post-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 90px 24px 80px;
}

.single-post-banner {
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f5ee 100%);
  padding: 60px 24px 48px;
  text-align: center;
}

.single-post-banner h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1a2e22;
  margin: 0 0 12px;
  line-height: 1.35;
}

.single-post-banner .post-meta {
  font-size: 14px;
  color: #0cab52;
  font-weight: 600;
}

@media (max-width: 768px) {
  .single-post-banner h1 { font-size: 24px; }
  .single-post-wrap      { padding: 40px 16px 60px; }
}

/* Post content typography */
.entry-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1a2e22;
  margin: 36px 0 14px;
}

.entry-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a2e22;
  margin: 28px 0 12px;
}

.entry-content p {
  font-size: 16px;
  color: #4a5a50;
  line-height: 1.75;
  margin: 0 0 18px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
  color: #4a5a50;
  line-height: 1.75;
}

.entry-content img {
  border-radius: 12px;
  margin: 24px 0;
}

.entry-content a {
  color: #0cab52;
  text-decoration: underline !important;
}

/* Featured image */
.featured-image.page-header-image-single {
  margin: 0 0 32px;
}

.featured-image.page-header-image-single img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 14px;
}

/* Hide GP post title/meta (we show our own) */
header.entry-header {
  display: none;
}

/* ── Single Post ──────────────────────────────────── */
/* Compact hero for single post */
.single-page-hero {
  padding: 32px 24px !important;
  min-height: unset !important;
}

.single-post-meta {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
}

/* Title below hero inside content */
.single-post-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a2e22;
  line-height: 1.3;
  margin: 0 0 28px;
}

@media (max-width: 768px) {
  .single-post-title { font-size: 26px; }
}

.single-post-section {
  background: #fff;
  padding: 60px 24px 0px;
}

.single-post-wrap {
  max-width: 1300px;
  margin: 0 auto;
}

.single-post-thumb {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.single-post-thumb img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.single-post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #3a4a40;
}

.single-post-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a2e22;
  margin: 40px 0 16px;
  line-height: 1.3;
}

.single-post-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1a2e22;
  margin: 32px 0 12px;
}

.single-post-content p {
  margin: 0 0 20px;
}

.single-post-content ul, .single-post-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
    margin-left: 0;
}

.single-post-content li {
  margin-bottom: 8px;
}

.single-post-content img {
  border-radius: 12px;
  margin: 24px 0;
  max-width: 100%;
  height: auto;
}

.single-post-content a {
  color: #0cab52;
  text-decoration: underline !important;
}

.single-post-content blockquote {
  border-left: 4px solid #0cab52;
  padding: 16px 24px;
  margin: 28px 0;
  background: #f0f7f4;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #4a6455;
}

/* Post navigation */
.single-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid #e8f0eb;
  flex-wrap: wrap;
}

.post-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid #0cab52;
  color: #0cab52 !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.post-nav-btn:hover {
  background: #0cab52 !important;
  color: #fff !important;
}

.post-nav-next {
  margin-left: auto;
}

@media (max-width: 768px) {
  .single-post-content h2 { font-size: 22px; }
  .single-post-content h3 { font-size: 18px; }
  .single-post-thumb img { max-height: 280px; }
  .single-post-nav { flex-direction: column; align-items: center; }
  .post-nav-next { margin-left: 0; }
}

/* Hide GP default post elements */
header.entry-header,
.featured-image.page-header-image-single,
.post-navigation,
.entry-footer,
nav.post-navigation {
  display: none !important;
}

/* ── Blog CTA Strip ───────────────────────────────── */
.blog-cta-strip {
  background: linear-gradient(135deg, #0a8a40 0%, #0cab52 100%);
  padding: 60px 24px;
  text-align: center;
  color: #fff;
}

.blog-cta-strip h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.blog-cta-strip p {
  font-size: 17px;
  margin: 0 0 28px;
  opacity: 0.9;
}
.post-template-default section.page-hero.single-page-hero {
    display: none;
}