/**
 * @file
 * Footer styles for NextDC theme.
 */

/* Footer base styles */
.nextdc-footer {
    color: #ffffff;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0;
    background-image: none;
    min-height: unset !important;
}

.nextdc-footer .container {
  max-width: 1510px;
  margin: 0 auto;
}

.nextdc-region--nextdc-footer {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Row 1: Decorative SVG shapes */
.nextdc-footer__row1 {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.nextdc-footer__shapes {
  width: 100%;
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  background-color: transparent;
}

/* Desktop SVG - Shows on larger screens */
.nextdc-footer__shapes--desktop {
  display: block;
  width: 100%;
  height: 208px;
  min-width: 1640px;
}

/* Mobile SVG - Shows on smaller screens */
.nextdc-footer__shapes--mobile {
  display: none;
  width: 100%;
  height: 53px;
}

/* For screens wider than 1640px - Make SVG repeat horizontally */
@media (min-width: 1641px) {
  .nextdc-footer__shapes {
    background-image: url('/themes/custom/nextdc/images/topangles.svg');
    background-repeat: repeat-x;
    background-size: 1640px 208px;
    background-position: top left;
    height: 208px;
  }
  
  .nextdc-footer__shapes--desktop {
    display: none;
  }
  
  .nextdc-footer__shapes--mobile {
    display: none;
  }
}

/* Show mobile SVG repeating on screens up to 1024px */
@media (max-width: 1024px) {
  .nextdc-footer__shapes {
    height: 53px;
    background-image: url('/themes/custom/nextdc/images/topangles-mobile.svg');
    background-repeat: repeat-x;
    background-size: 414px 53px;
    background-position: top left;
    width: 100%;
  }
  
  .nextdc-footer__shapes--desktop {
    display: none;
  }
  
  .nextdc-footer__shapes--mobile {
    display: none;
  }
}

/* For medium screens (1025px to 1639px) - Scale down desktop SVG and repeat */
@media (min-width: 1025px) and (max-width: 1639px) {
  .nextdc-footer__row1 {
    margin: 0;
    padding: 0;
  }
  
  .nextdc-footer__shapes {
    height: 208px;
    background-image: url('/themes/custom/nextdc/images/topangles.svg');
    background-repeat: repeat-x;
    background-size: 1640px 208px;
    background-position: 0 0;
    width: 100%;
    min-height: 208px;
    margin: 0;
    padding: 0;
    display: block;
  }
  
  .nextdc-footer__shapes--desktop {
    display: none !important;
  }
  
  .nextdc-footer__shapes--mobile {
    display: none !important;
  }
}

/* Row 2: Two columns layout */
.nextdc-footer__row2 {
  background-color: #201850;
  padding: 4rem 0 4rem 0;
  position: relative;
  z-index: 1;
  background-color: #201850;
}

.nextdc-footer__row2-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  border-bottom: 3px solid #3BB7B3;
}

.nextdc-footer__row2-col1 {
  width: 100%;
}

.nextdc-footer__row2-col2 {
  width: 100%;
}

/* Left column styles - Logo, Mission, Contact */
.nextdc-footer__row2-col1 {
  color: #ffffff;
  a{
    font-size: 0;
  }

}

/* Image in col1 */
.nextdc-footer__row2-col1 img {
  width: 244px !important;
  height: 88px !important;
  object-fit: contain;
  margin-bottom: 56px;
}

.nextdc-footer__row2-col1 .nextdc-block__title,
.nextdc-footer__row2-col1 h2,
.nextdc-footer__row2-col1 h3 {
  font-family: "Jost", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  text-transform: none;
  letter-spacing: 0;
}

.nextdc-footer__row2-col1 .nextdc-block__content,
.nextdc-footer__row2-col1 p {
  font-family: "Jost", sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 140%;
  letter-spacing: 0.032em;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
}

/* Separator line */
.nextdc-footer__row2-col1 .nextdc-footer__separator {
  width: 100%;
  height: 1px;
  background-color: #3BB7B3;
  margin: 1.5rem 0;
  border: none;
}

/* Contact info styling */
.nextdc-footer__row2-col1 .nextdc-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.nextdc-footer__row2-col1 .nextdc-footer__contact p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Right column styles - Navigation Links and Social */
.nextdc-footer__row2-col2 {
  color: #ffffff;
  padding: 32px 0 0 80px;
}

.nextdc-footer__row2-col2 .nextdc-block__title,
.nextdc-footer__row2-col2 h2,
.nextdc-footer__row2-col2 h3 {
  display: none; /* Hide titles in right column */
}

/* Navigation links in right column */
.nextdc-footer__row2-col2 .menu,
.nextdc-footer__row2-col2 ul {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nextdc-footer__row2-col2 .menu-item,
.nextdc-footer__row2-col2 li {
  margin: 0 0 1rem 0;
  padding: 0;
  &:after{
    display: none;
  }
}

.nextdc-footer__row2-col2 .menu-item a,
.nextdc-footer__row2-col2 a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  line-height: 130%;
  letter-spacing: 0.032em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  vertical-align: middle;
  transition: color 0.3s ease;
}

.nextdc-footer__row2-col2 .menu-item a:hover,
.nextdc-footer__row2-col2 a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* SVG arrow icon after navigation links */
.nextdc-footer__row2-col2 .menu-item a::after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 20px;
  background-image: url('/themes/custom/nextdc/images/arrow-right.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nextdc-footer__row2-col2 .menu-item a:hover::after {
  transform: translateX(5px);
}

/* Don't add arrow to social media links */
.nextdc-footer__row2-col2 .social-media-links--platforms a::after {
  content: none;
}

/* Row 3: Four columns layout */
.nextdc-footer__row3 {
  padding: 0 0 64px 0;
  background-color: #201850;
}

.nextdc-footer__row3-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  @media (max-width: 1439.98px) {
    gap: 2rem;
  }
  @media screen and (max-width: 1399px) {
    justify-content: center;
  }
  .basic-block-module{
    padding: 0 !important;
    .content{
      display: block;
    }
  }
}

.nextdc-footer__row3-col,
.nextdc-footer__row3-col1,
.nextdc-footer__row3-col2,
.nextdc-footer__row3-col3,
.nextdc-footer__row3-col4 {
  width: auto;
}

/* Row 3 Col 1 Typography */
.nextdc-footer__row3-col1 {
  font-family: "Jost", sans-serif;
  font-size: 20px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 130% !important;
  letter-spacing: 0.032em !important;
  color: #ffffff !important;
  max-width: 270px;
  #block-nextdc-footerblock1{
    margin-top: 0 !important;
    .dc250.custom-text{
      display: none !important;
    }
    p{
      font-size: inherit !important;
      font-weight: inherit !important;
      font-style: inherit !important;
      line-height: inherit !important;
      letter-spacing: inherit !important;
      color: inherit !important;
      margin: 0 !important;
      padding: 0 !important;
      text-transform: inherit !important;
      text-align: inherit !important;
    }
  }
}

.nextdc-footer__row3-col1 .nextdc-block__title,
.nextdc-footer__row3-col1 h2,
.nextdc-footer__row3-col1 h3 {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 130%;
  letter-spacing: 0.032em;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.nextdc-footer__row3-col1 .nextdc-block__content,
.nextdc-footer__row3-col1 p {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 130%;
  letter-spacing: 0.032em;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

/* Row 3 Col 2 Typography */
.nextdc-footer__row3-col2 {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 130%;
  letter-spacing: 0.032em;
  color: #ffffff;
  max-width: 174px;
  #block-nextdc-footerblockemail{
    .nextdc-block__content{
      display: flex;
      flex-direction: column;
      font-size: inherit;
      line-height: inherit;
      letter-spacing: inherit;
      font-weight: inherit;
      font-style: inherit;
      font-family: inherit;
      color: inherit;
      margin: 0;
      padding: 0;
      a{
        color: #3BB7B3;
      }
    }
  }
}

.nextdc-footer__row3-col2 .nextdc-block__title,
.nextdc-footer__row3-col2 h2,
.nextdc-footer__row3-col2 h3 {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 130%;
  letter-spacing: 0.032em;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.nextdc-footer__row3-col2 .nextdc-block__content,
.nextdc-footer__row3-col2 p {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 130%;
  letter-spacing: 0.032em;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.nextdc-footer__row3-col2 a {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 130%;
  letter-spacing: 0.032em;
  color: #3BB7B3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nextdc-footer__row3-col2 a:hover,
.nextdc-footer__row3-col2 a:focus {
  color: #3BB7B3;
  text-decoration: underline;
}

/* Row 3 Col 3 Typography */
.nextdc-footer__row3-col3 {
  font-family: "Jost", sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 140%;
  letter-spacing: 0.032em;
  color: #ffffff;
  max-width: 432px;
  #block-nextdc-footerblock2{
    margin-top: 0 !important;
    .dc250.custom-text{
      display: none !important;
    }
  }
}

.nextdc-footer__row3-col3 .nextdc-block__title,
.nextdc-footer__row3-col3 h2,
.nextdc-footer__row3-col3 h3 {
  font-family: "Jost", sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 140%;
  letter-spacing: 0.032em;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.nextdc-footer__row3-col3 .nextdc-block__content,
.nextdc-footer__row3-col3 p {
  font-family: "Jost", sans-serif;
  font-size: 18px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 140% !important;
  letter-spacing: 0.032em !important;
  color: #ffffff !important;
  margin: 0 0 1rem 0 !important;
}

/* Row 3 Col 4 - Social Media */
.nextdc-footer__row3-col4 {
  font-family: "Jost", sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 140%;
  letter-spacing: 0.032em;
  color: #ffffff;
  @media screen and (max-width: 991px) {
    margin-inline: auto;
    max-width: 65% !important;
  }
}

/* Footer blocks */
.nextdc-footer .nextdc-block {
  margin-bottom: 0;
}

.nextdc-footer .nextdc-block__title {
  font-family: "Jost", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.032em;
}

.nextdc-footer .nextdc-block__content {
  color: #ffffff;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Logo styling in footer */
.nextdc-footer img,
.nextdc-footer .nextdc-footer__logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
}


.nextdc-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nextdc-footer a:hover,
.nextdc-footer a:focus {
  color: #3BB7B3;
  text-decoration: none;
}

/* Social Media Links in Footer */
.nextdc-footer .social-media-links--platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
  @media (max-width: 1639px) {
    gap: 3rem;
  }
}

.nextdc-footer .social-media-links--platforms li {
  margin: 0;
  padding: 0;
}

.nextdc-footer .social-media-links--platforms a {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 40px;
  max-height: 40px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.nextdc-footer .social-media-links--platforms a .fab,
.nextdc-footer .social-media-links--platforms a span {
  font-size: 2.25rem;
  line-height: 1;
}


.nextdc-footer .social-media-links--platforms .fab,
.nextdc-footer .social-media-links--platforms svg {
  font-size: 2.25rem;
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
  color: #ffffff;
  fill: #ffffff;
  transition: color 0.3s ease, fill 0.3s ease;
}



/* Social media in right column - horizontal row */
.nextdc-footer__row2-col2 .social-media-links--platforms {
  margin-top: 2rem;
  gap: 1rem;
}

/* Footer Primary (if used) */
.nextdc-footer-primary {
  background-color: #201850;
  color: #fff;
  padding: 2rem 0;
  margin-top: auto;
}

/* Footer Brand (if used) */
.nextdc-footer-brand {
  background-color: #0f0a2e;
  color: #fff;
  padding: 1rem 0;
}

/* Footer responsive styles */
@media (max-width: 991px) {
  .nextdc-footer__row2 {
    padding: 3rem 0 2rem 0;
  }

  .nextdc-footer__row2-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nextdc-footer__row2-col1,
  .nextdc-footer__row2-col2 {
    width: 100%;
  }

  .nextdc-footer__row2-col2 {
    padding: 0;
  }

  .nextdc-footer__row2-col1 .nextdc-block__title,
  .nextdc-footer__row2-col1 h2,
  .nextdc-footer__row2-col1 h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .nextdc-footer__row2-col2 .menu-item a,
  .nextdc-footer__row2-col2 a {
    font-size: 0.9rem;
  }

  .nextdc-footer__row3 {
    padding: 2rem 0;
  }

  .nextdc-footer__row3-wrapper {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .nextdc-footer__row3-col,
  .nextdc-footer__row3-col1,
  .nextdc-footer__row3-col2,
  .nextdc-footer__row3-col3,
  .nextdc-footer__row3-col4 {
    width: 100%;
    max-width: 100%;
  }

  .nextdc-footer__shapes {
    height: 53px;
  }

  .nextdc-footer .social-media-links--platforms {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    row-gap: 32px;
    column-gap: 64px;
    flex-wrap: wrap;
  }

  .nextdc-footer .social-media-links--platforms a {
    max-width: 40px;
    max-height: 40px;
    flex-shrink: 0;
  }

  .nextdc-footer .social-media-links--platforms .fab,
  .nextdc-footer .social-media-links--platforms svg {
    font-size: 1.5rem;
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .nextdc-footer__row2-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nextdc-footer__row3-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

#block-nextdc-socialmedialinks{
  background-color: #201850;
  .nextdc-block__title{
    display: none;
  }
}
