@charset "UTF-8";
/* ============================================================
   Affiliate Page – Full-width, modern storefront layout
   ============================================================ */

/* Proper @font-face for junegloom (tantetom.css declaration is broken) */
@font-face {
  font-family: junegloom;
  src: url('fonts/JuneGloom-Medium.eot');
  src: url('fonts/JuneGloom-Medium.eot?#iefix') format('embedded-opentype'),
       url('fonts/JuneGloom-Medium.woff') format('woff'),
       url('fonts/JuneGloom-Medium.ttf') format('truetype'),
       url('fonts/JuneGloom-Medium.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* ---- Page container (full width, overrides #wrapper) ---- */
.aff-page {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Override the site-wide #wrapper to not constrain this page */
body:has(.aff-page) #wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Position logo 30px from the left edge on the affiliate page */
body:has(.aff-page) .tantetomlogo {
  left: 30px;
  margin-left: 0;
}

/* ---- Content area ---- */
.aff-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* Override the site-wide #maintext constraints */
.aff-page #maintext,
.aff-content #maintext {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: auto;
  margin: 0;
  padding: 0 0 40px;
  box-sizing: border-box;
}

/* ============================================================
   HERO
   ============================================================ */
.aff-hero {
  background:
    linear-gradient(135deg, rgba(30,135,45,0.95) 0%, rgba(20,94,31,0.97) 100%),
    url('pics/vichy_gruen.png');
  padding: 90px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circles */
.aff-hero::before,
.aff-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.aff-hero::before {
  width: 400px; height: 400px;
  top: -120px; right: -80px;
}
.aff-hero::after {
  width: 300px; height: 300px;
  bottom: -100px; left: -60px;
}

.aff-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.aff-hero-title {
  font-family: junegloom, 'Comic Sans MS', cursive;
  font-size: 46px;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
  padding: 0;
}

.aff-hero-subtitle {
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  margin: 0 auto;
  max-width: 600px;
}

/* ============================================================
   NOTICE BOX
   ============================================================ */
.aff-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fefef6;
  border: 1px solid #e8e0c0;  
  border-radius: 10px 10px 10px 10px;
  padding: 16px 20px;
  margin: 32px 0 40px;
}

.aff-notice-icon {
  font-size: 22px;
  color: #d4a017;
  flex-shrink: 0;
  line-height: 1;
}

.aff-notice p {
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.aff-section {
  margin-bottom: 48px;
}

.aff-section-header {
  margin-bottom: 28px;
}

.aff-section-title {
  display: block;
  font-family: junegloom, 'Comic Sans MS', cursive;
  font-size: 34px;
  font-weight: normal;
  color: #1e872d;
  background-color: transparent;
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.2;
}


/* ============================================================
   CATEGORY GRID
   ============================================================ */
.aff-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.aff-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #e6ece3;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.aff-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(30,135,45,0.16);
  border-color: #1e872d;
}

.aff-category-card.active {
  border-color: #1e872d;
  box-shadow: 0 4px 20px rgba(30,135,45,0.22);
  background: #f0faf1;
}

/* Category image: fixed small square, same size for all */
.aff-category-img-wrap {
  width: 100%;
  height: 90px;
  overflow: hidden;
  background: #f9fbf7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.aff-category-img-wrap img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.aff-category-card:hover .aff-category-img-wrap img {
  transform: scale(1.08);
}

.aff-category-info {
  padding: 14px 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #eef2eb;
}

.aff-category-info h3 {
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin: 0;
  line-height: 1.3;
}

.aff-category-count {
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #1e872d;
  font-weight: 700;
  display: inline-block;
}

.aff-category-arrow {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 16px;
  color: #ccc;
  transition: all 0.25s;
}

.aff-category-card:hover .aff-category-arrow {
  color: #1e872d;
  transform: translateX(3px);
}

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.aff-articles-section.aff-slide-in {
  animation: aff-slideUp 0.4s ease forwards;
}

@keyframes aff-slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aff-articles-header {
  margin-bottom: 24px;
}

.aff-articles-header .aff-section-title {
  margin-top: 8px;
  color: #1e872d;
}

.aff-back-btn {
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1e872d;
  background: #e8f5e9;
  border: 2px solid #c8e6c9;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.aff-back-btn:hover {
  background: #1e872d;
  border-color: #1e872d;
  color: #fff;
}

/* ---- Articles Grid: 4 cols desktop ---- */
.aff-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.aff-article-card {
  background: #fff;
  border: 1px solid #eaeee7;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.aff-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border-color: #c8e6c9;
}

.aff-article-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  overflow: hidden;
  background: #fbfdf9;
  padding: 16px;
  box-sizing: border-box;
}

.aff-article-img-link img {
  max-width: 100%;
  max-height: 158px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.aff-article-card:hover .aff-article-img-link img {
  transform: scale(1.05);
}

.aff-article-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 1px solid #f2f5ef;
}

div.aff-article-name {
  display: block;
  visibility: visible;
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  background-color: #fff;
  margin: 0;
  padding: 12px 14px 8px;
  line-height: 1.35;
  min-height: 2.7em;
  text-align: left;
  border-bottom: 1px solid #eef2eb;
}

.aff-article-btn,
.aff-article-btn:link,
.aff-article-btn:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1e872d;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.25s;
  cursor: pointer;
}

.aff-article-btn:hover,
.aff-article-btn:active {
  background: #22a434;
  box-shadow: 0 4px 14px rgba(30,135,45,0.35);
  color: #fff !important;
  text-decoration: none;
}

.aff-btn-icon {
  font-size: 14px;
  line-height: 1;
}

/* ============================================================
   PAGE FOOTER
   ============================================================ */
.aff-page-footer {
  background: #f4f8f0;
  border-top: 3px solid #1e872d;
  padding: 40px 32px;
  text-align: center;
}

.aff-page-footer-inner {
  max-width: 640px;
  margin: 0 auto;
}

.aff-page-footer-inner h3 {
  font-family: impactlabel, 'Arial Black', sans-serif;
  font-size: 22px;
  color: #1e872d;
  margin: 0 0 10px;
}

.aff-page-footer-inner p {
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablet / small desktop */
@media (max-width: 1100px) {
  .aff-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .aff-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .aff-category-img-wrap {
    height: 80px;
  }
  .aff-category-img-wrap img {
    width: 55px;
    height: 55px;
  }
}

/* Tablet */
@media (max-width: 860px) {
  .aff-hero {
    padding: 80px 24px 44px;
  }
  .aff-hero-title {
    font-size: 36px;
  }
  .aff-content {
    padding: 0 20px;
  }
  .aff-categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .aff-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .aff-category-img-wrap {
    height: 75px;
  }
  .aff-category-img-wrap img {
    width: 50px;
    height: 50px;
  }
}

/* Small tablet / large phone */
@media (max-width: 640px) {
  .aff-hero {
    padding: 70px 16px 36px;
  }
  .aff-hero-title {
    font-size: 30px;
  }
  .aff-hero-subtitle {
    font-size: 15px;
  }
  .aff-content {
    padding: 0 14px;
  }
  .aff-section-title {
    font-size: 26px;
  }
  .aff-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .aff-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .aff-category-img-wrap {
    height: 70px;
  }
  .aff-category-img-wrap img {
    width: 45px;
    height: 45px;
  }
  .aff-category-info {
    padding: 10px 12px 10px;
  }
  .aff-category-info h3 {
    font-size: 12.5px;
  }
  .aff-article-img-link {
    height: 150px;
    padding: 12px;
  }
  .aff-article-img-link img {
    max-height: 126px;
  }
  .aff-article-body {
    padding: 10px 12px 14px;
  }
  .aff-article-name {
    font-size: 13px;
  }
}

/* Phone */
@media (max-width: 420px) {
  .aff-hero {
    padding: 60px 12px 28px;
  }
  .aff-hero-title {
    font-size: 26px;
  }
  .aff-hero-subtitle {
    font-size: 14px;
  }
  .aff-content {
    padding: 0 10px;
  }
  .aff-section-title {
    font-size: 22px;
  }

  /* Categories: stacked list on phone */
  .aff-categories-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .aff-category-card {
    flex-direction: row;
    align-items: stretch;
  }

  .aff-category-img-wrap {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 12px 0 0 12px;
  }
  .aff-category-img-wrap img {
    width: 42px;
    height: 42px;
  }

  .aff-category-info {
    border-top: none;
    border-left: 1px solid #eef2eb;
    padding: 12px 14px;
    justify-content: center;
  }

  .aff-category-arrow {
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
  }

  .aff-category-card:hover .aff-category-arrow {
    transform: translateY(-50%) translateX(3px);
  }

  /* Articles: single column on phone */
  .aff-articles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .aff-article-img-link {
    height: 180px;
  }

  .aff-notice {
    padding: 12px 14px;
    margin: 20px 0 28px;
  }

  .aff-page-footer {
    padding: 28px 14px;
  }
}
