/* ==========================================================================
   Hints, Tips & Stories (Blog Page) - Dedicated Stylesheet
   Market Your Daycare (Brand Aligned Palette: Vibrant Red #D01F17, Soft Cream/Rose #FFF5F5, Clean White #FFFFFF)
   ========================================================================== */

/* Header Consistency on Blog Page */
.site-header {
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Breadcrumbs Section */
.blog-breadcrumbs-wrap {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
}

.blog-breadcrumbs a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-breadcrumbs a:hover {
  color: #d01f17;
}

.blog-breadcrumbs .sep {
  color: #cbd5e1;
}

.blog-breadcrumbs .current {
  color: #d01f17;
  font-weight: 700;
}

/* Blog Hero Section (Brand Aligned Background Image & Glass Overlay) */
.blog-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 245, 245, 0.88) 50%, rgba(255, 255, 255, 0.82) 100%),
              url('https://i.pinimg.com/1200x/ec/36/31/ec363143879b1199bc5a069fb178220c.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  color: #0f172a;
  border-bottom: 1px solid #fee2e2;
  box-shadow: inset 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(208, 31, 23, 0.08) 0%, rgba(208, 31, 23, 0) 70%);
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.06) 0%, rgba(234, 88, 12, 0) 70%);
  pointer-events: none;
}

.blog-hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.blog-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(208, 31, 23, 0.3);
  color: #d01f17;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(208, 31, 23, 0.08);
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 32px;
  }
}

.blog-hero-title span {
  color: #D01F17;
  background: none;
  -webkit-text-fill-color: #D01F17;
}

.blog-hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 32px;
  font-weight: 400;
}

/* Search & Filter Toolbar (Sticky Below Site Header) */
.blog-filter-section {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 104px;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: top 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 768px) {
  .blog-filter-section {
    top: 80px;
    padding: 12px 0;
  }
}

.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 440px;
}

.blog-search-input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-size: 14.5px;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.blog-search-input:focus {
  outline: none;
  border-color: #d01f17;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(208, 31, 23, 0.12);
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

.blog-categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.blog-categories-scroll::-webkit-scrollbar {
  display: none;
}

.blog-cat-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.blog-cat-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.blog-cat-pill.is-active {
  background: #d01f17;
  border-color: #d01f17;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(208, 31, 23, 0.25);
}

.blog-count-badge {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 600;
}

/* Featured Article Banner Card */
.featured-story-section {
  padding: 48px 0 32px;
}

.featured-story-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

@media (max-width: 900px) {
  .featured-story-card {
    grid-template-columns: 1fr;
  }
}

.featured-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.featured-story-img-wrap {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.featured-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-story-card:hover .featured-story-img {
  transform: scale(1.04);
}

.featured-badge-top {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #d01f17;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(208, 31, 23, 0.3);
}

.featured-story-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  .featured-story-body {
    padding: 24px;
  }
}

.story-cat-tag {
  font-size: 12px;
  font-weight: 800;
  color: #d01f17;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.featured-story-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-story-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 24px;
}

.story-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.story-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.story-read-btn {
  margin-top: 24px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #d01f17;
  transition: gap 0.2s ease;
}

.featured-story-card:hover .story-read-btn {
  gap: 12px;
}

/* Articles Grid Section */
.blog-grid-section {
  padding: 32px 0 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.blog-card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f1f5f9;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #d01f17;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(208, 31, 23, 0.3);
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: #d01f17;
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-author-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.blog-author-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.blog-read-time {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Pagination Bar */
.blog-pagination {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blog-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-page-btn:hover:not(:disabled) {
  border-color: #d01f17;
  color: #d01f17;
  background: #fff5f5;
}

.blog-page-btn.is-active {
  background: #d01f17;
  border-color: #d01f17;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(208, 31, 23, 0.3);
}

.blog-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Article Reader Modal */
.blog-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.blog-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.blog-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.blog-modal-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.blog-modal-overlay.is-visible .blog-modal-container {
  transform: translateY(0);
}

.blog-modal-close {
  position: sticky;
  top: 16px;
  right: 16px;
  float: right;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f172a;
  transition: all 0.2s ease;
}

.blog-modal-close:hover {
  background: #fff5f5;
  color: #d01f17;
  transform: scale(1.05);
}

.blog-modal-header {
  position: relative;
  height: 320px;
  width: 100%;
}

.blog-modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.15) 70%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.blog-modal-meta {
  color: #ffffff;
}

.blog-modal-category {
  display: inline-block;
  background: #d01f17;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.blog-modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

.blog-modal-author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: #e2e8f0;
}

.blog-modal-content {
  padding: 40px;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}

@media (max-width: 640px) {
  .blog-modal-content {
    padding: 24px;
  }
}

.blog-modal-content p {
  margin-bottom: 20px;
}

.blog-modal-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 16px;
}

.blog-takeaway-box {
  background: #fff5f5;
  border-left: 4px solid #d01f17;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.blog-takeaway-title {
  font-size: 14px;
  font-weight: 800;
  color: #d01f17;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.blog-takeaway-text {
  font-size: 15px;
  color: #1e293b;
  font-weight: 600;
  margin: 0 !important;
}

.blog-modal-footer {
  padding: 24px 40px 40px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.blog-share-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-share-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-share-btn:hover {
  background: #fff5f5;
  color: #d01f17;
  border-color: #fee2e2;
}

.blog-download-btn {
  background: #FFF5F5;
  border: 1.5px solid #FCA5A5;
  color: #D01F17;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(208, 31, 23, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-download-btn:hover {
  background: #D01F17;
  color: #FFFFFF;
  border-color: #D01F17;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(208, 31, 23, 0.3);
}

.blog-download-btn:hover svg {
  color: #FFFFFF !important;
  transform: translateY(2px);
}

/* ==========================================================================
   Skeleton Shimmer Loading Animation & Pulse UI
   ========================================================================== */
@keyframes blogSkeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.blog-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 200% 100%;
  animation: blogSkeletonShimmer 1.5s infinite ease-in-out;
  border-radius: 8px;
}

.blog-skeleton-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.blog-skeleton-img {
  height: 210px;
  width: 100%;
}

.blog-skeleton-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-skeleton-title {
  height: 22px;
  width: 85%;
}

.blog-skeleton-title-short {
  height: 22px;
  width: 55%;
}

.blog-skeleton-text {
  height: 14px;
  width: 100%;
}

.blog-skeleton-text-short {
  height: 14px;
  width: 70%;
}

.blog-skeleton-footer {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.blog-skeleton-author {
  height: 14px;
  width: 100px;
}
