/* Footer Promotion Blocks Styles */

.footer-promotions {
  background-color: #f9fafb;
  padding: 55px 0 55px;
  border-top: 1px solid #e5e7eb;
}

.footer-promotions .container {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: flex-end;
}

/* Left column - Logo and App badges */
.footer-promotions .footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 270px;
  height: 180px;
}

.footer-promotions .footer-logo {
  width: 100%;
  max-width: 200px;
}

.footer-promotions .mobile-apps {
  display: flex;
  flex-direction: column;
}

.footer-promotions .mobile-apps h3 {
  font-size: 1.3rem;
  color: #374151;
  margin-bottom: 16px;
  font-weight: 400;
}

/* Center column - Featured blocks */
.footer-promotions .footer-center {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

.bloc-1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  width: 145px;
  height: 180px;
  align-items: flex-start;
}


.promotion-blocks {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  justify-content: center;
}

.promotion-block {
  background: #1B2B49;
  border-radius: 8px;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 145px;
  height: 145px;
  flex: none;
}

.bloc-1 h3 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.2rem;
  color: #374151;
  font-weight: 400;
  margin: 0;
}

.promotion-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 43, 73, 0.3);
}

.promotion-block a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px 10px;
  gap: 6px;
  cursor: pointer;
}

.promotion-icon {
  width: 85px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  position: relative;
}

.promotion-icon svg {
  width: 100%;
  height: 100%;
  max-width: 85px;
  max-height: 68px;
}

.promotion-icon i {
  color: white;
}

.promotion-icon.podcast i {
  color: #FF5D66;
}

.promotion-icon.guide i {
  color: #FF5D66;
}

.promotion-block-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  text-align: center;
  width: 100%;
}

.promotion-title {
  font-size: 0;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1;
  font-family: 'Source Sans 3', sans-serif;
  display: none;
}

.promotion-description {
  font-size: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
  margin: 0;
  font-weight: 400;
  display: none;
}

.promotion-badge {
  display: inline-flex;
  align-items: flex-end;
  margin-left: 25px;
  justify-content: center;
  padding: 3px 7px;
  background: #FF5D66;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.promotion-external-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1rem;
  color: #7B818E;
  transition: color 0.3s ease;
}

.promotion-block:hover .promotion-external-icon {
  color: rgba(255, 255, 255, 0.7);
}

/* Right column - Links */
.footer-promotions .footer-right {
  display: flex;
  flex-direction: column;
  /* justify-content: flex-end; */
  /* align-items: flex-end; */
  flex: 0 0 200px;
  gap: 6px;
}

.footer-promotions .footer-right a {
  display: flex;
  /* align-items: self-end; */
  font-size: 1.4rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 400;
  cursor: pointer;
}

.footer-promotions .footer-right a:hover {
  color: #1f2d44;
  transform: translateX(3px);
}

.footer-promotions .footer-right a i {
  font-size: 1.5rem;
  width: 20px;
}

.footer-promotions .footer-right a span {
  font-size: 1.4rem;
}

.footer-promotions .footer-right .first {
  display: flex;
  flex-direction: column;
  font-size: 1.3rem;
  color: #7B818E;
  gap: 6px;
}

.footer-promotions .footer-right .second {
  display: flex;
  flex-direction: row;
  gap: 8px;
  font-size: 1.3rem;  
  color: #A6ABB3;
  opacity: 0.4;
}

/* App store badges in left column */
.app-badges {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.app-badge {
  display: block;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.app-badge img {
  height: 38px;
  width: auto;
}

.app-badge:hover {
  transform: scale(1.05);
}


@media (max-width: 850px) {

  .footer-promotions {
    padding: 30px 0 25px;
  }

  .footer-promotions .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .footer-promotions .footer-left {
    display: contents;
  }

  .footer-promotions .footer-logo {
    order: 1;
    margin-bottom: 10px;
  }

  .footer-promotions .mobile-apps {
    order: 4;
  }

  .footer-promotions .footer-center {
    order: 2;
    flex: none;
  }

  .footer-promotions .footer-right {
    order: 3;
    flex: none;
    flex-direction: column;
  }

  .bloc-1 {
    justify-content: flex-start;
    gap: 12px;
    height: auto;
  }

  .bloc-1 h3 {
    display: none;
  }

  .promotion-blocks {
    gap: 10px;
    justify-content: flex-start;
  }

  .promotion-block {
    width: 135px;
    height: 142px;
  }

  .promotion-block a {
    padding: 16px 12px;
    gap: 10px;
  }

  .promotion-icon {
    width: 90px;
    height: 70px;
  }

  .promotion-icon svg {
    max-width: 90px;
    max-height: 70px;
  }

  .promotion-badge {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .promotion-external-icon {
    font-size: 1rem;
    top: 6px;
    right: 6px;
  }

  .footer-promotions .footer-right {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-promotions .footer-right .first {
    order: 1;
    width: 100%;
  }

  .footer-promotions .footer-right .second {
    order: 2;
    width: 100%;
    flex-direction: row;
  }

  .footer-promotions .footer-right a {
    flex: none;
  }
}
