/* --- Base Styles --- */
html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #181f2a;
  color: #f5f6fa;
  scroll-behavior: smooth;
}

/* --- Top Navigation Bar --- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #151a23;
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.08rem;
}

.small-logo {
  width: 72px;
  height: auto;
  max-width: 90vw;
  border-radius: 10px;
  display: block;
}

.menu-icon {
  height: 32px;
  cursor: pointer;
  display: none;
}

.menu-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
}

.dropdown {
  display: flex;
  gap: 1.5rem;
}

.dropdown a {
  color: #f5f6fa;
  text-decoration: none;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  line-height: 1.4;
}

.dropdown a:hover,
.dropdown a:focus {
  color: #ffb347;
  outline: none;
}

@media (max-width: 800px) {
  .dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 2rem;
    background: #181f2a;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.17);
    padding: 1rem 2rem;
    z-index: 1000;
  }

  .dropdown.show {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}

/* --- Hero/Banner Section --- */
.hero-bg {
  background: url('../images/header-bg.jpg') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-logo-block {
  background: rgba(24, 31, 42, 0.82);
  border-radius: 18px;
  padding: 3rem 2.5rem 2rem 2.5rem;
  max-width: 700px;
  margin: 3rem auto 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  text-align: center;
  color: #f5f6fa;
  position: relative;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 72px;
  max-width: 90vw;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.13);
}

.main-headline {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: #e0e3ea;
  line-height: 1.7;
  text-align: center;
}

/* --- Scroll Down Arrow --- */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  outline: none;
}

.down-arrow {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-bottom: 3px solid #ffb347;
  border-right: 3px solid #ffb347;
  transform: rotate(45deg);
  animation: bounce 1.2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(10px) rotate(45deg);
  }
}

/* --- Main Content --- */
.main-content {
  background: #181f2a;
  padding: 2.5rem 0 0 0;
  min-height: 60vh;
  color: #e0e3ea;
  max-width: 900px;
  margin: 0 auto;
}

.section-info,
.section-group {
  margin-bottom: 2.5rem;
}

.section-heading,
.title-highlight {
  font-family: 'Poppins', Arial, sans-serif;
  color: #ffb347;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  width: 100%;
}

.section-info p,
.section-group p {
  font-size: 1.15rem;
  color: #e0e3ea;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* --- Characters Horizontal Scroll (90% width) --- */
.characters-scroll-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  background: #181f2a;
  padding: 2.5rem 0 2.5rem 0;
  border-radius: 18px;
}

.characters-scroll-section h2,
.section-heading {
  font-family: 'Poppins', Arial, sans-serif;
  color: #ffb347;
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  padding-left: 0;
}

.scroll-row-outer {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem auto;
  max-width: 1200px;
}

.scroll-row-inner {
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.character-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  padding: 1rem 0;
  background: transparent;
}

.character-grid::-webkit-scrollbar {
  display: none;
}

.character-card,
.team-card,
.card.info-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 240px;
  background: rgba(24, 31, 42, 0.92);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  opacity: 1;
  margin-bottom: 0;
  cursor: pointer;
}

.character-card:hover,
.team-card:hover,
.card.info-card:hover,
.character-card:focus,
.team-card:focus,
.card.info-card:focus {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 8px 32px #ffb34755, 0 4px 24px rgba(0, 0, 0, 0.16);
  outline: none;
}

.character-accent,
.card.info-card .character-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ffb347 0%, #ff7e5f 100%);
  border-radius: 16px 16px 0 0;
}

.character-img,
.profile-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 16px 0 14px 0;
  border: 3px solid #ffb347;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.character-info h3,
.team-card h3,
.card.info-card h3 {
  color: #ffb347;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  margin-top: 0;
  text-align: center;
}

.character-info p,
.team-card .role,
.card.info-card p {
  color: #e0e3ea;
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
}

/* Arrows OUTSIDE the scroll area */
.scroll-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  background: rgba(24, 31, 42, 0.85);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
  transition: background 0.2s;
  opacity: 0.92;
  animation: bounce-arrow 1.3s infinite;
  font-size: 2rem;
  color: #ffb347;
}

.scroll-arrow.left {
  left: -56px;
  transform: translateY(-50%);
}

.scroll-arrow.right {
  right: -56px;
  transform: translateY(-50%);
}

.scroll-arrow:hover,
.scroll-arrow:focus {
  background: #ffb347;
  color: #181f2a;
}

.scroll-arrow:active {
  background: #ffb347cc;
}

.arrow-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-bottom: 3px solid #ffb347;
  border-right: 3px solid #ffb347;
}

.scroll-arrow.left .arrow-icon {
  transform: rotate(135deg);
}

.scroll-arrow.right .arrow-icon {
  transform: rotate(-45deg);
}

.scroll-arrow:hover .arrow-icon,
.scroll-arrow:focus .arrow-icon {
  border-color: #181f2a;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }

  50% {
    transform: translateY(-44%) scale(1.15);
  }
}

@media (max-width: 900px) {
  .scroll-row-inner {
    width: 98vw;
  }

  .scroll-arrow.left {
    left: -36px;
  }

  .scroll-arrow.right {
    right: -36px;
  }

  .characters-scroll-section {
    width: 98vw;
    padding: 1.5rem 0;
  }
}

@media (max-width: 700px) {

  .character-card,
  .team-card,
  .card.info-card {
    width: 160px;
    min-width: 120px;
    max-width: 96vw;
    padding: 1rem;
  }

  .character-img,
  .profile-img {
    width: 60px;
    height: 60px;
    margin: 10px 0 10px 0;
  }

  .team-modal-content {
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
  }

  .modal-img {
    width: 150px;
    height: 150px;
    margin-right: 0;
    margin-bottom: 1.2rem;
  }
}

/* --- Modal Popup --- */
.team-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: none;
}

.team-modal[style*="display: flex"] {
  display: flex;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 31, 42, 0.88);
  z-index: 1;
  cursor: pointer;
}

.team-modal-content {
  position: relative;
  z-index: 2;
  background: #23293a;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 2.5rem 2rem;
  max-width: 700px;
  width: 95vw;
  animation: popin 0.34s cubic-bezier(.4, 0, .2, 1);
}

@keyframes popin {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.team-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #ffb347;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.team-modal-close:hover {
  color: #fff;
}

.modal-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
  margin-right: 2rem;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
  border: 4px solid #ffb347;
  background: #fff;
}

.modal-details {
  flex: 1;
  color: #fff;
}

#modal-name {
  font-size: 2rem;
  font-family: 'Poppins', Arial, sans-serif;
  color: #ffb347;
  margin-bottom: 0.6rem;
  text-align: center;
}

.modal-role {
  font-size: 1.1rem;
  color: #ffb347;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-bio {
  font-size: 1.1rem;
  color: #e0e3ea;
  text-align: center;
}

/* --- Info Cards (Donate page, etc.) --- */
.card-grid.four-col {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.card.info-card {
  flex: 0 0 auto;
  width: 240px;
  background: rgba(24, 31, 42, 0.92);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  opacity: 1;
  margin-bottom: 0;
}

.card.info-card:hover,
.card.info-card:focus {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 8px 32px #ffb34755, 0 4px 24px rgba(0, 0, 0, 0.16);
  outline: none;
}

.card.info-card .character-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ffb347 0%, #ff7e5f 100%);
  border-radius: 16px 16px 0 0;
}

.card.info-card h3 {
  color: #ffb347;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  margin-top: 0;
  text-align: center;
}

.card.info-card p {
  color: #e0e3ea;
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
}

@media (max-width: 700px) {
  .card.info-card {
    width: 90vw;
    min-width: 180px;
    max-width: 96vw;
    padding: 1rem;
  }
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 20px;
  background: #151a23;
  color: #b0b5c3;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 0 0 24px 24px;
  margin-top: 2rem;
}
.portrait-image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(24, 31, 42, 0.92);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2.5rem 1rem 1.5rem 1rem;
  margin: 2rem auto 2.5rem auto;
  max-width: 420px;
}

.portrait-hero-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 24px #ffb34733, 0 2px 12px rgba(0,0,0,0.13);
  border: 4px solid #ffb347;
  background: #fff;
  margin: 0 auto 1.5rem auto;
  object-fit: cover;
}

.portrait-description p {
  color: #ffb347;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.15rem;
  text-align: center;
  margin: 0;
  padding: 0 0.5rem;
}

@media (max-width: 600px) {
  .portrait-image-card {
    padding: 1.2rem 0.2rem;
    max-width: 98vw;
  }
  .portrait-hero-img {
    max-width: 98vw;
    border-radius: 12px;
    border-width: 2px;
  }
  .portrait-description p {
    font-size: 1rem;
  }
}

.portrait-image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(24, 31, 42, 0.92);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 2.5rem 1rem 1.5rem 1rem;
  margin: 2rem auto 2.5rem auto;
  max-width: 420px;
}

.portrait-hero-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 24px #ffb34733, 0 2px 12px rgba(0, 0, 0, 0.13);
  border: 4px solid #ffb347;
  background: #fff;
  margin: 0 auto 1.5rem auto;
  object-fit: cover;
}

.portrait-description p {
  color: #ffb347;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.15rem;
  text-align: center;
  margin: 0;
  padding: 0 0.5rem;
}

@media (max-width: 600px) {
  .portrait-image-card {
    padding: 1.2rem 0.2rem;
    max-width: 98vw;
  }

  .portrait-hero-img {
    max-width: 98vw;
    border-radius: 12px;
    border-width: 2px;
  }

  .portrait-description p {
    font-size: 1rem;
  }
}

.card.centered-text {
  margin-left: auto;
  margin-right: auto;
  display: block;
}