:root {
  --mac-teal: #008c8d;
  --mac-teal-dark: #045b60;
  --mac-gold: #ffbf47;
  --mac-ink: #10242b;
  --mac-body: "Manrope", sans-serif;
  --mac-heading: "Bebas Neue", sans-serif;
}

body {
  font-family: var(--mac-body);
}

.btn-locked {
  opacity: 0.92;
}

.mac-home-navbar {
  background: rgba(7, 88, 93, 0.88) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(6, 45, 50, 0.22) !important;
}

.mac-home-navbar .navbar-brand img {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}

.mac-home-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.mac-home-navbar .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(3);
}

.mac-home-navbar .nav-link {
  border-radius: 999px;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
  font-weight: 700;
}

.mac-home-navbar .nav-link:hover,
.mac-home-navbar .nav-link:focus,
.mac-home-navbar .dropdown-toggle.show {
  background: rgba(255, 255, 255, 0.13);
}

.mac-home-navbar .nav-link i,
.mac-home-navbar .navbar-brand i {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--mac-gold);
  font-size: 0.78rem;
}

.mac-home-hero {
  position: relative;
  margin-top: -1px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 191, 71, 0.2), transparent 28%),
    linear-gradient(135deg, #061f25, #0a555b);
  --mac-hero-height: clamp(540px, 70vh, 760px);
}

.mac-home-hero .carousel,
.mac-home-hero .carousel-inner,
.mac-home-hero .carousel-item {
  height: var(--mac-hero-height);
  min-height: 0;
}

.mac-hero-image {
  height: var(--mac-hero-height);
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.05) contrast(1.02);
}

.mac-hero-image-cover {
  object-fit: cover;
}

.mac-home-hero .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 31, 0.72) 0%, rgba(6, 26, 31, 0.45) 37%, rgba(6, 26, 31, 0.08) 72%),
    linear-gradient(180deg, rgba(6, 26, 31, 0.25), rgba(6, 26, 31, 0.4));
  pointer-events: none;
}

.mac-hero-overlay {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 7vw, 6.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(500px, calc(100% - 2.5rem));
  padding: clamp(1.05rem, 2.2vw, 2rem);
  border-radius: 24px;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(5, 53, 58, 0.78), rgba(8, 140, 141, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.mac-hero-overlay,
.mac-hero-overlay h1,
.mac-hero-overlay h2,
.mac-hero-overlay h3,
.mac-hero-overlay p,
.mac-hero-overlay span,
.mac-hero-overlay strong,
.mac-hero-overlay small,
.mac-hero-overlay a,
.mac-hero-overlay .btn {
  color: #fff !important;
}

.mac-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  color: var(--mac-gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.mac-hero-overlay h1 {
  margin: 0;
  font-family: var(--mac-heading);
  font-size: clamp(2.4rem, 5.3vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.mac-hero-overlay p {
  max-width: 34rem;
  margin: 0.75rem 0 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.mac-hero-member-pulse {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.1rem 0 0.2rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
}

.mac-hero-member-pulse strong {
  color: var(--mac-gold);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 0.9;
}

.mac-hero-welcome {
  margin-top: 0.65rem !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em;
}

.mac-hero-run-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0 1.25rem;
}

.mac-hero-run-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.7rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mac-hero-run-list i {
  grid-row: span 2;
  color: var(--mac-gold);
  font-size: 1.15rem;
}

.mac-hero-run-list span {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.mac-hero-run-list strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.mac-hero-actions .btn {
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.mac-hero-coming-soon {
  opacity: 1 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  cursor: default !important;
}

.mac-hero-overlay .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.mac-hero-overlay .btn-outline-light:hover,
.mac-hero-overlay .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.mac-home-hero .carousel-control-prev,
.mac-home-hero .carousel-control-next {
  width: 6%;
}

.mac-home-hero .carousel-indicators {
  bottom: 1.4rem;
}

.mac-home-hero .carousel-indicators [data-bs-target] {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  background-color: rgba(255, 255, 255, 0.55);
}

.mac-home-hero .carousel-indicators .active {
  background-color: var(--mac-gold);
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 191, 71, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 140, 141, 0.12), transparent 30%),
    #f3f7f8;
}

body > section {
  position: relative;
}

body > section.bg-white,
body > section.bg-light,
body > section:not(.mac-home-hero) {
  background: transparent !important;
}

body > section:not(.mac-home-hero) {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

body > section:not(.mac-home-hero) h2 {
  font-family: var(--mac-heading);
  color: var(--mac-ink);
  font-weight: 900;
  letter-spacing: 0.035em;
  font-size: clamp(2.1rem, 4.2vw, 3.45rem);
  line-height: 0.95;
  text-transform: uppercase;
}

body > section:not(.mac-home-hero) h2 i {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-right: 0.45rem !important;
  border-radius: 18px;
  color: var(--mac-teal-dark);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, rgba(255, 191, 71, 0.96), rgba(0, 140, 141, 0.72));
  font-size: 1rem;
  vertical-align: middle;
}

body > section:not(.mac-home-hero) .lead {
  color: #58707a;
}

#race .container,
#memberships .container,
#safeguarding .container,
#events .container,
section[aria-label="committee"] .container,
#committee .container,
#captains .container,
#gallery .container,
section.py-5.bg-light.text-center .container {
  position: relative;
}

#race .container,
section.py-5.bg-light.text-center .container {
  max-width: 960px;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 249, 250, 0.92));
  border: 1px solid rgba(0, 140, 141, 0.1);
  box-shadow: 0 22px 54px rgba(17, 47, 54, 0.08);
}

#committee .container,
#captains .container {
  max-width: 1120px;
}

#committee .swiper,
#captains .swiper {
  width: 100%;
}

#memberships .card,
#events .card,
#committee .card,
#captains .card,
#safeguarding .card {
  border: 1px solid rgba(17, 47, 54, 0.08) !important;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(17, 47, 54, 0.08) !important;
  overflow: hidden;
}

#memberships .card,
#events .card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#memberships .card:hover,
#events .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 58px rgba(17, 47, 54, 0.14) !important;
}

#memberships .card h5,
#events .card h5 {
  color: var(--mac-ink);
  font-weight: 900;
}

#memberships .card p:first-of-type {
  color: var(--mac-teal-dark);
  font-size: 1.4rem;
  font-weight: 900;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-success:hover {
  background: linear-gradient(135deg, var(--mac-teal), var(--mac-teal-dark)) !important;
  border-color: var(--mac-teal) !important;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-secondary {
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary,
.btn-warning {
  border-radius: 999px;
  font-weight: 900;
}

#safeguarding .rounded-circle {
  background: linear-gradient(135deg, rgba(255, 191, 71, 0.22), rgba(0, 140, 141, 0.16)) !important;
}

#committee .card-img-top,
#captains .card-img-top {
  height: 300px;
  object-fit: cover;
}

#gallery .ratio {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(17, 47, 54, 0.1);
}

.custom-footer {
  background:
    radial-gradient(circle at top left, rgba(255, 191, 71, 0.2), transparent 28%),
    linear-gradient(135deg, #073f45, #008c8d);
}

.hero-image-viewer-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: #071f24;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.hero-image-viewer-modal .modal-header {
  color: #fff;
  background: linear-gradient(135deg, rgba(5, 91, 96, 0.98), rgba(0, 140, 141, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-image-viewer-modal .modal-header,
.hero-image-viewer-modal .modal-header h1,
.hero-image-viewer-modal .modal-header h2,
.hero-image-viewer-modal .modal-header h3,
.hero-image-viewer-modal .modal-header h4,
.hero-image-viewer-modal .modal-header h5,
.hero-image-viewer-modal .modal-header h6,
.hero-image-viewer-modal .modal-header span,
.hero-image-viewer-modal .modal-header small,
.hero-image-viewer-modal .modal-header p,
.hero-image-viewer-modal .modal-header a {
  color: #fff !important;
}

.hero-image-viewer-modal .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.95;
}

.hero-image-viewer-modal .modal-body {
  padding: clamp(1rem, 2.4vw, 2rem);
  background:
    radial-gradient(circle at top left, rgba(255, 191, 71, 0.14), transparent 32%),
    #071f24;
}

.hero-flip-viewer {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(78vh, 760px);
}

.hero-flip-page {
  position: relative;
  width: min(100%, 980px);
  min-height: min(72vh, 700px);
  display: grid;
  place-items: center;
  padding: clamp(0.45rem, 1.4vw, 0.9rem);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 247, 248, 0.94));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.35),
    inset -18px 0 28px rgba(6, 45, 50, 0.08);
  perspective: 1200px;
}

.hero-flip-page::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(54px, 8vw, 96px);
  height: clamp(54px, 8vw, 96px);
  border-bottom-right-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0) 49%, rgba(255, 191, 71, 0.7) 50%, rgba(0, 140, 141, 0.9) 100%);
  filter: drop-shadow(-7px -7px 14px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.hero-flip-page img {
  display: block;
  width: 100%;
  max-height: min(70vh, 680px);
  object-fit: contain;
  border-radius: 18px;
  transform-origin: right center;
}

.hero-flip-page img.is-flipping {
  animation: heroPageFlip 0.42s ease both;
}

.hero-achievement-btn {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 2.3vw, 1.6rem);
  z-index: 4;
  display: none;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  color: var(--mac-ink);
  background: var(--mac-gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  font-weight: 900;
  text-decoration: none;
}

.hero-achievement-btn.is-visible {
  display: inline-flex;
  align-items: center;
}

.hero-achievement-btn:hover,
.hero-achievement-btn:focus {
  color: var(--mac-ink);
  background: #ffd66f;
  transform: translateX(-50%) translateY(-2px);
}

.hero-flip-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 140, 141, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero-flip-btn:hover,
.hero-flip-btn:focus {
  background: var(--mac-gold);
  color: var(--mac-ink);
}

.hero-flip-prev {
  left: clamp(0.35rem, 2vw, 1.5rem);
}

.hero-flip-next {
  right: clamp(0.35rem, 2vw, 1.5rem);
}

.hero-flip-counter {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 31, 37, 0.78);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mac-auth-modal .modal-content {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  background: #f8fbfa;
  box-shadow: 0 34px 100px rgba(9, 34, 39, 0.35);
}

.mac-auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  padding: 0.85rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.mac-auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  min-height: 620px;
}

.mac-auth-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #06292f;
}

.mac-auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.mac-auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 32, 38, 0.08), rgba(5, 32, 38, 0.78)),
    radial-gradient(circle at 25% 18%, rgba(255, 191, 71, 0.32), transparent 30%);
}

.mac-auth-visual-copy {
  position: absolute;
  z-index: 2;
  left: clamp(1.4rem, 3vw, 2.3rem);
  right: clamp(1.4rem, 3vw, 2.3rem);
  bottom: clamp(1.4rem, 3vw, 2.3rem);
  color: #fff;
}

.mac-auth-visual-copy span,
.mac-auth-kicker {
  color: var(--mac-gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mac-auth-visual-copy h3,
.mac-auth-header h5 {
  margin: 0.35rem 0 0.6rem;
  font-family: var(--mac-heading);
  letter-spacing: 0.04em;
  line-height: 0.92;
}

.mac-auth-visual-copy h3 {
  max-width: 18rem;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.mac-auth-visual-copy p {
  max-width: 23rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.mac-auth-panel {
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
}

.mac-auth-header h5 {
  color: var(--mac-ink);
  font-size: clamp(2.4rem, 4.4vw, 4.1rem);
}

.mac-auth-tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(0, 140, 141, 0.08);
  border: 1px solid rgba(0, 140, 141, 0.12);
}

.mac-auth-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  color: #52676d;
  font-weight: 900;
}

.mac-auth-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--mac-teal), var(--mac-teal-dark));
  box-shadow: 0 12px 28px rgba(0, 140, 141, 0.22);
}

.mac-auth-form {
  display: grid;
  gap: 1rem;
}

.mac-form-field label {
  margin-bottom: 0.4rem;
  color: #38545b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mac-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.15rem 0.85rem;
  border: 1px solid rgba(16, 36, 43, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 47, 54, 0.06);
}

.mac-input-wrap i {
  color: var(--mac-teal);
}

.mac-input-wrap .form-control {
  border: 0;
  box-shadow: none;
  min-height: 3.1rem;
  padding-left: 0;
  background: transparent;
  font-weight: 700;
}

.mac-input-wrap:focus-within {
  border-color: rgba(0, 140, 141, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(0, 140, 141, 0.12);
}

.mac-auth-submit {
  min-height: 3.2rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--mac-teal), var(--mac-teal-dark));
  box-shadow: 0 18px 34px rgba(0, 140, 141, 0.24);
  font-weight: 900;
}

.mac-auth-submit:hover,
.mac-auth-submit:focus {
  color: #fff;
  transform: translateY(-1px);
}

.mac-auth-link {
  color: var(--mac-teal-dark);
  font-weight: 900;
  text-decoration: none;
}

@keyframes heroPageFlip {
  0% {
    opacity: 0;
    transform: rotateY(-16deg) translateX(18px);
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg) translateX(0);
  }
}

.custom-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 179, 64, 0.18), transparent 28%),
    linear-gradient(135deg, #042f34 0%, #006f72 62%, #078c8d 100%);
}

.custom-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(255,255,255,0.08), transparent 26%);
}

.mac-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.mac-footer-brand,
.mac-footer-compliance {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(2, 29, 34, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.mac-footer-mark {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mac-footer-mark img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  padding: 0.35rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.mac-footer-mark strong,
.mac-footer-compliance h3 {
  display: block;
  margin: 0;
  color: #fff;
  font-weight: 900;
}

.mac-footer-mark strong {
  font-size: 1.2rem;
  line-height: 1.1;
}

.mac-footer-mark span,
.mac-footer-brand p,
.mac-footer-compliance p,
.mac-footer-bottom {
  color: rgba(255, 255, 255, 0.78);
}

.mac-footer-compliance h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.mac-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mac-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #06383d !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mac-footer-links a i,
.mac-footer-links a svg {
  color: var(--mac-teal);
}

.mac-footer-links a:hover {
  background: #ffb340;
  color: #082f33;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.mac-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  .mac-home-hero {
    --mac-hero-height: auto;
    overflow: visible;
  }

  .mac-home-hero .carousel,
  .mac-home-hero .carousel-inner,
  .mac-home-hero .carousel-item {
    height: auto;
    min-height: 0;
  }

  .mac-home-hero .carousel-item {
    flex-direction: column;
    padding-bottom: 4.5rem;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 191, 71, 0.14), transparent 30%),
      linear-gradient(180deg, #041d22, #063a40);
  }

  .mac-home-hero .carousel-item.active,
  .mac-home-hero .carousel-item-next,
  .mac-home-hero .carousel-item-prev {
    display: flex;
  }

  .mac-hero-image {
    display: block;
    position: relative;
    z-index: 0;
    order: 1;
    height: clamp(230px, 43vh, 360px);
    min-height: 0;
    object-fit: cover;
    object-position: center top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mac-home-hero .carousel-item::after {
    z-index: 1;
    inset: 0 0 auto;
    height: clamp(230px, 43vh, 360px);
    background:
      linear-gradient(180deg, rgba(4, 29, 34, 0.08), rgba(4, 29, 34, 0.32)),
      linear-gradient(90deg, rgba(4, 29, 34, 0.28), transparent 52%);
  }

  .mac-hero-overlay {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    transform: none;
    order: 2;
    width: calc(100% - 2rem);
    margin: 1rem auto 0;
    border-radius: 22px;
  }

  .mac-home-hero .carousel-control-prev,
  .mac-home-hero .carousel-control-next {
    top: 0;
    bottom: auto;
    height: clamp(230px, 43vh, 360px);
    width: 12%;
  }

  .mac-home-hero .carousel-indicators {
    bottom: 1.35rem;
  }

  .mac-hero-run-list div {
    padding: 0.7rem 0.8rem;
  }

  .hero-flip-viewer {
    min-height: 68vh;
  }

  .hero-flip-page {
    min-height: 58vh;
  }

  .hero-flip-btn {
    width: 40px;
    height: 40px;
  }

  .mac-auth-shell {
    grid-template-columns: 1fr;
  }

  .mac-auth-visual {
    min-height: 240px;
  }

  .mac-auth-panel {
    padding: 1.25rem;
  }

  .mac-footer-grid {
    grid-template-columns: 1fr;
  }

  .mac-footer-mark {
    flex-direction: column;
    align-items: flex-start;
  }

  .mac-footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
