/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
}

/* Footer styles */
footer {
  position: relative;
  width: 100%;
}

.footer-main {
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  background-color: #171C37; /* primary_dark */
  padding: 60px 1.25rem;
  position: relative;
  z-index: 40;
  margin-bottom: -1.5rem;
  box-shadow: 0px 0px 240px 0px rgba(0, 0, 0, 0.45);
}

.footer-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.footer-links-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 5rem;
  padding-bottom: 1.5rem;
}

.footer-links-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px;
}

.footer-column {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  list-style-type: none;
  font-size: 0.875rem;
  font-weight: normal;
  color: white;
}

.footer-link {
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #5468fa; /* primary color */
}

/* Country links section */
.country-links-container {
  width: 100%;
  max-width: 80rem;
  margin: 2.25rem auto 0;
  border-top: 1px solid rgba(204, 210, 253, 0.15);
}

.country-wise-links {
  padding-top: 2.25rem;
  width: 100%;
}

/* Desktop view for industry buttons */
.industry-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
}

.industry-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.industry-button:hover,
.industry-button.active {
  color: #5468fa; /* primary color */
}

.chevron-icon {
  transition: transform 0.3s ease;
}

.industry-button.active .chevron-icon {
  transform: rotate(180deg);
  color: #5468fa;
}

/* Industry content styles */
.industry-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
  border-radius: 1rem;
}

.industry-content.active {
  max-height: 2000px; /* Large enough to contain all content */
  opacity: 1;
  margin-bottom: 2rem;
}

/* Region sections */
.region-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2.25rem;
}

.region-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem 4rem;
}

.country-link {
  font-size: 0.875rem;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.country-link:hover {
  color: #5468fa; /* primary color */
}

.discover-link {
  display: flex;
  justify-content: center;
  padding-bottom: 2.25rem;
}

.discover-link a {
  font-size: 0.875rem;
  color: white;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.discover-link a:hover {
  color: #5468fa;
}

/* Mobile view */
.mobile-view {
  display: none;
}

.mobile-industry-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.mobile-industry-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  padding: 0.5rem 0;
  cursor: pointer;
}

.mobile-industry-button.active {
  color: #5468fa;
}

.mobile-industry-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
  margin-top: 0;
}

.mobile-industry-content.active {
  max-height: 2000px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* Social links */
.social-links {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  list-style-type: none;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(204, 210, 253, 0.15);
}

.social-item {
  transition: color 0.3s ease;
}

.social-item:hover {
  color: #5468fa; /* primary color */
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.social-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
}

.social-icon-inner {
  position: absolute;
  inset: 0;
  transition: background-color 0.3s ease;
  background-color: white;
  -webkit-mask: var(--icon-url) no-repeat center / contain;
  mask: var(--icon-url) no-repeat center / contain;
}

.social-link:hover .social-icon-inner {
  background-color: #5468fa; /* primary color */
}

/* Bottom section */
.footer-bottom {
  padding: 2.25rem 1.25rem;
  background-color: #171C37; /* primary_dark */
  position: sticky;
  bottom: 0;
  width: 100vw;
}

.footer-bottom-content {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  max-width: 1280px;
  height: auto;
}

.copyright-text {
  text-align: center;
  font-size: 0.75rem;
  color: white;
  opacity: 0.5;
}

/* Media queries for responsive design */
@media (max-width: 1024px) {
  .countries-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 0.75rem 2rem;
  }
}

@media (max-width: 768px) {
  .footer-main {
      padding: 2.5rem 1.25rem;
  }
  
  .footer-links-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2.5rem 1rem;
  }
  
  .industry-buttons {
      flex-wrap: wrap;
      gap: 1rem;
  }
  
  .countries-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .desktop-view {
      display: none;
  }
  
  .mobile-view {
      display: block;
  }
  
  .footer-links-container {
      flex-direction: column-reverse;
  }
  
  .footer-links-grid {
      grid-template-columns: 1fr;
      text-align: start;
  }
  
  .footer-main {
      padding: 2.5rem 1.25rem;
      
  }
  
  .countries-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem 4rem;
  }
}

@media (min-width: 640px) {
  .footer-main, .footer-bottom {
      padding-left: 2.5rem;
      padding-right: 2.5rem;
  }
}