/* =====================================================
   Array Minds - Bootstrap 5 theme override
   Loaded after bootstrap.min.css and Font Awesome, so
   these rules win. Brand colours match the Array Minds
   logo: navy, purple, magenta on white / light grey.
   ===================================================== */

:root {
  --am-navy-dark: #0A103C;
  --am-navy: #142868;
  --am-purple: #5A23BE;
  --am-magenta: #C8198C;
  --am-light-panel: #F5F6FB;
  --am-text-muted: #5B5F7A;
  --am-hairline: #E3E5F2;
  --am-accent-blue: #8AB4FF;

  /* Re-point Bootstrap's own variables at the Array Minds palette,
     so standard Bootstrap components (badges, alerts, buttons using
     .btn-primary etc.) automatically pick up the brand. */
  --bs-primary: var(--am-purple);
  --bs-primary-rgb: 90, 35, 190;
  --bs-secondary: var(--am-navy);
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-link-color: var(--am-purple);
  --bs-link-hover-color: var(--am-magenta);
  --bs-body-color: #1B1E3D;
}

body { font-family: var(--bs-body-font-family); line-height: 1.65; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: var(--am-navy-dark);
}

a { color: var(--am-purple); }
a:hover { color: var(--am-magenta); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--am-magenta);
  margin-bottom: 10px;
}
.bg-dark-navy .eyebrow { color: #F177C4; }

.lead-muted { color: var(--am-text-muted); }

/* ---------- Buttons ---------- */
.btn-primary {
  background-color: var(--am-magenta);
  border-color: var(--am-magenta);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #a9146f;
  border-color: #a9146f;
}
.btn-outline-light:hover { color: var(--am-navy-dark); }
.btn-outline-am {
  border: 2px solid var(--am-navy);
  color: var(--am-navy);
  background: transparent;
}
.btn-outline-am:hover { background: var(--am-navy); color: #fff; }
.btn-cta {
  background-color: var(--am-magenta);
  color: #fff !important;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
}
.btn-cta:hover { background-color: #a9146f; }

/* ---------- Top bar + header ---------- */
.top-bar { background: var(--am-navy-dark); color: #A9B0D8; }
.top-bar a { color: #C7CCF0; text-decoration: none; }
.top-bar a:hover { color: #fff; }

.site-header { background: var(--am-navy-dark); position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid #22285C; }
.navbar .nav-link { color: #E7E9F7 !important; font-weight: 500; padding: 0.75rem 1.1rem !important; display: flex; align-items: center; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: #fff !important; }
.navbar .dropdown-toggle::after { vertical-align: 0.15em; }

.dropdown-menu {
  border-radius: 10px;
  padding: 10px;
  margin-top: 6px !important;
}
.dropdown-item { border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.92rem; }
.dropdown-item i { width: 20px; color: var(--am-purple); margin-right: 6px; }
.dropdown-item:hover { background: var(--am-light-panel); color: var(--am-magenta); }
.dropdown-item:hover i { color: var(--am-magenta); }

.mega-menu { min-width: 620px; }
.mega-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--am-purple);
  margin-bottom: 10px;
}
.border-start-lg { border-left: 1px solid var(--am-hairline); }

@media (max-width: 991.98px) {
  .mega-menu { min-width: 100%; }
  .border-start-lg { border-left: none; border-top: 1px solid var(--am-hairline); padding-top: 12px; margin-top: 8px; }
  .navbar-collapse { max-height: 80vh; overflow-y: auto; }
}

/* ---------- Section helpers ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.bg-light-panel { background: var(--am-light-panel); }
.bg-dark-navy { background: var(--am-navy-dark); color: #D9DCFA; }
.bg-dark-navy h1, .bg-dark-navy h2, .bg-dark-navy h3, .bg-dark-navy h4 { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--am-navy-dark) 0%, #171E5C 60%, var(--am-purple) 150%);
  color: #fff;
  padding: 6rem 0 5rem;
}
.hero h1 { color: #fff; }
.hero .lead { color: #D9DCFA; }

.page-hero { background: var(--am-navy-dark); color: #fff; padding: 4rem 0 3.5rem; }
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #7d84b8; margin-bottom: 12px; }
.page-hero .breadcrumb a { color: #C7CCF0; }
.page-hero .breadcrumb .active { color: #fff; }

/* ---------- Stat cards ---------- */
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-card .num { font-family: 'Merriweather', serif; font-size: 2.1rem; font-weight: 700; color: var(--am-accent-blue); }
.stat-card .label { font-size: 0.82rem; color: #C7CCF0; margin-top: 4px; }
.stat-card i { font-size: 1.4rem; color: var(--am-accent-blue); margin-bottom: 8px; }

.stat-card-light {
  background: var(--am-light-panel);
  border: 1px solid var(--am-hairline);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-card-light .num { font-family: 'Merriweather', serif; font-size: 2rem; font-weight: 700; color: var(--am-purple); }
.stat-card-light .label { font-size: 0.82rem; color: var(--am-text-muted); margin-top: 4px; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--am-hairline); border-radius: 10px; }
.card-flat { background: var(--am-light-panel); border: 1px solid var(--am-hairline); border-radius: 10px; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--am-purple), var(--am-magenta));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  margin-bottom: 16px;
}

.industry-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #fff;
}
.industry-card i { font-size: 1.8rem; color: var(--am-accent-blue); margin-bottom: 10px; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { padding-left: 4px; margin-bottom: 12px; display: flex; gap: 10px; }
.check-list i { color: var(--am-purple); margin-top: 3px; }

/* ---------- Service anchor blocks ---------- */
.service-block { padding: 3.5rem 0; border-bottom: 1px solid var(--am-hairline); scroll-margin-top: 90px; }
.service-block:last-child { border-bottom: none; }
.service-num {
  font-family: 'Merriweather', serif;
  font-size: 2.6rem;
  color: var(--am-hairline);
  font-weight: 700;
}
.service-icon-lg { display: block; line-height: 1; font-size: 2.2rem; color: var(--am-purple); margin-bottom: 10px; height: 44px; }
.service-icon-lg.icon-img { height: 44px; width: auto; margin-bottom: 12px; object-fit: contain; }

/* ---------- Testimonial ---------- */
.testimonial-card { border: 1px solid var(--am-hairline); border-radius: 10px; padding: 2rem; }
.testimonial-card .quote-mark { font-size: 3rem; color: var(--am-hairline); line-height: 0.5; font-family: 'Merriweather', serif; }
.testimonial-card i.fa-star { color: #F5A623; }

/* ---------- Footer ---------- */
.site-footer { background: var(--am-navy-dark); color: #B7BCE6; }
.site-footer h6.footer-heading { color: #fff; font-weight: 700; margin-bottom: 14px; }
.site-footer a { color: #B7BCE6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-bottom-text { border-color: #22285C !important; color: #8990C4; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff !important;
}
.social-icon:hover { background: var(--am-magenta); }

/* ---------- Blog / Case studies ---------- */
.post-tag {
  background: var(--am-light-panel);
  color: var(--am-purple);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: inline-block;
}
.post-meta { font-size: 0.82rem; color: var(--am-text-muted); }

.case-study { border: 1px solid var(--am-hairline); border-radius: 10px; padding: 1.8rem; margin-bottom: 1.6rem; }
.case-col h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.case-col.challenge h5 { color: var(--am-magenta); }
.case-col.solution h5 { color: var(--am-purple); }
.case-col.outcome h5 { color: var(--am-navy); }
.case-col ul { padding-left: 18px; font-size: 0.9rem; }
.case-col li { margin-bottom: 8px; }
.case-col i { margin-right: 4px; }

/* ---------- Jobs ---------- */
.job-row { border: 1px solid var(--am-hairline); border-radius: 10px; padding: 1.1rem 1.4rem; margin-bottom: 0.9rem; }
.job-row .meta { font-size: 0.85rem; color: var(--am-text-muted); }

/* ---------- Forms ---------- */
.form-control:focus, .form-select:focus {
  border-color: var(--am-purple);
  box-shadow: 0 0 0 0.2rem rgba(90, 35, 190, 0.15);
}
.form-label { font-weight: 600; color: var(--am-navy); font-size: 0.85rem; }

/* ---------- FAQ accordion tweak ---------- */
.accordion-button:not(.collapsed) {
  background-color: var(--am-light-panel);
  color: var(--am-navy);
}
.accordion-button:focus { box-shadow: none; border-color: var(--am-hairline); }
.accordion-button::after { color: var(--am-purple); }

.platform-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10,16,60,0.1); }

/* ---------- Hero background video ---------- */
.hero-video-bg { position: relative; overflow: hidden; padding: 0; }
.hero-video-bg .hero-bg-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-video-bg .hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(10,16,60,0.92) 0%, rgba(23,30,92,0.88) 55%, rgba(90,35,190,0.82) 150%);
}
.hero-video-bg .hero-content { position: relative; z-index: 2; padding: 6rem 0 5rem; }

/* ---------- Hero text entrance animation ---------- */
@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  opacity: 0;
  animation: heroFadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-anim-delay-1 { animation-delay: 0.1s; }
.hero-anim-delay-2 { animation-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .hero-anim { animation: none; opacity: 1; transform: none; }
}

/* ---------- Left-to-right slide, used specifically on the hero H1 + lead paragraph ---------- */
@keyframes heroSlideLTR {
  from { opacity: 0; transform: translateX(-70px); }
  to { opacity: 1; transform: translateX(0); }
}
.hero-anim-ltr {
  opacity: 0;
  animation: heroSlideLTR 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim-ltr { animation: none; opacity: 1; transform: none; }
}

/* ---------- Individual platform-name emphasis pop, inside the H1 ---------- */
@keyframes platformWordPop {
  0% { opacity: 0; transform: translateY(6px) scale(0.94); color: #F177C4; }
  60% { opacity: 1; transform: translateY(0) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); color: inherit; }
}
.platform-word {
  display: inline-block;
  opacity: 0;
  animation: platformWordPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .platform-word { animation: none; opacity: 1; color: inherit; }
}

/* ---------- Scroll-triggered left-to-right pop reveal (Our Products section) ---------- */
@keyframes revealPopLTR {
  0% { opacity: 0; transform: translateX(-60px) scale(0.55); }
  65% { opacity: 1; transform: translateX(0) scale(1.06); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
.reveal-ltr {
  opacity: 0;
  transform: translateX(-60px) scale(0.55);
}
.reveal-ltr.is-visible {
  animation: revealPopLTR 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-ltr[data-reveal-index="0"] { animation-delay: 0s; }
.reveal-ltr[data-reveal-index="1"] { animation-delay: 0.18s; }
.reveal-ltr[data-reveal-index="2"] { animation-delay: 0.36s; }
.reveal-ltr[data-reveal-index="3"] { animation-delay: 0.54s; }
.reveal-ltr[data-reveal-index="4"] { animation-delay: 0.72s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ltr, .reveal-ltr.is-visible { opacity: 1; transform: none; animation: none; }
}

/* ---------- Customer logo slider (auto-scrolling marquee) ---------- */
.logo-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; align-items: center; width: max-content; animation: logo-scroll 32s linear infinite; }
.logo-track:hover { animation-play-state: paused; }
.logo-track .logo-item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 42px; height: 64px; }
.logo-track .logo-item img { max-height: 40px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: filter 0.2s ease, opacity 0.2s ease; }
.logo-track .logo-item img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; } }

/* ---------- Utility ---------- */
.text-purple { color: var(--am-purple) !important; }
.text-magenta { color: var(--am-magenta) !important; }
.bg-purple { background-color: var(--am-purple) !important; }

/* ---------- Careers: apply page (job description + form) ---------- */
.jd-panel { border: 1px solid var(--am-hairline); border-radius: 12px; padding: 2rem; }
.jd-icon { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; background: var(--am-light-panel); color: var(--am-purple); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.jd-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.jd-meta span { background: var(--am-light-panel); border: 1px solid var(--am-hairline); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; color: var(--am-text-muted); }
.jd-meta i { color: var(--am-purple); margin-right: .4rem; }
.jd-subhead { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--am-hairline); color: var(--am-navy); }
.jd-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border: 1px solid var(--am-hairline); border-radius: 8px; color: var(--am-navy-dark); text-decoration: none; }
.jd-link:hover { border-color: var(--am-purple); color: var(--am-purple); }
.jd-link small { color: var(--am-text-muted); white-space: nowrap; }
.apply-card { border: 1px solid var(--am-hairline); border-radius: 12px; padding: 2rem; box-shadow: 0 10px 30px rgba(10, 16, 60, .06); }
@media (min-width: 992px) { .apply-card { position: sticky; top: 100px; } }
@media (max-width: 575.98px) { .jd-panel, .apply-card { padding: 1.4rem; } }

/* ---------- Blog post & case study: sidebar layouts ---------- */
.post-body > p { font-size: 1.02rem; }
.side-sticky { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 992px) { .side-sticky { position: sticky; top: 100px; } }
.side-box { background: var(--am-light-panel); border: 1px solid var(--am-hairline); border-radius: 12px; padding: 1.5rem; }
.side-title { font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--am-purple); display: inline-block; }
.side-item { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--am-hairline); border-radius: 10px; padding: 1rem; margin-bottom: .75rem; text-decoration: none; color: var(--am-navy-dark); transition: border-color .2s, transform .2s, box-shadow .2s; }
.side-item:hover { border-color: var(--am-purple); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,16,60,.07); color: var(--am-navy-dark); }
.side-item-title { display: block; font-weight: 600; line-height: 1.4; font-size: .95rem; }
.side-item:hover .side-item-title { color: var(--am-purple); }
.side-item-meta { display: block; font-size: .78rem; color: var(--am-text-muted); margin-top: .4rem; }
.side-item-icon { flex-direction: row; gap: .85rem; }
.side-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: var(--am-light-panel); color: var(--am-purple); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.side-item-tag { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--am-magenta); margin-bottom: .2rem; }
.side-all { display: inline-block; margin-top: .25rem; font-weight: 600; font-size: .9rem; color: var(--am-purple); text-decoration: none; }
.side-all:hover { color: var(--am-magenta); }
.side-cta { background: linear-gradient(135deg, var(--am-navy-dark), var(--am-purple)); color: #D9DCF5; border-radius: 12px; padding: 1.5rem; }
.side-cta i { color: #F177C4; }

/* ---------- Blog post body typography ---------- */
.post-body h2 { font-size: 1.45rem; margin: 2.25rem 0 .9rem; color: var(--am-navy-dark); }
.post-body h3 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; color: var(--am-navy); }
.post-body ul, .post-body ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.post-body li { margin-bottom: .45rem; }
.post-body li::marker { color: var(--am-purple); font-weight: 600; }
.post-body code { background: var(--am-light-panel); border: 1px solid var(--am-hairline); color: var(--am-purple); padding: .08rem .35rem; border-radius: 4px; font-size: .88em; word-break: break-word; }
.post-body a:not(.btn) { color: var(--am-purple); }
.post-body .lead-muted { font-size: 1.12rem; border-left: 3px solid var(--am-magenta); padding-left: 1rem; }
.post-steps { display: grid; gap: .65rem; margin: 1rem 0 1.4rem; }
.post-step { display: flex; gap: .9rem; align-items: flex-start; background: var(--am-light-panel); border: 1px solid var(--am-hairline); border-radius: 10px; padding: .85rem 1rem; }
.post-step > span { flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 .4rem; border-radius: 999px; background: var(--am-purple); color: #fff; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.post-note { background: #FFF6FB; border: 1px solid #F6CDE6; border-radius: 10px; padding: .9rem 1rem; font-size: .95rem; }
.post-note i { color: var(--am-magenta); margin-right: .4rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--am-hairline); }
.post-nav-link { display: block; border: 1px solid var(--am-hairline); border-radius: 10px; padding: 1rem 1.1rem; text-decoration: none; color: var(--am-navy-dark); transition: border-color .2s; }
.post-nav-link:hover { border-color: var(--am-purple); color: var(--am-purple); }
.post-nav-link small { display: block; color: var(--am-text-muted); font-size: .78rem; margin-bottom: .3rem; }
.post-nav-link span { font-weight: 600; line-height: 1.35; }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } }

/* ---------- Single case study: content left, other case studies right ---------- */
.cs-products { display: flex; flex-wrap: wrap; gap: .5rem; }
.cs-products span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #D9DCF5; border-radius: 999px; padding: .3rem .85rem; font-size: .82rem; }
.cs-products i { color: var(--am-accent-blue); margin-right: .4rem; font-size: .75rem; }
.cs-summary { font-size: 1.12rem; color: var(--am-text-muted); border-left: 3px solid var(--am-magenta); padding-left: 1rem; margin-bottom: 2.5rem; }
.cs-block { margin-bottom: 2.75rem; }
.cs-block-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.cs-block-head h2 { font-size: 1.5rem; margin: 0; }
.cs-block-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #fff; }
.cs-kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--am-text-muted); }
.cs-challenge .cs-block-icon { background: var(--am-magenta); }
.cs-solution .cs-block-icon { background: var(--am-purple); }
.cs-outcome .cs-block-icon { background: var(--am-navy); }
.cs-card { height: 100%; background: #fff; border: 1px solid var(--am-hairline); border-radius: 12px; padding: 1.1rem 1.2rem; }
.cs-card h3 { font-size: .98rem; font-weight: 700; margin-bottom: .35rem; font-family: inherit; color: var(--am-navy-dark); }
.cs-card p { font-size: .92rem; color: var(--am-text-muted); margin: 0; }
.cs-challenge .cs-card { border-top: 3px solid var(--am-magenta); }
.cs-card-outcome { background: var(--am-light-panel); }
.cs-card-outcome h3 i { color: #1F9D63; margin-right: .45rem; }
.cs-steps { display: grid; gap: .75rem; }
.cs-step { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--am-hairline); border-left: 3px solid var(--am-purple); border-radius: 12px; padding: 1rem 1.2rem; }
.cs-step h3 { font-size: .98rem; font-weight: 700; margin-bottom: .25rem; font-family: inherit; color: var(--am-navy-dark); }
.cs-step p { font-size: .92rem; color: var(--am-text-muted); margin: 0; }
.cs-step-num { flex: 0 0 32px; height: 32px; border-radius: 999px; background: #EFE9FB; color: var(--am-purple); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.cs-metrics { background: linear-gradient(135deg, var(--am-navy-dark), var(--am-purple)); border-radius: 14px; padding: 1.4rem; margin-bottom: 1rem; }
.cs-metrics-label { color: #F177C4; font-size: .74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: .8rem; }
.cs-metric { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 1rem 1.2rem; height: 100%; }
.cs-metric-value { display: block; font-family: 'Merriweather', serif; font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.cs-metric-label { display: block; color: #C7CCF0; font-size: .9rem; margin-top: .3rem; }
.cs-shift { background: var(--am-navy-dark); border-radius: 14px; padding: 1.6rem 1.75rem; color: #D9DCF5; }
.cs-shift-text { font-family: 'Merriweather', serif; font-size: 1.1rem; color: #fff; margin: .5rem 0 1rem; line-height: 1.6; }
.cs-shift-result { font-size: .93rem; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.cs-shift-result strong { color: #F177C4; }

/* ---------- Nav dropdown fixes (hover on desktop, tap on mobile) ---------- */
@media (min-width: 992px) {
  /* Invisible bridge over the gap so the menu doesn't close while moving the mouse into it */
  .navbar .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}
@media (max-width: 991.98px) {
  .navbar .dropdown-menu { margin: 0 0 .5rem !important; box-shadow: none !important; }
  .navbar .nav-link.dropdown-toggle { justify-content: space-between; }
  .navbar .nav-link.dropdown-toggle::after { transition: transform .2s; }
  .navbar .nav-link.dropdown-toggle.show::after { transform: rotate(180deg); }
}

/* ---------- Homepage testimonials carousel ---------- */
.testimonials-section { background: linear-gradient(135deg, #2A1F6E 0%, #3A2A85 55%, var(--am-purple) 140%); position: relative; overflow: hidden; }
.testimonials-section .eyebrow { color: #F177C4; }
.testimonial-carousel { position: relative; padding: 0 4.5rem 3rem; }
.testimonial-carousel::before, .testimonial-carousel::after { font-family: 'Merriweather', Georgia, serif; font-size: 9rem; line-height: 1; color: var(--am-magenta); opacity: .85; position: absolute; pointer-events: none; }
.testimonial-carousel::before { content: "\201C"; top: -1.5rem; left: 1.5rem; }
.testimonial-carousel::after { content: "\201D"; bottom: -3rem; right: 1.5rem; }
.testimonial-slide { max-width: 860px; margin: 0 auto; text-align: center; padding: 1rem 2rem; }
.testimonial-slide blockquote p { color: #EDEBFA; font-size: 1.2rem; line-height: 1.75; margin-bottom: 1.75rem; }
.testimonial-slide figcaption { display: inline-flex; align-items: center; gap: .85rem; text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .5rem 1.25rem .5rem .5rem; }
.testimonial-slide figcaption strong { display: block; color: #fff; font-size: .98rem; }
.testimonial-slide figcaption small { display: block; color: #C7CCF0; font-size: .85rem; }
.testimonial-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--am-magenta); color: #fff; font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; }
.testimonial-carousel .carousel-control-prev, .testimonial-carousel .carousel-control-next { width: 3.5rem; opacity: .85; color: #fff; font-size: 1.6rem; }
.testimonial-carousel .carousel-control-prev:hover, .testimonial-carousel .carousel-control-next:hover { opacity: 1; color: #F177C4; }
.testimonial-carousel .carousel-indicators { margin-bottom: 0; }
.testimonial-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; background-color: #fff; opacity: .4; }
.testimonial-carousel .carousel-indicators .active { opacity: 1; background-color: var(--am-magenta); }
@media (max-width: 767.98px) {
  .testimonial-carousel { padding: 0 2rem 3rem; }
  .testimonial-carousel::before, .testimonial-carousel::after { font-size: 5.5rem; }
  .testimonial-carousel::before { left: -.25rem; top: -1rem; }
  .testimonial-carousel::after { right: -.25rem; bottom: -1.5rem; }
  .testimonial-slide { padding: 1rem 0; }
  .testimonial-slide blockquote p { font-size: 1.02rem; }
  .testimonial-slide figcaption { border-radius: 14px; }
  .testimonial-carousel .carousel-control-prev, .testimonial-carousel .carousel-control-next { width: 2rem; font-size: 1.2rem; }
}
/* Keep slides the same height so the page doesn't jump between short and long quotes */
.testimonial-slide { min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
@media (max-width: 767.98px) { .testimonial-slide { min-height: 540px; } }

/* ---------- Homepage hero: mobile & tablet spacing ---------- */
@media (max-width: 991.98px) {
  .hero-video-bg .hero-content { padding-top: 3.5rem; padding-bottom: 3rem; }
  .hero-video-bg .hero-content .eyebrow { line-height: 1.6; }
}
@media (max-width: 575.98px) {
  .hero-video-bg .hero-content { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-video-bg .hero-content h1 { font-size: 1.85rem; line-height: 1.3; }
  .hero-video-bg .hero-content h1 br { display: none; }
  .hero-video-bg .hero-content .lead { font-size: 1.05rem; line-height: 1.7; }
  .hero-video-bg .hero-content .btn-lg { width: 100%; }
  .hero-video-bg .hero-content .mb-5 { margin-bottom: 0 !important; }
}

/* ---------- Mobile/tablet: stop pages being wider than the screen ----------
   Bootstrap's .g-5 rows use a 3rem side gutter, which pulls each row 1.5rem past
   the container's 0.75rem padding and makes the page scroll sideways on phones.
   Below 992px the columns stack, so the side gutter isn't needed: shrink it to
   the container padding (vertical spacing between stacked columns is unchanged). */
@media (max-width: 991.98px) {
  .row.g-5, .row.gx-5, .row.g-4, .row.gx-4 { --bs-gutter-x: 1.5rem; }
}
/* Safety net: clip any stray horizontal overflow without breaking the sticky header */
body { overflow-x: clip; }
/* A little more breathing room at the screen edge on phones (20px instead of 12px) */
@media (max-width: 575.98px) {
  .container, .container-fluid { --bs-gutter-x: 2.5rem; }
}

/* =====================================================================
   Events: listing (resources/events.php) and detail pages
   ===================================================================== */

/* Featured "next event" */
.ev-featured { display: block; background: #fff; border: 1px solid var(--am-hairline); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 14px 34px rgba(10,16,60,.08); transition: transform .2s, box-shadow .2s; }
.ev-featured:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(10,16,60,.12); color: inherit; }
.ev-featured-img { height: 100%; min-height: 260px; background-size: cover; background-position: 75% center; }
.ev-featured-body { padding: 2rem 2.25rem; }
.ev-featured-body h2 { font-size: 1.6rem; margin: .6rem 0 .75rem; }
.ev-featured-body p { color: var(--am-text-muted); }
.ev-next { display: inline-block; background: #FDE8F4; color: var(--am-magenta); font-size: .74rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; border-radius: 999px; padding: .3rem .8rem; }
.ev-meta { display: flex; flex-direction: column; gap: .4rem; font-size: .93rem; color: var(--am-navy); }
.ev-meta i { width: 22px; color: var(--am-purple); }

/* Filter pills */
.ev-filters { display: inline-flex; background: var(--am-light-panel); border: 1px solid var(--am-hairline); border-radius: 999px; padding: 4px; }
.ev-filters button { border: 0; background: transparent; color: var(--am-navy); font-weight: 600; font-size: .9rem; padding: .45rem 1.1rem; border-radius: 999px; transition: background .2s, color .2s; }
.ev-filters button:hover { color: var(--am-purple); }
.ev-filters button.active { background: var(--am-navy-dark); color: #fff; }

/* Event card */
.ev-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--am-hairline); border-radius: 14px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(10,16,60,.10); border-color: #D6D0F2; }
.ev-card-img { position: relative; aspect-ratio: 16 / 8; background-size: cover; background-position: 78% center; }
.ev-type { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--am-purple); font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; border-radius: 999px; padding: .3rem .7rem; }
.ev-status { position: absolute; top: 12px; right: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; border-radius: 999px; padding: .3rem .7rem; }
.ev-status-upcoming { background: #1F9D63; color: #fff; }
.ev-status-past { background: rgba(10,16,60,.75); color: #D9DCF5; }
.ev-date-badge { position: absolute; left: 12px; bottom: -22px; width: 64px; background: #fff; border-radius: 12px; box-shadow: 0 8px 20px rgba(10,16,60,.18); text-align: center; padding: .4rem 0 .45rem; z-index: 1; }
.ev-date-badge .d { display: block; font-family: 'Merriweather', serif; font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--am-magenta); }
.ev-date-badge .m { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--am-navy); }
.ev-card-body { padding: 2rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.ev-card-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .82rem; color: var(--am-text-muted); margin-bottom: .6rem; }
.ev-card-meta i { color: var(--am-purple); margin-right: .35rem; }
.ev-card h3 { font-size: 1.08rem; line-height: 1.4; margin-bottom: .5rem; }
.ev-card h3 a { color: var(--am-navy-dark); text-decoration: none; }
.ev-card:hover h3 a { color: var(--am-purple); }
.ev-card p { font-size: .9rem; color: var(--am-text-muted); flex: 1; }
.ev-card-link { display: inline-block; margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--am-purple); text-decoration: none; }
a.ev-card-link:hover { color: var(--am-magenta); }
.ev-card.is-past .ev-card-img { filter: saturate(.55); }

/* Detail page hero */
.ev-hero { position: relative; background-color: var(--am-navy-dark); background-size: cover; background-position: center right; color: #fff; padding: 4.5rem 0 4rem; min-height: 420px; display: flex; align-items: center; }
.ev-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,60,.94) 0%, rgba(10,16,60,.82) 45%, rgba(10,16,60,.25) 100%); }
.ev-hero .breadcrumb { --bs-breadcrumb-divider-color: #7d84b8; margin-bottom: 14px; }
.ev-hero .breadcrumb a { color: #C7CCF0; }
.ev-hero .breadcrumb .active { color: #fff; }
.ev-hero h1 { color: #fff; max-width: 760px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; margin-bottom: 1.25rem; }
.ev-hero-tag { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border-radius: 999px; padding: .3rem .8rem; }
.ev-hero-tag-upcoming { background: #1F9D63; border-color: #1F9D63; }
.ev-hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; color: #D9DCF5; font-size: 1rem; }
.ev-hero-meta i { color: #F177C4; margin-right: .5rem; }

/* Detail page body (left) */
.ev-body h2 { font-size: 1.45rem; margin: 2.25rem 0 .9rem; }
.ev-body > p { font-size: 1.02rem; }
.ev-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; background: var(--am-light-panel); border: 1px solid var(--am-hairline); border-radius: 14px; padding: 1.25rem; }
.ev-fact { display: flex; gap: .85rem; align-items: flex-start; }
.ev-fact-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: #fff; border: 1px solid var(--am-hairline); color: var(--am-purple); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.ev-fact small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--am-text-muted); }
.ev-fact strong { display: block; color: var(--am-navy-dark); font-size: .98rem; }
.ev-fact-note { display: block; font-size: .82rem; color: var(--am-text-muted); margin-top: .1rem; }
.ev-agenda { list-style: none; padding: 0; margin: 0 0 .5rem; border-left: 2px solid #E4DDF7; }
.ev-agenda li { position: relative; display: flex; gap: 1.25rem; padding: .7rem 0 .7rem 1.4rem; }
.ev-agenda li::before { content: ""; position: absolute; left: -7px; top: 1.05rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--am-purple); }
.ev-agenda-time { flex: 0 0 52px; font-weight: 700; color: var(--am-purple); font-variant-numeric: tabular-nums; }
.ev-agenda-item { color: var(--am-navy-dark); }
.ev-speaker { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--am-hairline); border-radius: 12px; padding: .9rem 1rem; height: 100%; }
.ev-speaker img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; border: 3px solid #EFE9FB; }
.ev-speaker strong { display: block; color: var(--am-navy-dark); }
.ev-speaker span { display: block; font-size: .85rem; color: var(--am-text-muted); }
.ev-audience { margin-top: 2.25rem; background: #FFF6FB; border: 1px solid #F6CDE6; border-radius: 12px; padding: 1.25rem 1.4rem; }
.ev-audience h2 { margin: 0; color: var(--am-navy-dark); }
.ev-audience i { color: var(--am-magenta); }

/* Detail page sidebar (right) */
.ev-side { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 992px) { .ev-side { position: sticky; top: 100px; } }
.ev-register { background: #fff; border: 1px solid var(--am-hairline); border-top: 4px solid var(--am-magenta); border-radius: 14px; padding: 1.5rem; box-shadow: 0 14px 34px rgba(10,16,60,.08); }
.ev-register h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.ev-register-sub { font-size: .85rem; color: var(--am-text-muted); margin-bottom: 1rem; }
.ev-register .form-label { font-size: .8rem; font-weight: 600; color: var(--am-navy); margin-bottom: .2rem; }
.ev-register .form-control, .ev-register .form-select { font-size: .92rem; padding: .5rem .7rem; }
.ev-consent { font-size: .82rem; color: var(--am-text-muted); margin-top: .35rem; }
.ev-cal-link { display: block; text-align: center; margin-top: .85rem; font-size: .88rem; font-weight: 600; color: var(--am-purple); text-decoration: none; }
.ev-cal-link:hover { color: var(--am-magenta); }
.ev-register-done, .ev-register-closed { text-align: center; }
.ev-register-closed { border-top-color: var(--am-navy); }
.ev-register-done p, .ev-register-closed p { font-size: .92rem; color: var(--am-text-muted); }
.ev-done-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: .75rem; background: #E6F6EE; color: #1F9D63; }
.ev-register-closed .ev-done-icon { background: var(--am-light-panel); color: var(--am-navy); }
.ev-side-help { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--am-text-muted); background: var(--am-light-panel); border: 1px solid var(--am-hairline); border-radius: 12px; padding: .85rem 1rem; }
.ev-side-help i { color: var(--am-purple); margin-top: .2rem; }
.ev-side-help a { color: var(--am-purple); word-break: break-all; }

@media (max-width: 991.98px) {
  .ev-featured-img { min-height: 200px; }
  .ev-hero { min-height: 0; padding: 3rem 0; background-position: 85% center; }
  .ev-hero-overlay { background: linear-gradient(180deg, rgba(10,16,60,.80) 0%, rgba(10,16,60,.92) 100%); }
  #register { scroll-margin-top: 90px; }
}
@media (max-width: 575.98px) {
  .ev-featured-body { padding: 1.5rem 1.25rem; }
  .ev-featured-body h2 { font-size: 1.3rem; }
  .ev-facts { grid-template-columns: 1fr; }
  .ev-hero-meta { flex-direction: column; gap: .45rem; font-size: .95rem; }
  .ev-hero .btn-lg { width: 100%; }
  .ev-filters { width: 100%; }
  .ev-filters button { flex: 1; }
}
/* Desktop: keep the hero title clear of the banner icon, and show the full icon on the featured card */
@media (min-width: 992px) {
  .ev-hero { min-height: 460px; background-position: right center; }
  .ev-hero h1, .ev-hero-meta { max-width: 620px; }
  .ev-featured-img { background-position: right center; }
}
