/* =========================================
   TRAVLUNO DYNAMIC BLOG PAGE
   ========================================= */

.tv-blog-page {
  --tv-navy: #073c4b;
  --tv-teal: #079eac;
  --tv-orange: #f3a13b;
  --tv-muted: #5c7380;
  --tv-border: #dcebef;
  color: var(--tv-navy);
  background: #fff;
  font-family: inherit;
  width: 100%;
}

.tv-blog-page *,
.tv-blog-page *::before,
.tv-blog-page *::after {
  box-sizing: border-box;
}

.tv-blog-page a {
  text-decoration: none;
}

.tv-blog-container {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

/* HERO */

.tv-blog-hero {
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--tv-navy);
}

.tv-blog-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=85");
  background-size: cover;
  background-position: center;
}

.tv-blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(7,60,75,.92),
    rgba(7,111,123,.72)
  );
}

.tv-blog-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 65px 20px;
  color: #fff;
}

.tv-blog-eyebrow {
  display: block;
  color: #8af0f3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 17px;
}

.tv-blog-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
  margin: 0 0 18px;
}

.tv-blog-hero-content > p {
  max-width: 720px;
  margin: 0 auto 22px;
  color: #e5f4f5;
  font-size: 17px;
  line-height: 1.7;
}

.tv-blog-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.tv-blog-breadcrumb a,
.tv-blog-breadcrumb span {
  color: #fff;
}

.tv-blog-breadcrumb span[aria-hidden] {
  color: var(--tv-orange);
}

/* BLOG SECTION */

.tv-blog-section {
  padding: 85px 0 100px;
  background: #f8fbfc;
}

.tv-blog-heading {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 48px;
}

.tv-blog-label {
  display: block;
  color: var(--tv-teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 13px;
}

.tv-blog-heading h2 {
  color: var(--tv-navy);
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.2;
  margin: 0 0 17px;
}

.tv-blog-heading p {
  color: var(--tv-muted);
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
}

/* DYNAMIC BLOG GRID */

.tv-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tv-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tv-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(7,60,75,.055);
  transition: transform .25s, box-shadow .25s;
}

.tv-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(7,60,75,.12);
}

.tv-blog-image {
  display: block;
  height: 235px;
  overflow: hidden;
  background: #e8f5f6;
}

.tv-blog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.tv-blog-card:hover .tv-blog-image img {
  transform: scale(1.05);
}

.tv-blog-placeholder {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #073c4b, #079eac);
  color: white;
  font-weight: 700;
  text-align: center;
}

.tv-blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 25px;
}

.tv-blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--tv-muted);
  font-size: 13px;
}

.tv-blog-category {
  background: #e8f8f9;
  color: #087e89;
  border-radius: 30px;
  padding: 5px 11px;
  font-weight: 700;
}

.tv-blog-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.35;
}

.tv-blog-card h3 a {
  color: var(--tv-navy);
}

.tv-blog-card h3 a:hover {
  color: var(--tv-teal);
}

.tv-blog-excerpt {
  margin: 0 0 22px;
  color: var(--tv-muted);
  font-size: 15px;
  line-height: 1.75;
}

.tv-blog-read-more {
  display: inline-flex;
  margin-top: auto;
  color: var(--tv-teal);
  font-size: 15px;
  font-weight: 800;
}

.tv-blog-read-more:hover {
  color: var(--tv-navy);
}

/* PAGINATION */

.tv-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 50px;
}

.tv-blog-pagination button {
  min-width: 43px;
  min-height: 43px;
  padding: 9px 14px;
  background: white;
  border: 1px solid var(--tv-border);
  border-radius: 9px;
  color: var(--tv-navy);
  font-weight: 700;
  cursor: pointer;
}

.tv-blog-pagination button:hover,
.tv-blog-pagination button.active {
  background: var(--tv-teal);
  color: #fff;
  border-color: var(--tv-teal);
}

.tv-blog-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.tv-blog-message {
  padding: 40px 25px;
  text-align: center;
  background: #edf7f8;
  border-radius: 16px;
  color: var(--tv-muted);
}

/* COMMUNITY CTA */

.tv-blog-community {
  padding: 55px 0;
  background: linear-gradient(110deg, #073c4b, #087d88);
}

.tv-blog-community-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.tv-blog-community span {
  display: block;
  color: #8cebf0;
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 800;
  margin-bottom: 12px;
}

.tv-blog-community h2 {
  color: white;
  font-size: clamp(27px, 3vw, 38px);
  margin: 0 0 12px;
}

.tv-blog-community p {
  max-width: 660px;
  margin: 0;
  color: #e2f4f5;
  line-height: 1.75;
}

.tv-blog-community-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tv-orange);
  color: var(--tv-navy) !important;
  border-radius: 11px;
  padding: 17px 25px;
  font-weight: 800;
  white-space: nowrap;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .tv-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .tv-blog-container {
    width: calc(100% - 28px);
  }

  .tv-blog-hero {
    min-height: 310px;
  }

  .tv-blog-hero-content {
    padding: 50px 12px;
  }

  .tv-blog-section {
    padding: 60px 0 70px;
  }

  .tv-blog-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .tv-blog-image {
    height: 220px;
  }

  .tv-blog-community-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tv-blog-community-btn {
    width: 100%;
  }
}


.tv-blog-pagination a,
.tv-blog-pagination span {
    min-width: 43px;
    min-height: 43px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dcebef;
    border-radius: 9px;
    color: #073c4b;
    font-weight: 700;
    text-decoration: none;
}

.tv-blog-pagination a:hover,
.tv-blog-pagination span.active {
    background: #079eac;
    color: #fff;
    border-color: #079eac;
}

