/* Meath Coast CFR – Design inspired by MedCare247
   Professional medical / ambulance style */

:root {
  --color-bg: #f5f6f8;
  --color-brand-green: #0d6b5c;
  --color-brand-green-dark: #094d43;
  --color-surface: #ffffff;
  --color-text: #1a1d21;
  --color-text-muted: #4b5563;
  --color-primary: var(--color-brand-green);
  --color-primary-dark: var(--color-brand-green-dark);
  --color-accent: #dc2626;
  --color-accent-hover: #b91c1c;
  --color-border: #e5e7eb;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  background: var(--color-brand-green);
}

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

/* Sections with light backgrounds keep dark text */
.about,
.services,
.why-choose,
.emergency,
.contact {
  color: var(--color-text);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header – white bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  color: var(--color-brand-green);
  box-shadow: var(--shadow-md);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: var(--space-md) 0;
}

/* Desktop: logo and nav spread normally; left/right don’t force equal width */
.header-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-lg);
  min-width: 0;
  flex: 1 1 auto;
}

.logo {
  flex: 0 0 auto;
  color: var(--color-brand-green);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
}

.logo strong {
  font-weight: 700;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav a:hover {
  color: var(--color-brand-green);
}

/* Active nav item on current page */
body.page-home .nav a[href="index.html"],
body.page-about .nav a[href="about.html"],
body.page-services .nav a[href="services.html"],
body.page-emergency .nav a[href="emergency.html"],
body.page-contact .nav a[href="contact.html"],
body.page-map .nav a[href="map.html"] {
  color: var(--color-brand-green);
  font-weight: 600;
}

.btn-header {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-brand-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-header:hover {
  background: var(--color-brand-green-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-brand-green);
  border-radius: var(--radius);
}

.nav-toggle:hover {
  background: rgba(13, 107, 92, 0.08);
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Nav overlay (mobile) – backdrop when menu is open */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 98;
  cursor: pointer;
}

.nav-overlay.is-visible {
  display: block;
}

/* Collapsible nav / hamburger from 900px down */
@media (max-width: 900px) {
  .btn-header {
    display: none !important;
  }

  /* On mobile: equal-width left/right so logo stays centered */
  .header-left {
    flex: 1;
  }

  .header-right {
    flex: 1;
  }

  .logo {
    text-align: center;
  }

  /* Show hamburger – always visible on small screens */
  .nav-toggle {
    display: flex !important;
    z-index: 102;
    position: relative;
    color: var(--color-brand-green);
    border: 1px solid rgba(13, 107, 92, 0.3);
  }

  /* Nav becomes full-height sidebar; off-screen to the left when closed */
  .site-header .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: min(320px, 85vw);
    max-width: 320px;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background: var(--color-surface);
    padding: var(--space-xl);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 101;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease, visibility 0.25s;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav a {
    display: block;
    padding: var(--space-md) 0;
    color: var(--color-text);
    font-size: 1rem;
  }

  .nav a:hover,
  body.page-home .nav a[href="index.html"],
  body.page-about .nav a[href="about.html"],
  body.page-services .nav a[href="services.html"],
  body.page-emergency .nav a[href="emergency.html"],
  body.page-contact .nav a[href="contact.html"],
  body.page-map .nav a[href="map.html"] {
    color: var(--color-brand-green);
  }

  /* Hamburger to X when open */
  .nav-toggle {
    transition: transform 0.2s;
  }

  .nav-toggle span {
    transition: transform 0.2s, opacity 0.2s;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Responsive: hero and layout on small screens */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: var(--space-3xl) var(--space-md);
    flex-direction: column;
    text-align: center;
  }

  .hero .container {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-inner {
    max-width: 100%;
    order: -1;
    margin-bottom: var(--space-lg);
  }

  /* Mobile-only logo: in flow under the title */
  .hero-logo-mobile {
    display: block;
    width: 160px;
    max-width: 90vw;
    height: auto;
    margin: 0 auto var(--space-md);
    object-fit: contain;
    opacity: 0.9;
    border-radius: 2.5rem;
  }
  .hero-logo-desktop {
    display: none;
  }

  .hero::after {
    display: none;
  }

  .hero-cta {
    justify-content: center;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }
}

/* Hero – text left, logo right */
.hero {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  margin-top: 2rem;
  padding: var(--space-4xl) var(--space-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 32rem;
}

/* Hero logos: mobile and desktop are separate elements. Mobile logo has no base display:none so the max-width rule can show it. */
.hero-logo-desktop {
  display: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) 45%, transparent 70%);
  pointer-events: none;
}

/* Desktop: show logo on the right */
@media (min-width: 901px) {
  .hero-logo-mobile {
    display: none;
  }
  .hero-logo-desktop {
    display: block;
    position: absolute;
    left: 100%;
    margin-left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    right: auto;
    width: auto;
    height: 85%;
    max-height: 22rem;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    opacity: 0.9;
    border-radius: 2.5rem;
    z-index: 0;
  }
}

.hero .container {
  margin-left: 0;
  margin-right: auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0;
  text-align: left;
}

.hero h1 {
  margin: 0 0 var(--space-md);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-subtitle {
  margin: 0 0 var(--space-lg);
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.95;
  text-align: center;
}

.hero-tagline {
  margin: 0 0 var(--space-2xl);
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.9;
  text-align: center;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Page hero – inner pages (smaller than home hero) */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 var(--space-sm);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.page-hero-tagline {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Section CTA – button/link below section content */
.section-cta {
  text-align: center;
  margin: var(--space-2xl) 0 0 !important;
}

.section-cta .btn {
  margin: 0;
}

.about .section-cta,
.services .section-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  text-align: center;
}

.about .section-cta .btn,
.services .section-cta .btn {
  display: inline-block;
}

/* Sections – alternating light/white */
.section {
  padding: var(--space-4xl) 0;
}

.section h2 {
  margin: 0 0 var(--space-xl);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}

.lead {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section > .container > p {
  margin: 0 0 var(--space-md);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section > .container > p:last-of-type {
  margin-bottom: 0;
}

/* Center CTA buttons – override paragraph constraints */
.section > .container > p.section-cta {
  max-width: none !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

/* About */
.about {
  background: linear-gradient(180deg, rgba(13, 107, 92, 0.04) 0%, var(--color-surface) 20%);
}

.about .lead,
.about p {
  text-align: center;
}

/* About page – unique styling */
.page-about .page-hero {
  padding: var(--space-4xl) 0;
  position: relative;
}

.page-about .page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.about-container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.about-title {
  position: relative;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl) !important;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.about-intro {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: var(--space-xl) !important;
}

.about-coverage {
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-xl) !important;
}


/* Card grid – 4 columns like MedCare247 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Services */
.services {
  background: var(--color-bg);
}

/* Why choose – alternate card style */
.why-choose {
  background: var(--color-surface);
}

.card-alt {
  border-color: #e0e7ef;
}

.card-alt h3 {
  color: var(--color-primary-dark);
}

/* Emergency */
.emergency {
  background: #fef2f2;
  border-top: 4px solid var(--color-accent);
}

.emergency-page {
  padding: var(--space-4xl) 0;
}

.emergency-page h1 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.emergency-inner .lead {
  color: var(--color-text);
}

.emergency-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.number-link {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-accent);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.number-link:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.number-or {
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Contact */
.contact {
  background: var(--color-surface);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-brand-green);
  display: inline-block;
}

.contact-get-in-touch {
  padding-right: var(--space-xl);
}

.contact-intro-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-2xl) !important;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-detail-item h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-xs);
}

.contact-detail-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
}

.contact-detail-item a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-detail-item a:hover {
  text-decoration: underline;
}

.contact-link-facebook {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-link-facebook .icon-facebook {
  display: inline-flex;
  color: #1877f2;
}

.contact-link-facebook:hover .icon-facebook {
  color: #0d65d9;
}

/* Contact form – MedCare247 style */
.contact-form-wrap {
  background: var(--color-bg);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.contact-form-wrap .contact-heading {
  margin-bottom: var(--space-xl);
}

.contact-form.medcare-form {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.contact-form.medcare-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  margin-top: var(--space-lg);
}

.contact-form.medcare-form label:first-of-type {
  margin-top: 0;
}

.contact-form .required {
  color: var(--color-accent);
}

.contact-form.medcare-form input,
.contact-form.medcare-form select,
.contact-form.medcare-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form.medcare-form input::placeholder,
.contact-form.medcare-form textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form.medcare-form input:focus,
.contact-form.medcare-form select:focus,
.contact-form.medcare-form textarea:focus {
  outline: none;
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 2px rgba(13, 107, 92, 0.2);
}

.contact-form.medcare-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form.medcare-form .btn-submit {
  width: 100%;
  margin-top: var(--space-xl);
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-get-in-touch {
    padding-right: 0;
  }

  .contact-form-wrap {
    padding: var(--space-xl);
  }
}

/* CTA section – “Ready to work with us” style */
.cta-section {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin: 0 0 var(--space-sm);
}

.cta-inner p {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.cta-inner .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
}

/* Follow us on social media – home page */
.social-section {
  background: var(--color-primary-dark);
  color: #fff;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.social-heading {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 var(--space-md);
}

.social-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.social-link {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s, border-color 0.2s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Map page – full-width embedded map */
.map-section {
  padding-bottom: var(--space-2xl);
  color: #fff;
}

.map-section .lead,
.map-section .container p {
  color: #fff;
  opacity: 0.95;
}

.map-section .container {
  margin-bottom: var(--space-lg);
}

.map-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0 var(--space-lg);
  margin: 0 auto var(--space-lg);
}

.map-iframe-wrapper {
  position: relative;
  z-index: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border: 0;
  border-radius: var(--radius-lg);
}

/* Hides Google My Maps header (title, owner) above the map – kept thin so directions panel is not obscured */
.map-embed-cover-top {
  position: absolute;
  top: 0;
  left: var(--space-lg);
  right: var(--space-lg);
  height: 48px;
  background: var(--color-brand-green);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hides Google My Maps "Created with" bar below the map – kept thin so directions panel stays visible */
.map-embed-cover {
  position: absolute;
  bottom: 0;
  left: var(--space-lg);
  right: var(--space-lg);
  height: 52px;
  background: var(--color-brand-green);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.map-footer {
  margin-top: 0;
}

.map-open-link {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 !important;
}

.map-open-link a {
  color: var(--color-primary);
  font-weight: 600;
}

.map-open-link a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  padding: var(--space-xl) 0;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* Infinite carousel – bottom of home page */
.infinite-carousel-section {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
  overflow: hidden;
  width: 100%;
}

.infinite-carousel {
  margin: 0 auto;
  padding: 20px var(--space-lg);
  width: 75%;
  max-width: 75%;
  overflow: hidden;
  display: flex;
  min-width: 0;
}

.infinite-carousel-track {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  will-change: transform;
  animation: infinite-carousel-scroll 15s linear infinite;
  min-width: min-content;
  pointer-events: none; /* prevent clicks from stopping the animation */
}


.infinite-carousel-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding-right: 20px;
  flex: 0 0 auto;
  min-width: min-content;
  pointer-events: none;
}

@keyframes infinite-carousel-scroll {
  0% {
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
  }
}

.infinite-carousel-item {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 24px;
  box-shadow: rgba(0, 0, 0, 0.1) 5px 5px 20px 0;
  overflow: hidden;
  display: block;
  background: var(--color-border);
  pointer-events: none;
}

.infinite-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Carousel responsive – keep as horizontal strip on all screen sizes */
@media (max-width: 768px) {
  .infinite-carousel {
    width: 100%;
    max-width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

@media (max-width: 480px) {
  .infinite-carousel-item {
    width: 160px;
    height: 160px;
  }
}
