:root {
  --standard-purple: #621cff;
  --button-hover-color: #a031de;
  --button-hover-shadow: 0 0 5px rgba(98, 28, 255, 0.4);
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 5px 4px 20px; /*TOP RIGHT BOTTOM LEFT*/
  background-color: #f9f9f9;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  gap: 20px;
}

.logo-container {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-container img {
  height: 48px;
}

.logo-text {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--standard-purple);
  font-family: "Rubik", sans-serif;
}

/* SEARCH BAR */
.desktop-search {
  justify-self: center;
  max-width: 700px;
  width: 100%;
}

.search-bar {
  margin: 12px 24px;
  flex-grow: 1;
}

.search-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.search-wrapper input {
  width: 100%;
  padding: 10px 16px;
  padding-right: 44px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-wrapper input:focus {
  border-color: var(--button-hover-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(98, 28, 255, 0.25);
}

.search-icon {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 44px;
  background-color: var(--standard-purple);
  border: none;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon:hover {
  background-color: var(--button-hover-color);
}

.mobile-search {
  display: none;
  padding: 16px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.mobile-search input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

/* NAV */
.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  justify-self: end;
  flex-wrap: nowrap; /* <--- Prevent wrapping */
  white-space: nowrap; /* <--- Ensure content stays on one line */
  overflow-x: auto; /* Optional: allow horizontal scrolling if needed */
}

.nav-links a,
.nav-button {
  display: inline-block;
  text-align: center;
  width: 110px; /* or whatever looks best */
  padding: 10px 0;
  color: inherit;
  background-color: transparent;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.nav-button {
  padding: 10px;
}

/* NAV LINKS HOVER */
.nav-links a:hover,
.nav-button:hover {
  background-color: var(--standard-purple);
  color: white;
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--standard-purple);
  cursor: pointer;
}

/* CTA SECTION */
.cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  height: 330px;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 45%;
  animation: fadeImages 10s infinite;
  z-index: 0;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgb(98, 28, 255) 0%,
    rgba(98, 28, 255, 0.6) 25%,
    rgba(98, 28, 255, 0.6) 75%,
    rgb(98, 28, 255) 100%
  );
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
}

.cta-section h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.cta-section button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: white;
  color: #621cff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.cta-section button:hover {
  background-color: var(--button-hover-color);
  box-shadow: var(--button-hover-shadow);
  color: white;
}

@keyframes fadeImages {
  0%,
  100% {
    background-image: url("images/cta/cta1.png");
  }
  33% {
    background-image: url("images/cta/cta2.png");
  }
  66% {
    background-image: url("images/cta/cta3.png");
  }
}

/* FEATURED GUESTS */
.featured-guests {
  padding: 10px;
  background-color: #f5f5f5;
  color: var(--standard-purple);
}

.featured-guests h2 {
  text-align: center;
  font-size: 2rem;
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.guest-card {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guest-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.guest-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.guest-main img {
  width: 200px;
  flex-shrink: 0;
}

.guest-info {
  flex: 1;
  min-width: 0;
}

.guest-info h3 {
  margin: 0;
  font-size: 1.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.guest-info h4 {
  margin: 4px 0 12px;
  font-weight: normal;
  font-size: 1rem;
  color: #666;
}

.meta-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.meta-row p {
  margin: 0;
  font-size: 0.95rem;
  color: black;
}

.meta-row strong {
  font-weight: 600;
}

.guest-bio {
  font-size: 0.9rem;
  color: #5d5d5d;
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 6px;
  line-height: 1.5;
}

.guest-footer {
  display: flex;
  justify-content: center;
}

.guest-footer button {
  padding: 10px 20px;
  background-color: #621cff;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.guest-footer button:hover {
  background-color: var(--button-hover-color);
  box-shadow: var(--button-hover-shadow);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 24px;
  background-color: #f1f1f1;
  font-size: 14px;
  color: #555;
}

/* RESPONSIVE */
@media (max-width: 1249px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 16px;
    right: 24px;
    z-index: 1100;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #f9f9f9;
    padding: 16px;
    position: absolute;
    top: 64px;
    right: 0;
    z-index: 1000;
    border-top: 1px solid #eee;
    justify-self: end;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a,
  .nav-links {
    text-align: center;
    margin: 10px 0;
  }

  .desktop-search {
    display: none;
  }

  .mobile-search {
    display: block;
    margin: 0 auto;
  }

  .guest-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .meta-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .guest-footer button {
    width: 100%;
  }
}
