/* Floating + slide-in logo */
.floating-logo {
  top: 20px;
  right: 20px;                 /* final resting position */
  width: clamp(300px, 30vw, 600px);
  z-index: 9999;
  will-change: transform;
  animation:
    slideInFromRight 0.9s ease-out forwards,
    floatY 3s ease-in-out 0.9s infinite;
}

@keyframes slideInFromRight {
  0%   { transform: translateX(60vw); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateX(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-40px); }
}

.floating-logo:hover {
  animation-play-state: paused;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .floating-logo { animation: none; }
}

@media (max-width: 480px) {
  .floating-logo { top: 12px; right: 12px; }
}

/* Parent row that can wrap */
.responsive-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

/* Phone portrait: drop image under text but keep bobbing */
@media (max-width: 768px) {
  .responsive-row .floating-logo {
    position: static !important;   /* rejoin document flow */
    order: 2;                      /* appear after the text in the row */
    align-self: flex-start;        /* align to left edge */
    z-index: auto;                 /* no overlay */
    margin-top: 8px;
    width: clamp(225px, 60vw, 450px); /* scale nicely on phones */
    /* keep your float animation; example below if you need it */
    animation: floatY 3.2s ease-in-out infinite;
  }
  /* Ensure the text block comes first */
  .responsive-row .text-col { order: 1; }
}

* =========================
   Featured Companies (centered, responsive, unclipped)
   ========================= */

/* Tunables */
:root{
  --fc-gap: 5px;
  --fc-radius: 14px;
  --fc-ring: rgba(44,62,80,.10);
  --fc-shadow: 0 1px 6px rgba(0,0,0,.06);
  --fc-shadow-h: 0 6px 16px rgba(0,0,0,.12);
  --fc-wrap-maxw: 1600px;
}

.featured-companies{    
	padding-top: 0 !important;
  margin-top: 0 !important; }
.featured-companies.fc--panel{
  background:#f4ecda;
  border-top:1px solid rgba(44,62,80,.06);
  border-bottom:1px solid rgba(44,62,80,.06);
}

.featured-companies .fc-wrap{
  display:grid;
  grid-template-columns: repeat(3, 1fr);grid-template-columns: repeat(3, minmax(250px, 1fr)); /* always 4 columns on desktop */
  gap: var(--fc-gap);
  max-width: none;
  margin:0 auto;
  padding:0 16px;
	justify-content: center;  /* center the grid items */
}

.fc-card{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio: 10 / 10; /* a little taller cards so logos have more room */
  background:transparent;
  border:1px solid var(--fc-ring);
  border-radius:var(--fc-radius);
  box-shadow:var(--fc-shadow);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fc-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--fc-shadow-h);
  border-color:rgba(44,62,80,.18);
}

.fc-card img{
  display:block;
  width:auto;
  height:auto;
  max-width:90%;   /* make logo take more horizontal space */
  max-height:85%;  /* make logo take more vertical space */
  object-fit:contain;
  transition:transform .15s ease;
}
.fc-card:hover img{ transform:scale(1.04); }

.fc-cta{ text-align:center; margin:14px 0 2px; }
.fc-viewall{ color:#2C5AFF; text-decoration:none; font-weight:700; font-size: 20px;}
.fc-viewall:hover{ color:#1f4ae0; text-decoration:underline; }

.featured-companies figure{ margin:0 !important; }

/* Tablet: 3 logos per row, keep them big */
@media (max-width:980px){
  .featured-companies .fc-wrap{ grid-template-columns: repeat(3, 1fr); }
  .fc-card img{ max-width:92%; max-height:88%; }
}
/* Phone: 2 logos per row */
@media (max-width:560px){
  .featured-companies .fc-wrap{ grid-template-columns: repeat(2, 1fr); }
  .fc-card img{ max-width:95%; max-height:90%; }
}

.featured-organizer .fo-wrap{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* auto 3~5 per row */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.featured-organizer .fo-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.fo-card {
  display: flex;
  flex-direction: column;   /* stack logo and title */
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(44, 62, 80, 0.10);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease,
              box-shadow 0.15s ease,
              border-color 0.15s ease;
}

.fo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: rgba(44, 62, 80, 0.18);
}

.fo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 100px;   /* logo size */
  object-fit: contain;
  margin-bottom: 10px;
}

.fo-title {
  font-size: 16px;
  font-weight: 600;
  color: #2C3E50;
  text-align: center;
  margin: 0;
}

.featured-organizer .fo-card a {
  display: inline-block;   /* don’t stretch full width */
  text-align: center;      /* keep image + title centered */
}

.featured-organizer .fo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tablet */
@media (max-width: 980px) {
  .featured-organizer .fo-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Phone */
@media (max-width: 560px) {
  .featured-organizer .fo-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .fo-title {
    font-size: 15px;
  }
}

/* style to show click/input prevention */
.prevent-changes,
.prevent-changes input,
.prevent-changes select,
.prevent-changes label {
  opacity: 0.7;
  cursor: not-allowed;
}

.prevent-changes select,
.prevent-changes input[type="checkbox"],
.prevent-changes input[type="radio"] {
  background-color: #f0f0f0;
  outline: 2px dashed #aaa;
}

/* Make input fields readonly */
.readonly-field input,
.readonly-field textarea,
.readonly-field select {
    pointer-events: none;
    background-color: #f9f9f9;
    color: #555;
}

/* For Choices.js-enhanced dropdowns */
.readonly-field .choices__inner {
    pointer-events: none;
    background-color: #f9f9f9;
}

/* Disable file uploads or checkboxes if necessary */
.readonly-field input[type="file"],
.readonly-field input[type="checkbox"],
.readonly-field input[type="radio"] {
    pointer-events: none;
}

/* --- Featured Cities: layout --- */
.featured-cities .fcity-wrap{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;              /* center rows */
  gap:12px;                             /* space between cards */
  max-width:1600px;
  margin:0 auto;
  padding:0 16px;
}

/* Card: allow multiple per row (NOT full width) */
.fcity-card{
  flex:0 1 clamp(200px, 22vw, 280px);   /* ~3–5 per row depending on width */
  display:flex;
  border:1px solid var(--fcity-ring, rgba(44,62,80,.10));
  border-radius:var(--fcity-radius, 14px);
  box-shadow:var(--fcity-shadow, 0 1px 6px rgba(0,0,0,.06));
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  background:#fff;                      /* optional: makes the date strip clean */
}

/* Make entire card a link */
.fcity-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  color:inherit;
  width:100%;
}

/* Image sits on top; doesn't force 100% row width */
.fcity-card img{
  display:block;
  width:100%;
  height:180px;                         /* fixed height keeps grid tidy */
  object-fit:cover;
  transition:transform .15s ease;
}
.fcity-card:hover img{ transform:scale(1.03); }
.fcity-card:hover{ transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.12); }

/* Date row: close to image, no big margins */
.fcity-date{
  width:100%;
  text-align:center;
  padding:8px 10px;
  font-size:16px;
  font-weight:600;
  background:#ffffff;
  color:#333;
  border-top:1px solid rgba(0,0,0,.08);
  margin:0;                              /* ← removes large default figcaption margin */
  line-height:1.3;
}

/* Remove default figure margins that can add gaps */
.featured-cities figure{ margin:0 !important; }

/* Make the container full width (optional but helps) */
.featured-cities { width:100%; }
.featured-cities .fcity-wrap { max-width:1600px; margin:0 auto; }

/* Ensure width calculations include borders/padding */
.fcity-card { box-sizing: border-box; }

/* Default: 1 per row on small screens */
.fcity-card{
  flex: 0 1 100%;
}

/* ≥700px: 2 per row */
@media (min-width:700px){
  .fcity-card{
    flex: 0 1 calc(50% - 16px);   /* 16px ≈ your gap; match .fcity-wrap gap */
  }
}

/* ≥1024px: 3 per row */
@media (min-width:1024px){
  .fcity-card{
    flex: 0 1 calc(33.333% - 16px);
  }
}

/* If your gap is not 16px, replace 16px above with the exact gap value */

/* City title — apply class name "city-title" to any block */
.city-title{
  font-size: clamp(32px, 4vw + 8px, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #364152;      /* Graphite Indigo color */
  text-align: center;
  margin: 24px 0 12px;
}

/* Optional slim gold underline */
.city-title::after{
  content:"";
  display:block;
  width:72px;
  height:4px;
  margin:12px auto 0;
  background:#D4B15F;      /* gold accent */
  border-radius:2px;
}

/* Ensure links inside inherit styling */
.city-title a{ color:inherit; text-decoration:none; }
.city-title a:hover{ text-decoration:underline; }

/* Start of Sticky-CTA-2 options */
/* Container */

/* Hide the checkbox toggle */
.sticky-cta-wrap .cta-toggle{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Main CTA button */
.sticky-cta-btn{
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 18px;
  border-radius: 28px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  cursor: pointer;
  user-select: none;
  transition: background .2s ease, transform .2s ease;
}
.sticky-cta-btn:hover{ background:#222; }
.sticky-cta-btn:active{ transform: translateY(1px); }

/* Dropdown panel */
.sticky-cta-menu{
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  overflow: hidden;
  width: 260px;

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

/* Show panel when toggled */
.cta-toggle:checked ~ .sticky-cta-menu{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Menu items */
.sticky-cta-menu .cta-item{
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.sticky-cta-menu .cta-item:last-child{ border-bottom: 0; }
.sticky-cta-menu .cta-item:hover{
  background: #f6f8ff;
  color: #0f47ff;
}

/* --- Mobile: make it a bottom dock --- */
@media (max-width: 768px){
  .sticky-cta-wrap{
    top: auto;
    bottom: 16px;
    right: auto;
    transform: none;
    left: 16px;                    /* let it stretch full width */
  }
  .sticky-cta-btn{
    display:inline-block;
    text-align:center;
    border-radius: 12px;
    padding: 14px 16px;
  }
  .sticky-cta-menu{
    width: auto;
    margin-top: 10px;
    border-radius: 12px;
  }
  .sticky-cta-menu .cta-item{
    padding: 14px 16px;
    font-size: 16px;
  }
}

/* Pin the CTA to bottom-right of the viewport */
.sticky-cta-wrap{
  position: fixed !important;   /* make sure it's fixed to the viewport */
  bottom: 24px !important;
  right: 24px !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 9999 !important;      /* stay above other elements */
}
/* End of Sticky-CTA-2 options */