
/* Header */
header {
  background-color: #301934; /* dark purple for top part */
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.desktop-menu {
  display: flex;
  align-items: center;
  background-color: #563c5c;
  padding: 3px 15px;
  position: relative;
}

/* Center the menu absolutely */
.menu {
  list-style: none;
  margin: 0 auto;   /* centers inside flexbox */
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Right-aligned join button */
.join-btn {
  margin-left: auto; /* pushes only this one to the right */
}

.join-btn a {
  background-color: #301934; /* same as top header */
  color: #d3d3d3;            /* light gray text */
  padding: 4px 10px;         /* smaller size */
  border-radius: 0;          /* square edges */
  text-decoration: none;
  font-weight: 500;          /* slightly lighter than bold */
  font-size: 14px;           /* smaller font */
  border: 1px solid #d3d3d3; /* subtle gray border */
  transition: all 0.3s ease;
}

.join-btn a:hover {
  background-color: #d3d3d3; /* gray highlight on hover */
  color: #301934;            /* dark purple text */
  border-color: #d3d3d3;
}
.homeimage img {
  width: 100%;
  left: 0;
  top: 0;
}

.dropdown:hover .dropdown-content,
.menu a,
.tiny-popup.show {
  display: block;
}

.homeimage-content h1,
.homeimage-content p,
body {
  font-family: Inter, sans-serif;
}

.link-button,
.menu a,
.social-divider a {
  text-decoration: none;
}

body {
  margin: 0;
  padding-top: 80px;
  color: #000;
  background-color: #fefcff;
}

.logo-title {
  background-color: #301934;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
}

.header-logo {
  height: 40px;
}

.campaign-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.menu a {
  color: #fff;
  padding: 6px 12px;
  font-weight: 500;
}

.menu a:hover {
  background-color: #7b68ee;
  color: #fff;
}

.menu li {
  position: relative;
  margin: 5px;
}

.dropbtn {
  display: inline-flex;
  align-items: center;
  transition: background-color .3s, color .3s;
}

#backToTop,
.menu-toggle-wrapper,
.sidebar {
  display: none;
}

.dropbtn i {
  font-size: .8em;
  margin-left: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #e6e6fa;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
  z-index: 999;
}

.dropdown-content a {
  padding: 12px 16px;
  color: #000;
}

.last-container {
  text-align: center;
  padding: 20px;
  background-color: #301934;
  color: #fff;
}

.last-container .social-icons {
  margin: 10px 0;
}

.last-container .social-icons a {
  color: #fff;
  font-size: 20px;
  margin: 0 10px;
  text-decoration: none;
}

#backToTop {
  position: fixed !important;
  bottom: 30px;
  right: 30px;
  background: #301934;
  font-size: 22px;
  color:white;
  font-weight: 700;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
  transition: opacity .3s, transform .2s;
  line-height: 45px;
  z-index:999;
}

#backToTop:hover {
  background: #47265a;
  transform: translateY(-3px);
}

.content {
  margin-top: 10px;
}

.homeimage {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.homeimage img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: 0;
}

.homeimage-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 0 60px;
}

.homeimage-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #6abce2;
}

.homeimage-content h1 span {
  display: block;
  font-size: 4.5rem;
  color: #ffd580;
}

.homeimage-content p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #ddd;
  text-align: justify;
}

.body-text,
.body-text h2 {
  color: #301934;
}

.body-text h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 32px;
  text-align: center;
}

.body-text p,
.main-text p {
  font-family: Inter, sans-serif;
  text-align: justify;
  line-height: 1.6;
}

.body-text p {
  font-size: 16px;
  color: #555;
  margin-left: 20px;
  margin-right: 20px;
}

.social-label {
  text-align: center;
  font-weight: 700;
  color: #301934;
  margin-top: 40px;
  font-size: 18px;
  letter-spacing: 1px;
}

.social-divider {
  margin: 15px auto 30px;
  padding: 15px 0;
  max-width: 320px;
  border: 2px solid #301934;
  border-radius: 10px;
  text-align: center;
}

.social-divider a {
  color: #301934;
  font-size: 24px;
  margin: 0 12px;
  transition: color .3s;
}

.social-divider a:hover {
  color: #6a1b9a;
}

.main-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 10px auto;
  gap: 30px;
}

.main-text {
  max-width: 800px;
  color: #301934;
}

.ambassador-image,
.happy-image {
  max-width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.main-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: indigo;
}

.main-text p {
  font-size: 16px;
  color: #555;
}

.happy-image {
  width: 200px;
  height: 200px;
  border-radius: 12px;
}

.photo-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  padding: 20px;
}

.photo-gallery figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  margin: 0;
  flex-shrink: 0;
}

.photo-gallery img {
  width: 300px;
  height: 300px;
  object-fit: scale-down;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
  transition: transform .3s, box-shadow .3s;
}

.photo-gallery figure:active img,
.photo-gallery figure:hover img {
  transform: scale(1.25);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
}

.photo-gallery figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #301934;
  text-align: center;
}

.body-name,
.gallery-heading i {
  font-size: 22px;
  color: #301934;
}

.spotify-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  background-color: #fefcff;
}

.spotify-gallery iframe {
  border: none;
  transition: transform .3s;
}

.photo-item:hover img,
.spotify-gallery iframe:hover {
  transform: scale(1.05);
}

.body-name {
  font-weight: 700;
  margin: 10px 0 20px;
  text-align: center;
}

.gallery-heading,
.video-heading {
  margin: 30px 0 10px;
  font-weight: 700;
}

.body-image {
  display: flex;
  justify-content: center;
}

.body-image img {
  width: 100%;
  height: 450px;
  display: block;
  object-fit: contain;
}

.ambassador-image {
  width: 250px;
  height: 250px;
  border-radius: 12px;
}

.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #301934;
  gap: 10px;
}

.jinphotoalbum {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.photo-item {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
  cursor: pointer;
  display: block;
}

.label {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background-color: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 2px;
}

.video-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #301934;
  gap: 10px;
  letter-spacing: 1px;
}

.video-heading i {
  font-size: 24px;
  color: #301934;
}

.jinvideoalbum {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  padding: 10px 20px;
  justify-items: center;
}

.video-item {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.video-item iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh;
  width: 100%;
  background-color: #fefcff;
}

.link-button {
  background-color: #301934;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .3s;
}

.link-button:hover {
  background-color: #4b2561;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.contact-container {
  display: flex;
  justify-content: center;
  padding: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.donation-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4cc9f0;
}

.donation-message {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #fce9f9;
}

.qr-pair {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.qr-image-wrapper {
  background-color: #fff;
  padding: .5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  max-width: 160px;
  width: 100%;
}

.qr-image {
  width: 100%;
  height: auto;
  display: block;
}

.contact-button,
.transparency-btn {
  background-color: #4cc9f0;
  color: #240046;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.contact-button:hover,
.transparency-btn:hover {
  background-color: #3bc0eb;
}

.contact-left-box,
.contact-right-box {
  background: #240046;
  padding: 15px;
  border-radius: 8px;
  width: 45%;
  height: 500px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  box-sizing: border-box;
  color: #fff;
}

.popup,
.tiny-popup {
  position: fixed;
  background: #fff;
  display: none;
}

.contact-left-box h2 {
  font-size: 18px;
  margin: 10px 0 6px;
  color: #4cc9f0;
  text-align: justify;
}

.contact-left-box p {
  font-size: 15px;
  margin: 0 0 8px;
  text-align: justify;
  color: #eef;
}

.contact label {
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
  color: #fff;
}

.contact input[type=email],
.contact input[type=file],
.contact input[type=text],
.contact input[type=url],
.contact textarea {
  width: 95%;
  padding: 6px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #b862a8;
  color: #000;
}

.placeholder-black::placeholder {
  color: rgba(0, 0, 0, .6);
  font-size: 10px;
}

.contact-textarea {
  height: 100px;
  resize: none;
}

.popup {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #333;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .3);
  z-index: 9999;
  font-size: 14px;
}

.tiny-popup {
  bottom: 20px;
  right: 20px;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  padding: 20px;
  z-index: 1000;
  animation: .4s fadeIn;
}

.tiny-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.tiny-popup-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
}

.tiny-popup-text {
  margin: 0 0 15px;
  font-size: 14px;
  color: #555;
  text-align: justify;
  width: 100%;
}

.tiny-popup-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: #6abce2;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.tiny-popup-btn:hover {
  background: #559fc1;
}
/* =========================================
   RUNSEOKJIN EP TOUR SECTION
========================================= */

#runseokjin-tour-layout {
  padding: 40px 20px;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(
    to bottom,
    #d9e7f8 0%,
    #eef3fb 35%,
    #ffffff 50%,
    #edf1f9 65%,
    #d3def1 100%
  );
}

/* ---------- HEADER ---------- */

.rsj-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 45px;
}

.rsj-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: black;
}

.rsj-header h2 span {
  font-weight: 400;
  opacity: 0.9;
}

.rsj-header h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: rgba(200, 210, 255, 0.6);
  margin: 15px auto 0;
}

.rsj-header p {
  font-size: 1rem;
  line-height: 1.7;
  color: black;
}

/* ---------- TOP IMAGE GRID ---------- */

.rsj-image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto 45px;
}

.rsj-image-row img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 0 25px rgba(140, 160, 255, 0.25);
}

/* ---------- STATS ---------- */

.rsj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 900px;
  margin: -30px auto 45px;
}

.rsj-stat {
 background: linear-gradient(
  to bottom,
  #c7d9f0 0%,   /* darker blue top */
  #e1e8f5 35%,
  #ffffff 50%, /* white center stays */
  #dde4f2 65%,
  #bccae3 100% /* darker blue bottom */
);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 22px 15px;
  text-align: center;
}

.rsj-stat h3 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: black;
}

.rsj-stat p {
  font-size: 0.95rem;
  color: black;
  line-height: 1.4;
}

/* ---------- ACHIEVEMENTS ---------- */

.rsj-achievements {
  max-width: 750px;
  margin: 0 auto 55px;
}

.rsj-achievements h3 {
  text-align: center;
  margin-bottom: 22px;
  color: black;
}

.rsj-achievements ul {
  list-style: disc;
  padding-left: 20px;
}

.rsj-achievements li {
  margin-bottom: 12px;
  color: black;
  line-height: 1.6;
}

/* ---------- HERO IMAGE ---------- */

.rsj-hero {
  max-width: 1100px;
  margin: 0 auto;
}

.rsj-hero img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 35px rgba(140, 160, 255, 0.35);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  pointer-events: none;
}

/* Toast base */
.toast {
  min-width: 220px;
  margin-bottom: 10px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(-10px);
  animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}
.toast-info { background-color: #3498db; }
.toast-success { background-color: #2ecc71; }
.toast-error { background-color: #e74c3c; }
@media screen and (max-width: 768px) {
 .desktop-menu { display: none; }
  .menu-toggle-wrapper {
    display: flex; align-items: center; justify-content: center;
    background: #563c5c; padding: 4px 8px; height: 34px; gap: 4px; width: 100%;
  }
  .menu-toggle { font-size: 18px; color: white; }
  .menu-label { font-size: 14px; color: white; font-weight: 600; }

  .sidebar {
    display: block;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    width: auto; max-width: none;
    height: 50vh; /* ⬅️ Half the screen height */
    background: #6d4c7d;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 20px 15px;
  }
  .sidebar.show { opacity: 1; visibility: visible; transform: translateY(0); }
  .sidebar ul li { margin-bottom: 20px; } /* more spacing */
  .sidebar ul li a {
    text-decoration: none;
    color: #f2e9f8;
    font-size: 18px; /* balanced size */
    line-height: 1.5;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.3s;
  }
  .sidebar ul {
  list-style: none;
  padding: 20px 0 0 0; /* ⬅️ pushes menu items down */
  margin: 0;
}
  .sidebar ul li a:hover { background: #8a6b96; }

  .sidebar .dropdown-content {
    background: #c9b6d4;
    border-radius: 6px;
    padding: 4px 0;
  }
  .sidebar .dropdown-content a {
    color: #301934;
    font-size: 18px;
    padding: 8px 14px;
    display: block;
  }
  .sidebar .dropdown-content a:hover { background: #b497c4; color: #fff; }

  /* Bigger close button */
  .sidebar .close-btn {
    position: absolute;
    top: 8px; right: 20px;
    font-size: 36px; /* ⬅️ Bigger for easy tapping */
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background:transparent;
  }
  .sidebar .dropdown > a i {
  transition: transform 0.3s;
}
.sidebar .dropdown > a i.rotate {
  transform: rotate(180deg);
}
/* Make all sidebar menu labels uppercase */
.sidebar ul li a,
.sidebar .dropdown-content a {
  text-transform: uppercase;
}
  .jinphotoalbum,
  .jinvideoalbum {
    grid-template-columns: repeat(3, 1fr);
  }

  .homeimage {
    height: 70vh;
    display: flex;
    align-items: flex-start;
  }

  .homeimage-content {
    max-width: 100%;
    padding: 0 10px;
    margin-top: 120px;
  }

  .homeimage-content h1 {
    font-size: 2rem;
  }

  .homeimage-content h1 span {
    font-size: 2.5rem;
  }

  .homeimage-content p {
    font-size: 15px;
    margin-top: 8px;
    padding: 0 5px;
  }

  .photo-gallery {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: hidden;
  }

  .photo-gallery figure {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
  }

  .photo-gallery img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .spotify-gallery {
    flex-direction: column;
    align-items: center;
  }

  .spotify-gallery iframe {
    width: 90% !important;
    max-width: 100%;
    height: auto;
  }

  .photo-item img,
  .video-item iframe {
    height: 100%;
    width: 100%;
  }

  .jinphotoalbum {
    display: grid;
    gap: 0;
    padding: 0 10px;
  }

  .photo-item {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    overflow: hidden;
  }

  .photo-item img {
    object-fit: cover;
    display: block;
  }

  .jinvideoalbum {
    gap: 5px;
    padding: 10px;
  }

  .video-item {
    aspect-ratio: 1/1;
    max-width: 100%;
    height: auto;
  }

  .contact-left-box,
  .contact-right-box {
    width: 100%;
    height: auto;
    padding: 15px;
    box-sizing: border-box;
  }

  .contact-left-box h2 {
    font-size: 15px;
  }

  .contact label,
  .contact-left-box p,
  .tiny-popup-text {
    font-size: 13px;
  }

  .contact input[type=email],
  .contact input[type=file],
  .contact input[type=text],
  .contact textarea {
    font-size: 14px;
    padding: 8px;
  }

  .contact-button {
    width: 30%;
    font-size: 14px;
    padding: 10px;
  }

  .contact-textarea {
    height: 80px;
  }

  .qr-pair {
    gap: 0.5rem;
  }

  .qr-image-wrapper {
    max-width: 120px;
  }

  .tiny-popup {
    width: 80%;
    right: 10%;
    left: auto;
    bottom: 15px;
    padding: 15px;
  }

  .tiny-popup-close {
    top: 6px;
    right: 8px;
    font-size: 20px;
  }

  .tiny-popup-title {
    font-size: 16px;
  }

  .tiny-popup-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
   /* Reduce padding on smaller screens */
  #runseokjin-tour-layout {
    padding: 30px 15px;
  }

  /* Image grid: 2 columns on tablets */
  .rsj-image-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats grid: 2 columns */
  .rsj-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }
}
@media (max-width: 640px) {
  /* Header text scaling */
  .rsj-header h2 {
    font-size: 1.8rem;
  }

  .rsj-header p {
    font-size: 0.95rem;
  }

  /* Image grid: 1 column */
  .rsj-image-row {
    grid-template-columns: 1fr;
  }

  .rsj-image-row img {
    height: 220px; /* prevent tall overflow */
  }

  /* Stats grid: 1 column */
 .rsj-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .rsj-stat h3 {
    font-size: 1.5rem;
  }

  .rsj-stat p {
    font-size: 0.9rem;
  }

  /* Achievements spacing */
  .rsj-achievements {
    padding: 0 5px;
  }

  /* Hero image safe sizing */
  .rsj-hero img {
    max-height: 360px;
    object-fit: cover;
  }
}

/* Prevent any accidental horizontal scrolling */
body {
  overflow-x: hidden;
}
