/* Light */
@font-face {
  font-family: 'KBH-Light';
  src: url('./Fonts/OTF/KBH-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

/* Light Italic */
@font-face {
  font-family: 'KBH-LightItalic';
  src: url('./Fonts/OTF/KBH-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

/* Regular */
@font-face {
  font-family: 'KBH-Regular';
  src: url('./Fonts/OTF/KBH-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* Medium */
@font-face {
  font-family: 'KBH-Medium';
  src: url('./Fonts/OTF/KBH-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/* DemiBold */
@font-face {
  font-family: 'KBH-DemiBold';
  src: url('./Fonts/OTF/KBH-DemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'KBH Tekst';
  src: url('./Fonts/KBH\ TEKST\ OpenType/KBHTekst.otf') format('opentype');
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden; 
  overflow-y: auto; 
  font-family: KBH Tekst, sans-serif;
}

:root {
    --main-color:#1C1C1C;
    --accent-color:#67478C;
    --background-color:#FBFBFB;

    --fs-h1: clamp(1.6rem, 4vw, 3.2rem);
    --fs-h2: clamp(1rem, 3vw, 2rem);
    --fs-h3: clamp(0.7rem, 2.6vw, 1.4rem);
    --fs-body: clamp(0.9rem, 1.8vw, 1.2rem);
}

main {
  display: flex;
  gap: 2rem;
  padding: 2rem; 
}

.body {
  font-family: KBH Tekst, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--background-color);
  color: var(--main-color);
}

.active {
    color: var(--accent-color);
}

/*=============================  Main Text setup  ==========================================*/

.h1 {
    font-family: KBH, sans-serif;
    font-size: var(--fs-h1);;
    color: var(--main-color);
}

.h1-color {
    font-family: KBH, sans-serif;
    font-size: var(--fs-h1);
    color: var(--accent-color);
}

.h2 {
    font-family: KBH, sans-serif;
    font-size: var(--fs-h2);
    color: var(--main-color);
}

.h2-color {
    font-family: KBH, sans-serif;
    font-size: var(--fs-h2);
    color: var(--accent-color);
}

.text, p {
    font-family: KBH Tekst, sans-serif;
    font-size: var(--fs-body);
    color: var(--main-color);
    line-height: 1.5;
}

.text-color {
    font-family: KBH Tekst, sans-serif;
    font-size: var(--fs-body);
    color: var(--accent-color);
    line-height: 1.5;
}

/*=============================  Header setup  ==========================================*/

header {
  text-align: left;
  padding: 1rem 2rem;
  display: flex;
  align-items: baseline;
  
}

header h1, a {
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: 1px;
  color: var(--main-color);
  text-decoration: none;
}

header .powered {
  margin-left: 10px;
  color: var(--main-color);
  font-size: 0.9rem;
}

header .powered span {
  font-weight: bold;
}

/*=============================  Index.html (Home page) Content setup  ==========================================*/

.home-menu{
  display: inline-block;
  font-family: 'KBH-Regular', sans-serif;
  font-size: 62px;
  background-color: #FEFFFE;
  width: fit-content;
  text-decoration: underline;
}

.logo-box{
  display:flex;
  align-content: flex-start;
  gap: 200px;
}

.info-zalando{
  width:100%;
  height:100%;
}

.home-footer{
  position: relative;
 
}

.footer-box{
  position: absolute;
  width: 100%;
  top: -160px; 
  left: 45%;
  transform: translateX(-50%);  
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
}


.label-right {
  position: fixed !important;
  left: 70%;
  transform: translateX(-50%) rotate(-30deg);
  background: transparent;
  color: black;
  font-family: KBH-Regular, sans-serif;
  font-size: 0.7rem;
  padding: 4px 40px;
  font-weight: regular;
  white-space: nowrap;
  bottom: 2rem;
  z-index: -1;
}

.label-left {
  position: fixed !important;
  left: 17%;
  transform: translateX(-50%) rotate(60deg);
  background: transparent;
  color: black;
  font-family: KBH-Regular, sans-serif;
  font-size: 0.7rem;
  padding: 4px 40px;
  font-weight: regular;
  white-space: nowrap;
  bottom: 2rem;
  z-index: -1;
}

@media (max-width: 768px) {
  .label-right .label-left {
    left: 120%; /* fully outside viewport */
  }
}

/*=============================  Events page Content setup  ==========================================*/

.sidebar {
  width: 25%;
}
.event-header-box{
  padding-bottom: 0px;
  margin-bottom: -50px;
}

.event-head{
  font-family: 'KBH-Medium', sans-serif;
  font-size: 21px;
  margin-bottom: 10px;
}

.map .event-head{
  margin-top: 120px;
}

.map{
  position: relative;
}

aside{
  margin-left: 50px;
}

.qr-section .qr-box p {
  font-size: 18px;
  text-align: center;
}

.map-small{
  border:1px solid var(--accent-color);
  width: 400px;
  height: 320px;
}

.you-are-here{
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 60px;
  height: auto;
  pointer-events: none;
  animation: bounce5s 5s ease-in-out infinite;
  z-index: 10;
}

@keyframes bounce5s {
  0%, 89%, 100% { transform: translate(-50%, -60%); }
  90% { transform: translate(-50%, -68%); }
  95% { transform: translate(-50%, -58%); }
}

.qr-section{
  width: 400px;
}
a .test-QR{
  max-width: 100%;
  height: auto;
}

.qr-box {
  background: var(--background-color);
  border: 1px solid var(--accent-color);
  padding: 1rem;
  
}

.qr-flexbox{
  display: flex;
  gap: 10px;
  padding:-20px;
}


.qr-check-list li{
  display: flex; 
  flex-direction: row;
  justify-content: flex-start;      
  gap: 10px;   
  margin-bottom: 20px;
}

.qr-content ul {
  list-style: none; 
  padding-left: 0;  
  margin: 0;
}

.qr-check-list li span{
  font-size: 14px;
  margin-bottom: 12px;

}


.check {
  color: #8323FF;
  font-size: 20px;
  margin-right: 3px;
}


.map-box img,
.qr-box img {
  width: 100%;
  
}

.qr-box ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.qr-box li::before {
  color: var(--accent-color);
}



.schedule {
  margin-right: 50px;
 
  flex-grow: 1;
  margin-top: 85px;
  border: 1px solid var(--accent-color);
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 68vh;
  overflow: hidden;
}

.tabs {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tabs button {
  color: #676070;
  font-family: 'KBH-Medium', sans-serif;
  background: none;
  border: none;
  font-size: 23px;
  cursor: pointer;
  padding-bottom: 4px;
}

.tabs button.active {
   font-family: 'KBH-Demibold', sans-serif;
   font-size: 26px;
  background: none;
  color: var(--accent-color);
  background-color: #EBE2F7;
  padding: 20px;

}

/* guest request text */
.events-padding-top p {
  text-align: right;
  padding-right: 20px;
}

.events-padding-top p span{
  color: #8323FF;
}
/* Make only the events list scrollable */
.events-padding-top{
  background-color: #EBE2F7;
  padding-top: 10px;
}
.events-padding-bottom{
  background-color: #EBE2F7;
  padding-top: 20px;
}

.events {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  background-color: #EBE2F7;
  overflow-y: auto;
  height: 100%S;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
  padding-bottom: 20px;
}

.events::-webkit-scrollbar {
  width: 6px;
}
.events::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 3px;
}

.time-label {
  text-align: right;
  font-family: 'KBH-Medium', sans-serif;
  font-size: 20px;
  color: #65478C;
  padding-top: 3rem;
  padding-right: 20px;
  margin-left:10px;

}

/* to make empty type card not clickable */

.event[data-type="Empty"],
.event[data-type="Empty"] *,
.event[data-type="Empty"] *::before,
.event[data-type="Empty"] *::after {
  pointer-events: none ;
  cursor: default !important;
    user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-user-drag: none !important;
 
}

.event {
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s ease;
}

.event-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

/* When multiple events share the same time,
   each event auto-scales to fit evenly, kachow */
.event-row .event {
  flex: 1;
}

.event[data-type="Show"] .event-thumbnail,
.event[data-type="Talk"] .event-thumbnail,
.event[data-type="Interview"] .event-thumbnail,
.event[data-type="Film"] .event-thumbnail,
.event[data-type="Workshop"] .event-thumbnail,
.event[data-type="After party"] .event-thumbnail{
  margin-top:5px;
  border: 8px solid #FBFBFB;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(37, 27, 47, 0.2);
}
.event-thumbnail{
  width: 250px;
  height: auto;
 
}

/* ======================= MODAL STYLING ===== */

.event h4 {
    display: none;
}

.event-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}


.event-modal.active {
  display: flex;
}

.event-modal-content {
  background: var(--background-color);
  width: 70%;
  max-width: 800px;
  border-radius: 2px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: popIn 0.25s ease-out;
}


@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-color);
  color: white;
  font-size: 1.5rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  align-items: center;
}

.modal-image img {
  width: 320px;
  height: auto;
  border-radius: 2px;
}

.modal-info {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  flex: 1;
}

.modal-info .type {
  font-weight: bold;
  font-size: 14px;
  color: var(--main-color);
}

.modal-info .title {
  font-size: 3rem;
  margin: 0 0 1rem 0;
   color: var(--main-color);
}

.modal-info .datetime,
.modal-info .venue,
.modal-info .hosted{
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0.4rem 0;
   color: var(--main-color);
}

.datetime{
  font-family: 'KBH-Medium', sans-serif;
}

.type, .title{
  font-family: 'KBH-Demibold', sans-serif;
}


.modal-info .description{
  letter-spacing: 1px;
   white-space: pre-line;
  margin-top: 1.8rem;

  font-size: 16px;
   color: var(--main-color);
}

.modal-info .note {
  font-size: 16px;
   letter-spacing: 1px;
   white-space: pre-line;
   font-family: 'KBH-LightItalic', sans-serif;
   margin-top: 2rem;
   color: var(--main-color);
}

.modal-info a {
  color: var(--main-color);
  text-decoration: underline;
  font-size: 16px;
}
/*=============================  Map page Content setup  ==========================================*/


.map-area {
  display: flex;
   justify-content: center;  
  align-items: center;      
  width: 100%;
  height: 75vh;
  background-color: #f8f8f8;
}

.map-wrapper {
  position: relative;
  align-items: center;
  justify-content: center;
  display: inline-block;
  text-align: center;
  align-items: center;
}

.map-image {
 display: block;
  max-width: 100%;
  height: 70vh;
}

/* ----- PIN 기본 ----- */
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  text-align: center;
}

.map-pin-icon img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
}

.map-pin:hover .map-pin-icon img {
  transform: scale(1.1);
}

/* ----- PIN TITLE ----- */
.map-pin-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--main-color, #222);
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.2);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.15);
  white-space: nowrap;
}

/* ----- POPUP ----- */

.map-popup {
  display: none;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(-50%, -120%);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px 14px;
  width: 220px;
  color: #1C1C1C;
  gap: 10px;
  z-index: 10;
}

.map-popup p{
  font-size: 16px;
  text-align: left;
}
.map-popup.active {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  
}

.map-popup-img {
  width: 90px;
  height: 90px;
  border-radius: 2px;
  object-fit: cover;
  margin-top: 6px;
}

/* ----- ANIMATION ----- */
@keyframes softBounce {
 0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.map-pin.highlight .map-pin-icon img {
  animation: softBounce 1s ease-in-out 2;
}


/*=============================  Mobile pages Content setup  ==========================================*/

.events-header {
      all: unset;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 2rem 1.5rem 1rem;
    }

 .back-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 18px;
    font-family: KBH, sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
    }

    .menu-icon {
      width: 35px;
      height: 28px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
      margin-left: auto;
    }

    .menu-icon div {
      background: var(--main-color);
      height: 3px;
      border-radius: 2px;
    }

    /* PAGE TITLE */
    .page-title {
      font-family: KBH, sans-serif;
      font-size: 2.3rem;
      text-align: left;
      margin: 1rem 2rem 2rem;
    }

    .page-title span {
      color: var(--accent-color);
    }

    /* EVENTS LIST */
    .events-container {
      padding: 1rem;
      margin-top: 3rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }

    .event-day {
      background-color: #e8ddee;
      border: 1px solid var(--main-color);
      max-width: 300px;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .event-date {
      font-family: KBH, sans-serif;
      font-size: 1.6rem;
      color: var(--accent-color);
    }

    .event-item {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .event-item img {
      width: 60px;
      height: 60px;
      object-fit: cover;
      border-radius: 4px;
    }

    .event-info h3 {
      font-size: 1rem;
      margin: 0;
      font-family: KBH, sans-serif;
    }

    .event-info p {
      margin: 0.2rem 0;
      font-size: 0.85rem;
    }

    .see-more {
      text-align: center;
      font-family: KBH, sans-serif;
      font-size: 1.1rem;
      color: var(--accent-color);
      text-transform: uppercase;
      margin-top: 0.5rem;
      cursor: pointer;
      user-select: none;
    }

    /* Hidden extra events */
    .extra-events {
      display: none;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    /* FOOTER */
    .footer {
      width: 100%;
      background: var(--accent-color);
      color: var(--background-color);
      text-align: left;
      padding: 1.5rem;
      margin-top: 2rem;
      font-size: 0.8rem;
    }

    .footer a {
      display: block;
      color: var(--background-color);
      text-decoration: none;
      margin-bottom: 0.3rem;
      font-size: 0.8rem;
    }

    .copyright {
      text-align: center;
      font-size: 0.5rem;
      color: var(--background-color);
      margin-top: 1rem;
    }

    /* VERTICAL TEXT */
    .vertical-text {
      white-space: nowrap;
      position: fixed;
      right: 0;
      top: 20%;
      transform: translateY(-50%) rotate(-90deg);
      transform-origin: right center;
      font-family: KBH, sans-serif;
      font-size: 1.5rem;
      color: var(--main-color);
      letter-spacing: 1px;
      margin-right: 2rem;
      padding: 0;
    }

/*=============================  Mobile Individual Event Content setup ==========================================*/
  .mobile-event-content {
    width: 100%;
    max-width: 400px; /* matches the mobile event look */
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

    .event-title-box {
      position: relative;
      border: none;
      padding: 1.5rem;
      margin: 1rem;
    }

    .event-title-box h1 {
      margin: 0.5rem 0 0;
      font-family: KBH, sans-serif;
      font-size: 1.8rem;
      line-height: 1.2;
      position: relative;
      z-index: 2;
    }

    .event-title-box ::before {
        content: "";
        position: absolute;
        top: -300px;    
        left: -10px;
        width: 100px;
        height: 30px;
        padding-top: 100%;
        border: 2px solid var(--main-color);
        z-index: 1;
        transform: translateY(10%);
        pointer-events: none;
    }

    /* Purple button */
    .primary-btn {
      display: block;
      width: calc(100% - 2rem);
      margin: 2rem auto;
      background: var(--accent-color);
      color: var(--background-color);
      text-align: center;
      padding: 1rem 0;
      font-family: KBH, sans-serif;
      font-size: 1.1rem;
      text-transform: uppercase;
      text-decoration: none;
      border: none;
      cursor: pointer;
    }

    /* Main event info box */
    .event-detail-card {
      border: 1px solid var(--main-color);
      padding: 1.5rem;
      margin: 1rem;
    }

    .event-detail-card img {
      width: 100%;
      height: auto;
      margin: 1rem 0;
      border-radius: 4px;
      object-fit: cover;
    }

    .event-detail-card h2 {
      font-family: KBH, sans-serif;
      font-size: 1.4rem;
      margin: 0;
      margin-bottom: 1rem;
    }

    .event-meta p {
      margin: 0.3rem 0;
      font-size: 0.95rem;
      font-family: KBH Tekst, sans-serif;
    }

    /* "MORE ON" links */
    .more-links {
      margin: 3rem 1rem;
      max-width: 500px;
      text-align: center;
    }

    .more-links a.more-toggle {
      display: inline-block;
      margin: 1.2rem auto;
      font-family: KBH, sans-serif;
      font-size: 1.4rem;
      text-decoration: none;
      color: var(--main-color);
      cursor: pointer;
    }

    .more-links a.more-toggle span {
      color: var(--accent-color);
    }

    .more-links .more-content {
      text-align: left;
      margin: 1rem auto;
      padding: 0.8rem 2rem;
      border-radius: 4px;
      max-width: 100%;
      box-sizing: border-box;
    }

/*=============================  Mobile Schedule Content setup ==========================================*/

.schedule-section {
      max-width: 350px;
      margin: 0 auto;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .schedule-card,
    .schedule-empty {
      border: 1px solid var(--main-color);
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      font-family: KBH Tekst, sans-serif;
    }

    .schedule-card img {
      width: 100%;
      height: auto;
      border-radius: 4px;
      margin-bottom: 0.6rem;
      object-fit: cover;
    }

    .schedule-card h3 {
      margin: 0;
      font-family: KBH, sans-serif;
      font-size: 1.5rem;
    }

    .schedule-card a {
      text-decoration: none;
      color: inherit;
      font-size: 1.2rem;
    }

    .schedule-meta p {
      margin: 0;
      font-size: 0.85rem;
    }

    .primary-btn-small {
      text-align: center;
      margin-top: 0.6rem;
      background: var(--accent-color);
      color: var(--background-color);
      padding: 0.6rem 0;
      font-family: KBH, sans-serif;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      text-transform: uppercase;
      text-decoration: none;
    }

    .section-title {
    font-family: KBH, sans-serif;
    font-size: 2rem;
    margin-top: 1rem;
    text-transform: uppercase;
    color: var(--accent-color);
    }

    .how-to-card {
    border: 1px solid var(--main-color);
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: KBH Tekst, sans-serif;
    border-radius: 15px;
    }

/*=============================  Mobile Burger Menu setup ==========================================*/

 /* Burger menu overlay container */
  .menu-container {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: left 0.4s ease;
  }

  .menu-container.active {
    left: 0; /* slide in */
  }

  /* Hero image */
  .menu-hero {
    height: 30vh;
    background-image: url('/logo\ images/main\ logo\ mobile.png'); /* replace with your hero image */
    background-size: cover;
    background-position: center;
  }

  /* Buttons container */
  .menu-buttons {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    bottom: 2rem;
    left: 2rem;
    position: absolute;
  }

  .menu-btn {
    padding: 1rem;
    color: var(--background-color);
    text-align: left;
    text-decoration: none;
    font-weight: bold;
    font-size: 2rem;
    text-transform: uppercase;
  }

  .menu-btn.active {
  text-decoration: underline;
}

  .menu-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    color: var(--background-color);
    cursor: pointer;
  }

/*=============================  Brands page Content setup  ==========================================*/

.brand-page {
  display: flex;
  flex-direction: row;
  gap: 2rem; /* space between gallery and info */
  justify-content: center; /* center content horizontally */
  padding: 2rem; /* space from viewport edges */
  box-sizing: border-box;
  max-width: 1200px; /* limit content width */
  margin: 0 auto;
}


.brands-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* discover title effect */

.discover-title a {
  font-family: 'KBH-Medium', sans-serif;
  font-size: 3rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block; 

  background: linear-gradient(270deg, #67478C, #1C1C1C, #67478C);
  background-size: 600% 600%;


  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

 
  animation: gradientText 8s ease infinite, bounce 2s ease-in-out infinite;
  cursor: pointer; 
  transition: transform 0.2s;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-5px); }
  50% { transform: translateY(-7px); }
  75% { transform: translateY(-5px); }
}


.discover-title a:active {
  transform: scale(0.95);
}

.discover-title {
  
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-align: center;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 1rem;
  width: 90%;
  max-width: 1200px;
}

.brand-card {
  background: var(--background-color);
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;

  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.brand-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.brand-card h3 {
  padding: 0.8rem;
  margin: 0;
  font-size: 1rem;
}

.ribbon {
  position: absolute;
  top: 28px;
  left: -48px;
  transform: rotate(-45deg);
  background: var(--accent-color);
  color: var(--background-color);
  font-size: 0.7rem;
  padding: 4px 40px;
  font-weight: bold;
}

/*=========== Individual Brand Page setup =============*/
.brand-page{
  display: flex;
  flex-direction: row;
  gap: 2rem; /* space between gallery and info */
  justify-content: center; /* center content horizontally */
  padding: 2rem; /* space from viewport edges */
  box-sizing: border-box;
  max-width: 1200px; /* limit content width */
  margin: 0 auto;
}


.brand-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 500px; /* prevents gallery from stretching too wide */
  flex-shrink: 0; /* don’t let flex container shrink it */
}

.brand-gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1; /* take remaining space */
  max-width: 600px; /* optional constraint */
}

.brand-logo {
  width: 170px;
  height: auto;
}

.brand-description {
  font-family: KBH Tekst, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.brand-ciff-box {
  border: 1px solid var(--main-color);
  padding: 1rem;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  background: var(--background-color);
}

.ciff-head-text{
  font-size: 21px;
}

.brand-ciff-box img {
  width: 100px;
  height: auto;
  border-radius: 4px;
}

.brand-description .head{
 font-family: 'KBH-Medium', sans-serif;
 font-size: 18px;
}
.brand-description .ciff{
  margin-bottom: 10px;
}



.brand-ciff-box p {
  margin: 0;
  font-size: 0.9rem;
}

.brand-ciff-box a {
  text-decoration: underline;
  color: var(--accent-color);
}

/* Scrollable if content exceeds viewport */
.brand-page::-webkit-scrollbar {
  width: 6px;
}
.brand-page::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 3px;
}

.brand-label-right {
  position: absolute;
  top: 80%;
  left: 70%;
  transform: translateX(-50%) rotate(-25deg);
  background: transparent;
  color: #1C1C1C;
  font-family: KBH-Regular, sans-serif;
  font-size: 0.7rem;
  padding: 4px 40px;
  font-weight: regular;
  white-space: nowrap;
  bottom: 2rem;
  z-index: -1;
}

/*===================Mobile Brand Page setup ===================*/


@media (max-width: 900px) {

  .brand-page {
    flex-direction: column;
    padding: 1rem;
  }

  .brand-gallery {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .brand-gallery img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
  }

  .brand-info {
    width: 100%;
    margin-top: 1.5rem;
  }

  .brand-description {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word; /* prevents text from pushing layout */
  }

  .brand-logo {
    width: clamp(120px, 45vw, 230px);
    height: auto;
  }

  .brand-ciff-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
    box-sizing: border-box;
  }

  .brand-ciff-box img {
    width: 70px;
    flex-shrink: 0;
  }
}

@media (max-width: 500px) {

  .brand-gallery {
    grid-template-columns: 1fr; /* stack images fully */
  }

  .brand-ciff-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*=============================  404 Page  ==========================================*/
.hanger-image {
   max-width: 50%;
    height: auto;

.qr-container {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  top: 95%;
  right: 60%;
}

.qr-container img {
  width: 80px;
  height: 80px;
}

.qr-text {
  font-family: KBH Tekst, sans-serif;
  text-align: right;
  font-size: 7px;
  line-height: 1.2;
}


}
/* ============================  404 Page End  ==========================================*/


/*=============================  Discover page Content setup  ==========================================*/

.discover-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 140px);
  display: flex;
  justify-content: center;
  align-items: center top;
}

/* container for brand swipe card — border with inner padding */
.brand-swipe-card {
  width: 600px;
  height: 850px;
  padding: 20px;                    /* space between image and border */
  box-sizing: border-box;
  background: var(--background-color);
  border: 2px solid var(--main-color); /* border moved to container */
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

/* image fills the padded container */
.brand-swipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px; /* slightly smaller radius so it sits inside the container */
  display: block;
  border: none;       /* remove border from image itself */
}

/* Position buttons bottom left + bottom right */
.swipe-controls {
  position: absolute;
  bottom: 6.2rem; /* moved container up a bit */
  width: 80%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
}

.swipe-controls button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 180px;
  padding: 0 1rem;           /* allow horizontal padding for larger text */
  font-family: KBH, sans-serif;
  font-size: 2.2rem;         /* increased text size */
  font-weight: 600;          /* bolder text */
  line-height: 1;            /* keep text vertically centered */
  background: rgba(0, 0, 0, 0.473);
  color: #fff;
  border: 3px solid rgba(0, 0, 0, 0.969);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  transform: translateY(-6px);
  text-align: center;
  white-space: normal;       /* allow wrapping if needed */
  word-break: break-word;
}

/* keep it responsive on small screens */
@media (max-width: 480px) {
  .swipe-controls button {
    width: 140px;
    height: 120px;
    font-size: 1.4rem;
    padding: 0 .6rem;
  }
}

.swipe-controls button:hover {
  transform: translateY(-6px) scale(1.05);
  background: var(--accent-color--); /* slightly stronger on hover */
}

/* NO button (left) */
.swipe-controls button:first-child {
  background: rgba(0,0,0,0.47);
  border-color: rgba(0,0,0,0.9);
  color: #fff;
}

.swipe-controls button:first-child:hover {
  background: rgba(0,0,0,0.75); /* darker on hover */
}

/* YES button (right) — semi‑transparent accent */
.swipe-controls button:last-child {
  background: rgba(103,71,140,0.55); /* semi-transparent accent (#67478C) */
  border-color: rgba(103,71,140,0.85);
  color: #fff;
}

.swipe-controls button:last-child:hover {
  background: rgba(103,71,140,0.85); /* darker on hover */
}

/* ensure SVG icons remain white */
.swipe-controls button svg { fill: #fff; }

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  justify-content: center;
  align-items: center;
}

.popup.active {
  display: flex;
}

.popup-content {
  background: var(--background-color);
  border: 1px solid var(--main-color);
  padding: 2rem 3rem;
  text-align: center;
  border-radius: 8px;
}

/* swipe-left animation: image slides left and fades out */
@keyframes slideFadeLeft {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to   { transform: translateX(-100%) scale(0.98); opacity: 0; }
}

/* trigger animation when container gets .swipe-left */
.brand-swipe-card.swipe-left img {
  animation: slideFadeLeft 420ms ease-in forwards; /* prevent pointer interaction during animation */
  pointer-events: none;
}

/* Optional: slight scale for smoother feeling while leaving */
.brand-swipe-card.swipe-left {
  will-change: transform, opacity;
}
/* ============================  Map Page content setup  ==========================================*/


/*=============================  Footer setup  ==========================================*/

footer {
  text-align: right;
  padding: 1rem 0rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--main-color);
  text-decoration: none;
  margin-right: 1rem;
}
footer a.active {
  color: var(--accent-color);
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: transparent;
  padding: 0.5rem 2rem ;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
  pointer-events: none; /* disable all pointer events by default */
}

/* re-enable  footer buttons */
.sticky-footer * {
  pointer-events: auto;
}

.back-btn-main {
  position: absolute;
  left: 1rem;
  background: none;
  border: none;
  font-size: 5rem;
  cursor: pointer;
  color: var(--accent-color)
}

/* ===== Mobile footer tweaks ===== */
@media (max-width: 900px) {
  .sticky-footer {
    padding: 0.5rem 1rem; /* less padding on mobile */
    gap: 0.5rem;
    background-color: var(--background-color);
  }

  .back-btn-main {
    position: absolute; /* allow flex to position it */
    width: 3.5rem;
    height: 3.5rem;
    font-size: 0; /* remove original huge font-size */
    margin-right: 0.5rem;
  }

  .back-btn-main img.back-icon {
    width: 100%;
    height: auto;
  }

  .sticky-footer h1 {
    font-size: 0.2rem; /* smaller text for mobile */
    margin: 0;
  }

  .sticky-footer a {
    font-size: var(--fs-h2);
    margin-left: 0.2rem;
  }
}
@media (max-width: 500px) {
    
.sticky-footer {
    background-color: var(--background-color);
}
.back-btn-main {
    color: var(--main-color);
}

.sticky-footer h1 {
    color: var(--main-color);
}

.active {
    color: var(--main-color);
}
}

/*=============================  Responsive design  ==========================================*/

@media (max-width: 768px) {
 
  .VG-section {
    background-size: contain; 
    width: 100%;
  }
}

