/* ============================================================
   PAN 2026 — Campaign Styles
   BEM methodology | Desktop-first
   ============================================================ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap');

@font-face {
  font-family: 'Raleway';
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  src: url('/campaigns/pan-2026/fonts/raleway-thin.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/campaigns/pan-2026/fonts/raleway-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/campaigns/pan-2026/fonts/raleway-bold.woff2') format('woff2');
}

/* ── RESET / BASE ── */
.pan-campaign {
  --pan-scale: 1;
}

@media (max-width: 1699px) {
  .pan-campaign {
    --pan-scale: 0.85;
  }
}

@media (max-width: 1379px) {
  .pan-campaign {
    --pan-scale: 0.72;
  }
}

.pan-campaign *,
.pan-campaign *::before,
.pan-campaign *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.pan-campaign a {
  text-decoration: none;
  color: inherit;
}

.pan-campaign img {
  display: block;
  max-width: 100%;
}

header {
  display: none !important;
}

.header-block {
  display: block !important;
}

/* ============================================================
   BLOCK 1 — HEADER
   ============================================================ */
.header-block {
  position: relative;
  width: 100%;
  background-image: url('/campaigns/pan-2026/images/header-desk.png');
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: stretch;
  aspect-ratio: 10 / 1.78;
}



/* Inner row: logo tab + clock icon aligned */
.header-block__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 45px;
}

/* Green shield / tab shape holding PAN logo */
.header-block__logo-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #007935;
  padding: 18px 44px 26px;
  /* Downward-pointing shield clip */
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  min-width: 160px;
  min-height: 90px;
  margin-top: -10px;
  /* slight overlap upward */
}

.header-block__logo-tab img {
  height: 32px;
  width: auto;
}

/* Fallback text logo if image not provided */
.header-block__logo-text {
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 4px;
  color: #ffffff;
  text-transform: uppercase;
}

/* Decorative clock icon — top right, fixed distance from edge */
.header-block__clock {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.header-block__clock svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   ARTICLES WRAPPER — light background holder
   ============================================================ */
.pan-articles-wrapper {
  background-color: #ededed;
  padding-top: calc(100px * var(--pan-scale));
  padding-bottom: calc(120px * var(--pan-scale));
}

.pan-ig {
  background-color: #fff;
  padding-top: calc(100px * var(--pan-scale));
  padding-bottom: calc(50px * var(--pan-scale));
}

/* Inner content constrained to lateral 180px inset */
.pan-articles-wrapper__inner {
  padding-left: calc(180px * var(--pan-scale));
  padding-right: calc(180px * var(--pan-scale));
}

/* ============================================================
   SHARED ARTICLE BLOCK — typography & button
   ============================================================ */
.pan-article__title {
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  font-size: calc(46px * var(--pan-scale));
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: calc(32px * var(--pan-scale));
}

.pan-article__subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 100;
  font-size: calc(24px * var(--pan-scale));
  line-height: 1.3;
  color: #231F20;
  margin-bottom: calc(50px * var(--pan-scale));
}

.pan-article__btn {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: calc(20px * var(--pan-scale));
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background-color: #007935;
  padding: calc(15px * var(--pan-scale)) calc(25px * var(--pan-scale));
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: max-content;
  border-radius: 12px;
}

.pan-article__btn:hover {
  background-color: #005a28;
}

/* ============================================================
   BLOCK 2 — TOP ARTICLE
   ============================================================ */
.top-article-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: calc(109px * var(--pan-scale));
}

.top-article-block__image {
  flex: 0 0 auto;
  width: 37.77%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
}

.top-article-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-article-block__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(10px * var(--pan-scale));
}

/* ============================================================
   BLOCK 3 — INSTAGRAM BLOCK
   ============================================================ */
.instagram-block {
  margin-bottom: calc(80px * var(--pan-scale));
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: calc(40px * var(--pan-scale));
}

.instagram-block__reel {
  flex: 0 0 auto;
  width: calc(400px * var(--pan-scale));
  max-width: 100%;
  /* Instagram embeds need overflow visible */
  overflow: hidden;
}

.instagram-block__reel iframe,
.instagram-block__reel blockquote {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* ============================================================
   BLOCK 4 — BOTTOM ARTICLE
   ============================================================ */
.bottom-article-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: calc(109px * var(--pan-scale));
}

.bottom-article-block__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(10px * var(--pan-scale));
}

.bottom-article-block__image {
  flex: 0 0 auto;
  width: 37.77%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
}

.bottom-article-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   RESPONSIVE: TABLET & MOBILE
   ============================================================ */
@media (max-width: 1024px) {

  /* Reset dynamic scale as we will use fixed smaller values */
  .pan-campaign {
    --pan-scale: 1;
  }

  /* Reduce side paddings */
  .pan-articles-wrapper__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pan-articles-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .pan-ig {
    padding-top: 40px;
    padding-bottom: 30px;
  }

  /* Article Blocks: Stack vertically, Image on top */
  .top-article-block,
  .bottom-article-block {
    flex-direction: column;
    gap: 24px;
    max-width: 450px;
    margin-inline: auto;
  }

  .top-article-block__image,
  .bottom-article-block__image {
    width: 100%;
    order: -1;
    /* Ensure image is always on top */
  }

  /* Typography adjustments for mobile/tablet */
  .pan-article__title {
    font-size: 22px;
    margin-bottom: 14px;
    line-height: 1.3;
  }

  .pan-article__subtitle {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.4;
  }

  .pan-article__btn {
    font-size: 12px;
    padding: 10px 18px;
    border-radius: 6px;
  }

  .top-article-block__content,
  .bottom-article-block__content {
    padding-top: 0;
  }

  /* Instagram block: keep 2 items until 600px */
  .instagram-block {
    gap: 20px;
    margin-bottom: 40px;
  }

  .instagram-block__reel {
    width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {

  .pan-ig {
    padding-block: 0 !Important;
  }

  .header-block {
    aspect-ratio: 10 / 4.46;
    background-image: url('/campaigns/pan-2026/images/header-mob.png') !important;
  }

  .pan-articles-wrapper__inner {
    padding-left: 45px;
    padding-right: 45px;
  }

  .top-article-block,
  .bottom-article-block {
    gap: 26px;
    padding-bottom: 25px;
  }

  .pan-article__title {
    font-size: 18.5px;
    margin-bottom: 20px;
  }

  .pan-article__subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .instagram-block {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  #block-instagram .pan-articles-wrapper__inner {
    padding-inline: 0 !important;
  }

  .instagram-block .instagram-block__reel {
    width: 100%;
    max-width: none;
  }
}