/* =========================================================
   Xenarchs Studio — Blogs Page Dedicated Stylesheet
   Strictly scoped under .blog-page to prevent any side effects
   ========================================================= */

.blog-page {
  background-color: #f8f6f2;
  color: #031b2a;
}

/* 1. HERO EXTRA DECORATION */
.blog-page .blog-hero-wave {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* 2. BLOG CONTENT SECTION & CENTERED CONTAINER */
.blog-page .blog-content-section {
  position: relative;
  width: 100%;
  padding: 32px 0 64px 0;
  background-color: #f8f6f2;
}

.blog-page .blog-main-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 4vw, 50px);
  padding-right: clamp(24px, 4vw, 50px);
  box-sizing: border-box;
}

/* 3. CATEGORY + SEARCH ROW */
.blog-page .blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}

.blog-page .blog-categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-page .blog-categories li {
  display: inline-flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-page .blog-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #031b2a;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
  text-decoration: none;
}

.blog-page .blog-cat-btn:hover {
  color: #19d5d1;
}

.blog-page .blog-cat-btn.active {
  background: #19d5d1;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 4px 14px rgba(25, 213, 209, 0.28);
}

.blog-page .blog-search-wrap {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.blog-page .blog-search-input {
  width: 100%;
  height: 44px;
  padding: 8px 40px 8px 18px;
  border: 1px solid rgba(3, 27, 42, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #031b2a;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.blog-page .blog-search-input:focus {
  border-color: #19d5d1;
  box-shadow: 0 0 0 3px rgba(25, 213, 209, 0.15);
}

.blog-page .blog-search-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #7b8c94;
  font-size: 0.92rem;
  pointer-events: none;
}

.blog-page .blog-filter-divider {
  margin: 16px 0 36px 0;
  border: none;
  border-top: 1px solid rgba(3, 27, 42, 0.1);
  opacity: 1;
}

/* 4. FEATURED ARTICLES DESKTOP LAYOUT */
.blog-page .blog-featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 32px;
  align-items: stretch;
  margin-bottom: 48px;
}

/* Left Column Card */
.blog-page .featured-blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(3, 27, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(3, 27, 42, 0.03);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.blog-page .featured-blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 213, 209, 0.38);
  box-shadow: 0 14px 36px rgba(3, 27, 42, 0.08);
}

.blog-page .featured-card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eae8e1;
}

.blog-page .featured-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.blog-page .featured-blog-card:hover .featured-card-image {
  transform: scale(1.03);
}

.blog-page .featured-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 26px 28px 28px;
}

.blog-page .featured-badge {
  display: inline-block;
  margin-bottom: 10px;
  color: #19d5d1;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-page .featured-title {
  margin: 0 0 14px 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.blog-page .featured-title a {
  color: #031b2a;
  text-decoration: none;
  transition: color 180ms ease;
}

.blog-page .featured-title a:hover {
  color: #19d5d1;
}

.blog-page .featured-desc {
  margin: 0 0 22px 0;
  color: #4a5c60;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
}

.blog-page .blog-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: #637578;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-page .blog-meta-category {
  color: #19d5d1;
  font-weight: 700;
}

.blog-page .blog-meta-sep {
  color: rgba(3, 27, 42, 0.2);
}

.blog-page .blog-meta-readtime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #637578;
}

.blog-page .blog-meta-readtime i {
  color: #19d5d1;
  font-size: 0.88rem;
}

/* Right Column Compact Items */
.blog-page .blog-side-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}

.blog-page .blog-side-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 2px 0;
}

.blog-page .blog-side-thumb-wrap {
  width: 160px;
  aspect-ratio: 1.45 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #eae8e1;
  flex-shrink: 0;
}

.blog-page .blog-side-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms ease;
}

.blog-page .blog-side-item:hover .blog-side-thumb {
  transform: scale(1.05);
}

.blog-page .blog-side-content {
  min-width: 0;
}

.blog-page .blog-side-title {
  margin: 0 0 6px 0;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.blog-page .blog-side-title a {
  color: #031b2a;
  text-decoration: none;
  transition: color 180ms ease;
}

.blog-page .blog-side-item:hover .blog-side-title a {
  color: #19d5d1;
}

.blog-page .blog-side-desc {
  margin: 0 0 10px 0;
  color: #4a5c60;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.48;
}

.blog-page .blog-side-divider {
  margin: 0;
  border: none;
  border-top: 1px solid rgba(3, 27, 42, 0.08);
  opacity: 1;
}

/* 5. LATEST ARTICLES */
.blog-page .blog-latest-section {
  margin-bottom: 48px;
}

.blog-page .latest-articles-container {
  padding: 28px 24px;
  border-radius: 16px;
  background: #02090d;
}

.blog-page .latest-articles-heading {
  margin: 0 0 20px 0;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.blog-page .latest-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.blog-page .latest-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(25, 213, 209, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.blog-page .latest-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 213, 209, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.blog-page .latest-card-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #0b1a24;
}

.blog-page .latest-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.blog-page .latest-article-card:hover .latest-card-img {
  transform: scale(1.05);
}

.blog-page .latest-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px 16px 20px;
}

.blog-page .latest-card-title {
  margin: 0 0 8px 0;
  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-page .latest-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 180ms ease;
}

.blog-page .latest-article-card:hover .latest-card-title a {
  color: #19d5d1;
}

.blog-page .latest-card-desc {
  margin: 0;
  color: rgba(246, 241, 235, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
}

.blog-page .latest-card-body .blog-meta-readtime {
  color: rgba(255, 255, 255, 0.6);
}

/* 6. NEWSLETTER SECTION */
.blog-page .newsletter-section {
  margin-top: 48px;
  margin-bottom: 16px;
}

.blog-page .newsletter-card {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) minmax(240px, 320px) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid rgba(25, 213, 209, 0.25);
  border-radius: 14px;
  background: rgba(25, 213, 209, 0.06);
}

.blog-page .newsletter-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #ffffff;
  color: #19d5d1;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(3, 27, 42, 0.05);
  flex-shrink: 0;
}

.blog-page .newsletter-text-box {
  min-width: 0;
}

.blog-page .newsletter-heading {
  margin: 0 0 4px 0;
  color: #031b2a;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
}

.blog-page .newsletter-heading .accent-teal {
  color: #19d5d1;
}

.blog-page .newsletter-desc {
  margin: 0;
  color: #4a5c60;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
}

.blog-page .newsletter-input-box {
  position: relative;
  width: 100%;
}

.blog-page .newsletter-input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(3, 27, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #031b2a;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.blog-page .newsletter-input:focus {
  border-color: #19d5d1;
  box-shadow: 0 0 0 3px rgba(25, 213, 209, 0.15);
}

.blog-page .newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #19d5d1 0%, #0e8f8b 100%);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 200ms ease;
  box-shadow: 0 4px 14px rgba(25, 213, 209, 0.3);
}

.blog-page .newsletter-btn:hover {
  background: linear-gradient(135deg, #1ce3e0 0%, #10a39f 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(25, 213, 209, 0.4);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 991.98px) {
  .blog-page .blog-filter-bar {
    flex-wrap: wrap;
  }

  .blog-page .blog-search-wrap {
    width: 100%;
  }

  .blog-page .blog-featured-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-page .latest-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-page .newsletter-card {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .blog-page .newsletter-input-box {
    grid-column: 1 / -1;
  }

  .blog-page .newsletter-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .blog-page .blog-main-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-page .blog-categories {
    gap: 16px 20px;
  }

  .blog-page .blog-side-item {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
  }

  .blog-page .blog-side-thumb-wrap {
    width: 140px;
  }

  .blog-page .latest-articles-grid {
    grid-template-columns: 1fr;
  }

  .blog-page .newsletter-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .blog-page .newsletter-icon-box {
    margin-bottom: 4px;
  }
}

@media (max-width: 479.98px) {
  .blog-page .blog-side-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-page .blog-side-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}
