/* ============================================================================================
   Blog listing v2 - new design, ported from F:\CyprusParadise-NewDesigns\prototypes\blog\
   (index.html + styles.css), for Views/Blogs.cshtml. Scoped under .hp2 (same wrapper
   Home-v2.css/Header.cshtml/NavigationBar.cshtml/Footer.cshtml already use site-wide) rather
   than repeating that file's own reset/typography/.btn/.wrap/.eyebrow/.section__head - this
   file only adds the classes genuinely specific to the blog listing page.

   Card radius (16px) and shadow (0 10px 28px rgba(16,68,67,.1)) intentionally match Home-v2.css's
   own .week/.spot cards rather than the source prototype's smaller --cp-radius (8px)/--cp-shadow
   tokens, so blog cards read as the same design system as the rest of the already-redesigned
   site instead of a slightly-different one-off.

   Not ported: the prototype's own .newsletter/.newsletter__* (Blogs.cshtml renders the real,
   already-restyled NewsletterWidget - see NewsletterWidget.cshtml - instead of a bespoke
   image+form block with no image field behind it). .load-more IS ported, but behaves
   differently from the prototype's own version - here it's a real link that fetches and appends
   the next server-paginated batch of posts (wwwroot/js/blog/blog.js), not a button that reveals
   cards already sitting in the DOM (Blogs.cshtml only ever renders one page's worth of the
   117-post archive server-side). */

.hp2 .breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 42px;
  font-size: 13px;
  font-weight: 700;
}

/* Home-v2.css's .section__head p (0,2,1) outranks its own .eyebrow (0,2,0) - both match a
   <p class="eyebrow"> sitting inside a .section__head (exactly how "Featured stories"/"Recent
   stories" below are built), so .section__head p's plain-paragraph margin/font-weight/color
   silently wins over .eyebrow's teal/uppercase/bold look on every eyebrow in this page's section
   headers. Re-asserted here at higher specificity rather than edited in Home-v2.css itself, since
   that file is shared site-wide and this scopes the fix to where it's actually been verified. */
.hp2 .section__head .eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--home-primary);
}

.hp2 .breadcrumbs a {
  color: var(--home-primary-dark);
}

.hp2 .blog-hero {
  overflow: hidden;
  padding: 38px 0 88px;
  background: var(--home-primary-mist);
}

.hp2 .blog-hero__grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(50px, 8vw, 100px);
  align-items: center;
}

.hp2 .blog-hero h1 {
  margin: 5px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hp2 .blog-hero__copy > p:not(.eyebrow) {
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.6;
}

.hp2 .article-search {
  display: grid;
  grid-template-columns: 1fr 52px;
  max-width: 510px;
  margin-top: 30px;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--home-shadow);
}

.hp2 .article-search:focus-within {
  outline: 2px solid var(--home-gold);
  outline-offset: 2px;
}

.hp2 .article-search input {
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px 0 0 10px;
  color: var(--home-text);
  outline: 0;
  background: transparent;
}

.hp2 .article-search button {
  display: grid;
  min-height: 52px;
  border: 0;
  border-radius: 0 10px 10px 0;
  place-items: center;
  background: var(--home-primary);
  color: #fff;
  cursor: pointer;
}

.hp2 .article-search svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hp2 .blog-hero__collage {
  position: relative;
  min-height: 470px;
}

.hp2 .blog-hero__main {
  width: 85%;
  height: 440px;
  margin-left: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--home-shadow-lg);
}

.hp2 .blog-hero__small {
  position: absolute;
  bottom: -28px;
  left: 0;
  width: 42%;
  height: 190px;
  border: 8px solid var(--home-primary-mist);
  border-radius: 16px;
  object-fit: cover;
}

.hp2 .blog-hero__note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 130px;
  padding: 15px;
  border-radius: 14px;
  background: var(--home-primary-dark);
  color: #fff;
  line-height: 1.25;
  box-shadow: var(--home-shadow);
}

.hp2 .blog-hero__note strong {
  font-family: var(--home-font-display);
  font-size: 29px;
}

/* ---- Featured stories ---- */

.hp2 .featured {
  padding-top: 64px;
  padding-bottom: 68px;
}

.hp2 .featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 24px;
}

.hp2 .feature-story,
.hp2 .side-story,
.hp2 .article-card {
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 68, 67, 0.1);
}

.hp2 .feature-story__media,
.hp2 .article-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--home-primary-mist);
}

.hp2 .feature-story__media {
  height: 380px;
}

.hp2 .feature-story__media img,
.hp2 .article-card__media img,
.hp2 .side-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hp2 .feature-story:hover img,
.hp2 .side-story:hover img,
.hp2 .article-card:hover img {
  transform: scale(1.035);
}

.hp2 .feature-story__media > span {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--home-primary-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.hp2 .feature-story__body,
.hp2 .article-card__body {
  padding: 22px;
}

.hp2 .story-meta {
  margin: 0;
  color: var(--home-primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hp2 .story-meta span {
  padding: 0 4px;
  color: var(--home-text-muted);
}

.hp2 .feature-story h3,
.hp2 .side-story h3,
.hp2 .article-card h3 {
  margin: 8px 0 0;
  font-family: var(--home-font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hp2 .feature-story h3 {
  font-size: 27px;
}

.hp2 .article-card h3 {
  font-size: 19px;
}

.hp2 .side-story h3 {
  font-size: 18px;
}

.hp2 .feature-story h3 a,
.hp2 .side-story h3 a,
.hp2 .article-card h3 a {
  color: var(--home-primary-deep);
  text-decoration: none;
}

.hp2 .feature-story__body > p:not(.story-meta),
.hp2 .article-card__body > p:not(.story-meta) {
  margin: 10px 0 16px;
  color: var(--home-text-muted);
  line-height: 1.55;
}

.hp2 .story-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--home-primary-dark);
  font-weight: 900;
  text-decoration: none;
}

.hp2 .story-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp2 .featured-side {
  display: grid;
  gap: 24px;
}

.hp2 .side-story {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 210px;
}

.hp2 .side-story > a {
  overflow: hidden;
}

.hp2 .side-story > div {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.hp2 .side-story > div > p:not(.story-meta) {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--home-text-muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hp2 .side-story .story-link {
  margin-top: auto;
  padding-top: 12px;
}

/* ---- Recent stories / browse ---- */

.hp2 .browse {
  padding: 68px 0 76px;
  background: var(--home-page-bg);
}

.hp2 .category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hp2 .category-filters button {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: #fff;
  color: var(--home-text);
  font-weight: 800;
  cursor: pointer;
}

.hp2 .category-filters button:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 2px;
}

.hp2 .category-filters button.is-on {
  border-color: var(--home-primary-dark);
  background: var(--home-primary-dark);
  color: #fff;
}

.hp2 .article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.hp2 .article-card {
  display: flex;
  flex-direction: column;
}

.hp2 .article-card[hidden] {
  display: none;
}

.hp2 .article-card__media {
  height: 200px;
}

.hp2 .article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hp2 .article-card .story-link {
  margin-top: auto;
}

.hp2 .article-empty {
  padding: 28px;
  margin-top: 22px;
  border: 1px dashed var(--home-border);
  border-radius: 14px;
  text-align: center;
  color: var(--home-text-muted);
}

.hp2 .load-more {
  display: block;
  min-width: 200px;
  min-height: 48px;
  margin: 30px auto 0;
  padding: 12px 20px;
  border: 1px solid var(--home-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--home-primary-dark);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.hp2 .load-more:hover {
  background: var(--home-primary-mist);
}

.hp2 .load-more[hidden] {
  display: none;
}

.hp2 .article-grid[aria-busy="true"] {
  opacity: 0.5;
  transition: opacity 0.15s;
}

.hp2 .load-more[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* ---- Weather strip ---- */

.hp2 .weather {
  padding: 64px 0;
  background: var(--home-primary-dark);
  color: #fff;
}

.hp2 .weather__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(540px, 1.28fr);
  gap: 60px;
  align-items: center;
}

.hp2 .weather .eyebrow,
.hp2 .weather h2,
.hp2 .weather .story-link {
  color: #fff;
}

.hp2 .weather h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.hp2 .weather__copy > p:not(.eyebrow) {
  margin: 15px 0 22px;
  color: var(--home-primary-soft);
  font-size: 17px;
  line-height: 1.55;
}

.hp2 .month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hp2 .month-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 108px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hp2 .month-grid strong {
  font-family: var(--home-font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hp2 .month-grid span {
  font-family: var(--home-font-display);
  font-size: 26px;
  font-weight: 700;
}

.hp2 .month-grid em {
  align-self: end;
  color: var(--home-primary-soft);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

/* ---- Closing CTA ---- */

.hp2 .holiday-cta {
  padding: 56px 0;
  background: var(--home-primary-mist);
}

.hp2 .holiday-cta__inner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.hp2 .holiday-cta__inner > div {
  max-width: 720px;
}

.hp2 .holiday-cta h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.03em;
}

.hp2 .holiday-cta p:not(.eyebrow) {
  margin: 10px 0 0;
  font-size: 17px;
}

.hp2 .holiday-cta .btn {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .hp2 .blog-hero__grid,
  .hp2 .featured-grid,
  .hp2 .weather__grid {
    grid-template-columns: 1fr;
  }

  .hp2 .blog-hero__copy {
    max-width: 680px;
  }

  .hp2 .blog-hero__collage {
    min-height: 410px;
  }

  .hp2 .blog-hero__main {
    height: 390px;
  }

  .hp2 .featured-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp2 .side-story {
    display: flex;
    flex-direction: column;
  }

  .hp2 .side-story > a {
    height: 200px;
  }

  .hp2 .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp2 .month-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hp2 .blog-hero {
    padding: 24px 0 68px;
  }

  .hp2 .breadcrumbs {
    margin-bottom: 34px;
  }

  .hp2 .blog-hero__grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hp2 .blog-hero__collage {
    min-height: 330px;
  }

  .hp2 .blog-hero__main {
    width: 94%;
    height: 310px;
  }

  .hp2 .blog-hero__small {
    bottom: -18px;
    width: 46%;
    height: 135px;
  }

  .hp2 .blog-hero__note {
    right: 8px;
    bottom: 12px;
  }

  .hp2 .featured,
  .hp2 .browse {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .hp2 .section__head--row {
    display: grid;
    align-items: start;
  }

  .hp2 .category-filters {
    justify-content: start;
  }

  .hp2 .featured-grid,
  .hp2 .featured-side,
  .hp2 .article-grid {
    grid-template-columns: 1fr;
  }

  .hp2 .feature-story__media {
    height: 260px;
  }

  .hp2 .side-story {
    display: grid;
    grid-template-columns: 38% 1fr;
  }

  .hp2 .side-story > a {
    height: auto;
  }

  .hp2 .month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp2 .holiday-cta__inner {
    display: grid;
  }
}

@media (max-width: 460px) {
  .hp2 .article-search {
    grid-template-columns: 1fr 48px;
  }

  .hp2 .blog-hero__note {
    width: 112px;
    padding: 12px;
  }

  .hp2 .blog-hero__note strong {
    font-size: 24px;
  }

  .hp2 .side-story {
    display: flex;
  }

  .hp2 .side-story > a {
    height: 190px;
  }

  .hp2 .month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp2 .category-filters button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp2 .feature-story__media img,
  .hp2 .article-card__media img,
  .hp2 .side-story img {
    transition: none;
  }
}
