/* MuniLogic 250 for 250 Banner Section Styles */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

/* CSS Custom Variables for Clean Theming */
:root {
  --ml-color-primary: #0b439c;
  --ml-color-primary-hover: #083275;
  --ml-color-text-dark: #1e2530;
  --ml-color-text-muted: #4e5d78;
  --ml-color-text-blue: #1c3d70;
  --ml-color-bg-pill: #e6f0fa;
  --ml-card-border-width: 8px;
  --ml-card-radius: 28px;
  --ml-transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Container Wrapper */
.ml-main-wrapper {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* The Banner Card */
.ml-banner-card {
  background: #ffffff;
  border: var(--ml-card-border-width) solid var(--ml-color-primary);
  border-radius: var(--ml-card-radius);
  box-shadow: 0 24px 50px rgba(11, 67, 156, 0.08),
              0 8px 16px rgba(0, 0, 0, 0.03);
  padding: 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 55px;
  width: 100%;
  transition: var(--ml-transition-smooth);
  position: relative;
}

/* Subtle card hover behavior to make it feel alive */
.ml-banner-card:hover {
  box-shadow: 0 30px 70px rgba(11, 67, 156, 0.12),
              0 10px 20px rgba(0, 0, 0, 0.04);
}

/* Left Column: Badge Graphic */
.ml-badge-container {
  flex: 0 0 320px;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: var(--ml-transition-smooth);
}

/* Smooth scale on badge hover */
.ml-badge-container:hover {
  transform: scale(1.03);
}

.ml-badge-animated-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.ml-ring-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  animation: ml-star-spin 45s linear infinite;
  transform-origin: center;
  transition: animation-duration 0.5s ease;
}

.ml-inner-badge-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  transition: var(--ml-transition-smooth);
}

.ml-badge-mobile-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Speed up the ring rotation and scale the inner badge slightly on hover */
.ml-badge-container:hover .ml-ring-image {
  animation-duration: 20s;
}

.ml-badge-container:hover .ml-inner-badge-image {
  transform: scale(1.02);
}

@keyframes ml-star-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Right Column: Text & Content Area */
.ml-content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Pill-shaped top badge */
.ml-pill-badge {
  background-color: var(--ml-color-bg-pill);
  color: var(--ml-color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(11, 67, 156, 0.03);
  transition: var(--ml-transition-smooth);
  font-family: 'Satoshi', sans-serif;
}

.ml-pill-badge:hover {
  background-color: #dbeaff;
}

/* Typography Hierarchy */
.ml-title-primary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.ml-title-row {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ml-color-text-dark);
  line-height: 1.15;
  letter-spacing: -0.5px;
  font-family: 'Satoshi', sans-serif;
}

.ml-title-accent {
  font-size: 3.35rem;
  font-weight: 900;
  color: var(--ml-color-primary);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-top: 6px;
  display: block;
  font-family: 'Satoshi', sans-serif;
}

.ml-subtitle-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ml-color-text-blue);
  line-height: 1.55;
  margin-bottom: 30px;
  max-width: 600px;
  font-family: 'Satoshi', sans-serif;
}

/* Join the Movement Button */
.ml-btn-primary {
  background-color: var(--ml-color-primary);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 67, 156, 0.2);
  transition: var(--ml-transition-smooth);
  font-family: 'Satoshi', sans-serif;
  text-decoration: none;
}

.ml-btn-primary:hover {
  background-color: var(--ml-color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 67, 156, 0.3);
  color: #ffffff;
  text-decoration: none;
}

.ml-btn-arrow {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ml-btn-primary:hover .ml-btn-arrow {
  transform: translateX(4px);
}

.ml-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(11, 67, 156, 0.25);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .ml-banner-card {
    gap: 40px;
    padding: 40px;
  }

  .ml-title-row {
    font-size: 2.1rem;
  }

  .ml-title-accent {
    font-size: 2.8rem;
  }
}

@media (max-width: 868px) {
  .ml-main-wrapper {
    padding: 30px 16px;
  }

  .ml-banner-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 35px;
    padding: 50px 30px;
  }

  .ml-content-container {
    align-items: center;
  }

  .ml-title-primary {
    align-items: center;
  }

  .ml-subtitle-text {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .ml-main-wrapper {
    padding: 20px 12px;
  }

  .ml-banner-card {
    padding: 35px 20px;
    border-width: 6px;
    border-radius: 20px;
  }

  .ml-badge-container {
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
  }

  .ml-badge-animated-wrapper {
    display: none;
  }

  .ml-badge-mobile-image {
    display: block;
  }

  .ml-title-row {
    font-size: 1.75rem;
  }

  .ml-title-accent {
    font-size: 2.2rem;
  }

  .ml-subtitle-text {
    font-size: 1.05rem;
  }

  .ml-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .ml-banner-card {
    padding: 25px 16px;
    border-width: 5px;
    border-radius: 16px;
  }

  .ml-badge-container {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
  }

  .ml-title-row {
    font-size: 1.5rem;
  }

  .ml-title-accent {
    font-size: 1.9rem;
  }

  .ml-subtitle-text {
    font-size: 0.95rem;
  }

  .ml-pill-badge {
    font-size: 0.75rem;
    padding: 6px 16px;
  }

  .ml-btn-primary {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}
