/* Line Clamp Utilities (for business card text truncation) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Business Card Styles */
.business-card {
  transition: all 0.2s ease-in-out;
}

.business-card:hover {
  transform: translateY(-2px);
}

/* YouTube video background styles */
.youtube-video-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  overflow: hidden !important;
  background: #000;
}

.youtube-video-iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100vw !important;
  height: 56.25vw !important;
  min-height: 100% !important;
  min-width: 177.77vh !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile menu toggle */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Scrolling wrapper for carousel */
.scrolling-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  width: 100%;
}

.scrolling-content {
  display: flex;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================================
   FOOTER STYLES
   ======================================================== */

.footer-container {
  background-color: #004080;
  color: #ffffff;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  width: 100%;
}

.footer-content {
  max-width: 1536px;
  margin: 0 auto;
  padding: 48px 0px;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive padding to match container behavior */
@media (min-width: 640px) {
  .footer-content {
    padding: 48px 24px;
  }
}

@media (min-width: 1024px) {
  .footer-content {
    padding: 48px 32px;
  }
}

/* ========================================================
   MAIN LAYOUT - TWO COLUMN FLEXBOX
   ========================================================
   APPROVED FOOTER POLISH VERSION - FINAL
   - Sponsor box top edge aligned with Chamber logo top
   - Two columns same height (align-items: stretch)
   - Reduced spacing between logo + social icons and description
   - 1rem padding below footer text (above copyright)
   - Removed bold from "Address" and "Office Hours" labels
   - Mobile: Sponsor card centered horizontally below chamber info
   ======================================================== */

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 32px;
}

/* Desktop: Two-column layout (65-70% left, 30-35% right) */
@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    gap: 40px;
    align-items: stretch; /* Ensure both columns same height */
  }
}

.footer-left {
  flex: 0 1 67%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer-right {
  flex: 0 1 33%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* ========================================================
   LEFT COLUMN: LOGO & SOCIAL ICONS
   ======================================================== */

.footer-logo-section {
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 0;
  padding-bottom: 0;
  width: 100%;
}

/* Desktop: Align sponsor box top with logo top */
@media (min-width: 768px) {
  .footer-logo-section {
    margin-bottom: 0;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  margin-left: auto;
  padding-right: 0;
  flex-shrink: 0;
}

/* Social icon links - vertically centered with logo */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.footer-social a:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.footer-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ========================================================
   LEFT COLUMN: DESCRIPTION TEXT
   ======================================================== */

.footer-description {
  max-width: 100%;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 16px;
  margin-top: 0;
  font-size: 15px;
  padding-right: 0;
  width: 100%;
}

/* ========================================================
   LEFT COLUMN: ADDRESS & HOURS ROW
   ======================================================== */

.footer-contact-row {
  display: flex;
  gap: 32px;
  margin-bottom: 0;
  margin-top: 12px;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
}

.footer-contact-item {
  flex: 1;
  min-width: 200px;
}

.footer-contact-item strong {
  font-weight: 400; /* Remove bold - match design spec */
  display: block;
  margin-bottom: 4px;
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.95);
}

/* ========================================================
   LEFT COLUMN: DIVIDERS
   ======================================================== */

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
  margin: 16px 0 1rem 0; /* Add 1rem padding below footer text (above copyright) */
  width: 100%;
}

.footer-divider-top {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
  margin: 12px 0 16px 0; /* Reduced spacing between logo + social and description */
  width: 100%;
}

/* ========================================================
   LEFT COLUMN: COPYRIGHT & LINKS
   ======================================================== */

/* Copyright and links row - properly spaced */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #ffffff;
  margin-top: 0;
  max-width: 100%;
  width: 100%;
}

.footer-copyright {
  flex: 0 1 auto;
  min-width: 200px;
}

/* Footer links - right-aligned on desktop */
.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
  border-bottom-color: #ffffff;
  color: #ffffff;
}

.footer-links .separator {
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================================
   RIGHT COLUMN: POWERED-BY WHITE BOX
   ======================================================== */

.footer-powered-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* Match left column height */
}

/* Desktop: Align sponsor box top edge with Chamber logo top */
@media (min-width: 768px) {
  .footer-powered-box {
    padding: 24px 20px;
    margin-top: 0;
    align-self: flex-start;
    height: auto;
    min-height: 100%; /* Ensure same height as left column */
  }
  
  .footer-right {
    justify-content: flex-start;
    align-items: stretch;
  }
  
  /* Ensure images fit side by side within container */
  .footer-sponsors-desktop {
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 10px;
  }
  
  .footer-sponsor-img {
    max-width: calc(50% - 5px);
    width: min(185px, calc(50% - 5px));
    height: auto;
    aspect-ratio: 185 / 154;
    flex-shrink: 1;
  }
}

/* Responsive image sizing for smaller containers */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-sponsor-img {
    width: min(160px, calc(50% - 5px));
    max-width: calc(50% - 5px);
  }
}

.footer-powered-heading {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #004080;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-align: left;
  line-height: 1.5;
}

.footer-powered-heading strong {
  font-weight: 700;
  display: block;
}

/* ========================================================
   SPONSOR IMAGES - DESKTOP SIDE-BY-SIDE
   ======================================================== */

.footer-sponsors-desktop {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  flex-wrap: nowrap;
  width: 100%;
}

.footer-sponsor-img {
  width: 185px;
  height: 154px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ========================================================
   SPONSOR IMAGES - MOBILE CAROUSEL
   ======================================================== */

.footer-sponsors-mobile {
  display: none;
  position: relative;
}

.footer-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
}

.footer-carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.footer-carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
}

.footer-carousel-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: contain;
}

.footer-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.footer-carousel-btn {
  background-color: #004080;
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 18px;
  font-weight: bold;
}

.footer-carousel-btn:hover {
  background-color: #0055a5;
  transform: scale(1.1);
}

.footer-carousel-btn:active {
  transform: scale(0.95);
}

.footer-carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.footer-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 64, 128, 0.3);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 0;
}

.footer-carousel-dot.active {
  background-color: #004080;
  transform: scale(1.2);
}

.footer-carousel-dot:hover {
  background-color: rgba(0, 64, 128, 0.6);
}

/* ========================================================
   RESPONSIVE BREAKPOINTS - MATCH NAVBAR (md: 768px, lg: 1024px)
   ======================================================== */

/* Mobile: < 768px (matches navbar mobile breakpoint) */
@media (max-width: 767px) {
  .footer-content {
    padding: 32px 16px;
  }

  .footer-main {
    flex-direction: column;
    gap: 32px;
  }

  .footer-left {
    width: 100%;
  }

  .footer-left-content {
    width: 100%;
  }

  .footer-right {
    width: 100%;
    margin-top: 0;
    align-items: center; /* Center sponsor card horizontally on mobile */
  }

  .footer-logo-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 0;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-social {
    margin-left: auto;
    justify-content: flex-end;
  }

  .footer-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .footer-contact-row {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer-contact-item {
    text-align: left;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    margin-left: 0;
    justify-content: flex-start;
  }

  .footer-powered-box {
    padding: 20px 16px;
    width: 100%;
    max-width: 100%; /* Ensure proper spacing on mobile */
  }

  /* Show mobile carousel, hide desktop side-by-side */
  .footer-sponsors-desktop {
    display: none;
  }

  .footer-sponsors-mobile {
    display: block;
  }
}

/* Tablet/Desktop: >= 768px (matches navbar md breakpoint) */
@media (min-width: 768px) {
  /* Hide mobile carousel on desktop */
  .footer-sponsors-mobile {
    display: none;
  }
}

/* Large Desktop: >= 1024px (matches navbar lg breakpoint) */
@media (min-width: 1024px) {
  .footer-content {
    padding: 48px 32px;
  }

  .footer-main {
    gap: 20px;
  }
}

/* Tablet only: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-content {
    padding: 40px 24px;
  }

  .footer-main {
    gap: 20px;
  }
}

/* ========================================================
   IMPACT SECTION - "Serving as the Voice..."
   ======================================================== */

/* ========================================================
   IMPACT SECTION - "Serving as the Voice..."
   ======================================================== */

.impact-section {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 64px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background-color: #EAF7F7 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.impact-section__inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-height: 400px !important;
  box-sizing: border-box !important;
}

/* ========================================================
   LEFT: NAVY TRAPEZOID BANNER
   ======================================================== */

.impact-section__left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 60px 80px 80px;
  width: 100%;
  color: #ffffff;
  background-color: #003D79;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.impact-section__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.3;
  color: #ffffff;
  text-align: left;
  max-width: none;
}

/* ========================================================
   RIGHT: STATS AREA ON TEAL BACKGROUND
   ======================================================== */

.impact-section__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  width: 100%;
  background-color: #EAF7F7;
}

.impact-section__stats-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}

.impact-section__stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.impact-section__stat-label {
  font-size: 16px;
  color: #003D79;
  font-weight: 400;
  margin-bottom: 4px;
}

.impact-section__stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #003D79;
  line-height: 1;
  display: block;
  margin: 8px 0;
}

.impact-section__stat-description {
  font-size: 16px;
  color: #003D79;
  font-weight: 400;
  margin-top: 4px;
}

.impact-section__stat-separator {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #003D79;
  display: none;
  align-self: center;
  margin: 0 20px;
}

.impact-section__cta {
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

.impact-section__cta-button {
  display: inline-block;
  padding: 16px 40px;
  background-color: #F8A542;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.impact-section__cta-button:hover {
  background-color: #003D79;
  color: #ffffff;
}

/* ========================================================
   TABLET: 768px - 1023px
   ======================================================== */

@media (min-width: 768px) {
  .impact-section__inner {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
  }

  .impact-section__left {
    flex: 0 0 60%;
    padding: 80px 60px;
    clip-path: polygon(0 0, 85% 0, 75% 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .impact-section__right {
    flex: 1 1 auto;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .impact-section__stats-grid {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
  }

  .impact-section__stat-separator {
    display: block;
    align-self: center;
    margin: 0 20px;
  }
}

/* ========================================================
   DESKTOP: 1024px+
   ======================================================== */

@media (min-width: 1024px) {
  .impact-section__inner {
    padding: 0;
    min-height: 450px;
  }

  .impact-section__left {
    flex: 0 0 65%;
    padding: 100px 80px;
    clip-path: polygon(0 0, 88% 0, 78% 100%, 0% 100%);
    justify-content: flex-start;
  }

  .impact-section__right {
    flex: 1 1 auto;
    padding: 80px 60px;
  }

  .impact-section__stats-grid {
    gap: 30px;
  }

  .impact-section__stat-label,
  .impact-section__stat-description {
    font-size: 18px;
  }

  .impact-section__stat-number {
    font-size: 4.5rem;
  }

  .impact-section__stat-separator {
    font-size: 3.5rem;
    margin: 0 30px;
  }
}

/* ========================================================
   MOBILE: < 768px
   ======================================================== */

@media (max-width: 767px) {
  .impact-section {
    margin-top: 40px;
  }

  .impact-section__inner {
    flex-direction: column;
    padding: 0;
    min-height: auto;
  }

  .impact-section__left {
    clip-path: none;
    text-align: left;
    padding: 60px 30px;
    width: 100%;
    justify-content: flex-start;
  }

  .impact-section__right {
    padding: 50px 30px;
    width: 100%;
  }

  .impact-section__stats-grid {
    gap: 30px;
    margin-bottom: 30px;
  }

  .impact-section__stat-number {
    font-size: 3rem;
  }

  .impact-section__stat-label,
  .impact-section__stat-description {
    font-size: 14px;
  }
}

