/* Page Background */
.techblog-page {
  background: #0a0a0a;
  color: #fff;
}

/* Layout Container */
.techblog-container {
  max-width: 1272px;
  margin: 0 auto;
  padding: 0 48px;
}

.techblog-listing {
  padding-bottom: 64px;
  padding-top: 42px;
}

/* Section Headings */
.techblog-section-title {
  font-size: 45px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.2;
}

.techblog-divider {
  border-top: 1px solid #fff;
  margin-bottom: 32px;
}

/* Featured Section */
.techblog-featured {
  margin-bottom: 55px;
}

/* Featured Card */
.techblog-featured-card {
  display: grid;
  grid-template-columns: 60% 40%;
  width: 100%;
  max-width: 1272px;
  height: 400px;
  border: 3px solid #1da1f2;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.techblog-featured-card__info-text {
  background: #222121;
  padding: 48px;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.techblog-featured-card__content {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.techblog-featured-card__info-image {
  background: #b9e3fd;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.techblog-featured-card__info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.techblog-featured-card__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.techblog-featured-card__excerpt {
  font-size: 18px;
  font-weight: 100;
  line-height: 1.5;
}

/* Category Tag */
.techblog-category-tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #aaa;
  text-transform: uppercase;
}

/* Latest Section */
.techblog-latest {
  margin-bottom: 80px;
}

.techblog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Blog Card */
.techblog-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.techblog-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #2a2a2a;
}

.techblog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.techblog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.techblog-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.techblog-card__excerpt {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 100;
}

/* Mobile Responsive (≤ 1194px) */
@media only screen and (max-width: 1194px) {
  .techblog-listing {
    padding: 12px 0;
  }

  .techblog-section-title {
    font-size: 32px;
    text-align: center;
  }

  .techblog-container {
    padding: 0 24px;
  }

  /* Featured Card Mobile */
  .techblog-featured {
    margin-bottom: 64px;
  }

  .techblog-featured-card {
    grid-template-columns: 1fr;
    height: auto;
  }

  .techblog-featured-card__info-text {
    padding: 24px;
    order: 2;
  }

  .techblog-featured-card__info-image {
    order: 1;
    min-height: 250px;
  }

  .techblog-featured-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }

  .techblog-featured-card__excerpt {
    font-size: 12px;
  }

  /* Card Grid Mobile */
  .techblog-card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .techblog-card__title {
    font-size: 18px;
  }
}

/* ── Detail Page Styles ──────────────────────────────────────── */

/* Hero Section */
.techblog-detail__hero {
  padding: 48px 0 32px;
}

.techblog-detail__hero-inner {
  background-color: #222121;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  border-radius: 12px;
  max-width: 1272px;
  margin: 0 auto;
  padding-left: 48px;
  padding-bottom: 0px;
}

.techblog-detail__hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.techblog-detail__hero-image {
  padding-left: 24px;
}

.techblog-detail__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.techblog-detail__excerpt {
  font-size: 16px;
  font-weight: 100;
  line-height: 1.5;
  color: #ccc;
}

.techblog-detail__hero-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.techblog-detail__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body — Article Reading Section */
.techblog-detail__body-wrapper {
  background: #0a0a0a;
  padding: 64px 0;
  position: relative;
}

/* Article body — default expanded state */
.techblog-detail__body {
  max-width: 790px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* Collapsed state for read more effect */
.techblog-detail__body--collapsed {
  max-height: 4550px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Read more button container */
.techblog-detail__read-more-container {
  text-align: center;
  padding: 8px 0 12px 0;
  position: relative;
  z-index: 12;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 1) 100%);
}

.techblog-detail__read-more-btn {
  background: none;
  color: #1da1f2;
  border: none;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.techblog-detail__read-more-btn:hover {
  background: rgba(29, 161, 242, 0.1);
  color: #1e9ce5;
}

.techblog-detail__read-more-btn:active {
  opacity: 0.8;
}

.techblog-detail__read-more-container.hidden {
  display: none;
}

/* Section — Heading + Blocks */
.techblog-detail__section {
  margin-bottom: 48px;
}

.techblog-detail__section-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 24px;
}

.techblog-detail__section-subheading {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

/* Block Types */
.techblog-detail__paragraph {
  font-size: 16px;
  font-weight: 100;
  line-height: 1.8;
  margin-bottom: 16px;
}

.techblog-detail__bullets {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
  font-weight: 100;
}

.techblog-detail__bullets li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.techblog-detail__numbered {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: decimal;
}

.techblog-detail__numbered li {
  font-size: 16px;
  font-weight: 100;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* Two Column Bullets */
.techblog-detail__two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 24px;
}

/* Three Column Bullets */
.techblog-detail__three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 12px;
}

.techblog-detail__col-heading {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

/* Mini Card Grid — breaks out of narrow body to full width */
.techblog-detail__mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 12px;
  background: #0a0a0a;
  max-width: 1000px;
  box-sizing: border-box;
}

.techblog-detail__mini-card {
  background: linear-gradient(123.37deg, rgba(255, 255, 255, 0.08) 23.62%, rgba(255, 255, 255, 0.002) 63.31%);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 12px;
  border: 1px solid #FFFFFF4D;
}

.techblog-detail__mini-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.techblog-detail__mini-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Image with Right Float */
.techblog-detail__image-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 24px;
}

.techblog-detail__image-right-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.techblog-detail__image-right-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
}

.techblog-detail__image-right-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Full-Width Image */
.techblog-detail__figure {
  margin: 32px 0;
}

.techblog-detail__figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.techblog-detail__figure figcaption {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-top: 8px;
}

/* Mobile Responsive (≤ 1194px) */
@media only screen and (max-width: 1194px) {
  .techblog-detail__hero {
    padding: 0 0 32px;
  }

  .techblog-detail__hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 0;
  }

  .techblog-detail__title {
    font-size: 28px;
  }

  .techblog-detail__excerpt {
    font-size: 14px;
  }

  .techblog-detail__body-wrapper {
    padding: 32px 0;
  }

  .techblog-detail__body {
    max-width: 100%;
    padding: 0 24px;
    padding-bottom: 48px;
  }

  .techblog-detail__section-heading {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .techblog-detail__paragraph {
    font-size: 15px;
  }

  .techblog-detail__bullets li {
    font-size: 15px;
  }

  .techblog-detail__numbered li {
    font-size: 15px;
  }

  .techblog-detail__two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .techblog-detail__mini-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .techblog-detail__image-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
