/* =========================================================
   Footer – Final Version (Figma Accurate)
   - Top border: 8px
   - Dash length: 24px
   - Dash gap: 24px
   ========================================================= */

   .footer {
    background: #3271cc;
    color: #ffffff;
  
    /* Top dashed border (controlled via border-image) */
    border-top: 8px solid transparent;
    border-image-source: repeating-linear-gradient(
      90deg,
      #ffffff 0 24px,
      transparent 24px 48px
    );
    border-image-slice: 8;
    border-image-repeat: round;
  
    /* Figma vertical padding */
    padding: 64px 0;
  }
  
  /* =========================================================
     Footer Container
     ========================================================= */
  
  .footer-container {
    max-width: 1573px;
    margin: 0 auto;
  
    /* Responsive horizontal padding (matches Figma 133px max) */
    padding-left: clamp(18px, 8vw, 133px);
    padding-right: clamp(18px, 8vw, 133px);
  
    display: grid;
    grid-template-columns: minmax(280px, 460px) 1px 1fr;
    grid-template-areas: "brand divider nav";
  
    /* Figma gap = 32px */
    column-gap: 32px;
  
    /* Keep sections aligned from the top */
    align-items: start;
  }
  
  /* =========================================================
     Brand Section
     ========================================================= */
  
  .footer-brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-logo img {
    /* Default (desktop) size */
    width: 393px;
    height: 81px;
    display: block;
    object-fit: contain;
  }
  
  .footer-description {
    margin-top: 28px;
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.85);
  }
  
  .footer-social {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  
  .footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
  }
  
  .footer-social-link:hover {
    opacity: 0.85;
  }
  
  .footer-social-link--instagram img {
    width: 44px;
    height: 44px;
  }
  
  .footer-social-link--email img {
    width: 28px;
    height: 28px;
  }
  
  .footer-email-text {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
  }
  
  /* =========================================================
     Vertical Divider
     ========================================================= */
  
  .footer-divider {
    grid-area: divider;
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.25);
  }
  
  /* =========================================================
     Navigation / Links Section
     ========================================================= */
  
  .footer-section {
    grid-area: nav;
  
    /* Desktop: vertically centered like the Figma desktop layout */
    align-self: center;
  }
  
  .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
  
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  
    column-gap: 56px;
    row-gap: 18px;
  }
  
  .footer-links a {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    white-space: nowrap;
  
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, opacity 0.2s ease;
  }
  
  .footer-links a:hover {
    color: #ffffff;
    opacity: 0.95;
  }
  
  /* =========================================================
     Tablet Layout (Fix: right column items must start at the top)
     ========================================================= */
  
  @media (max-width: 1024px) {
    .footer-container {
      grid-template-columns: 1fr 1fr;
      grid-template-areas: "brand nav";
      column-gap: 40px;
  
      /* On tablet, align from the top */
      align-items: start;
    }
  
    .footer-divider {
      display: none;
    }
  
    /* Tablet logo size */
    .footer-logo img {
      width: 306px;
      height: 63px;
    }
  
    .footer-description {
      font-size: 18px;
      line-height: 26px;
    }
  
    /* Tablet: two columns with explicit row placement (top-aligned) */
    .footer-section {
      align-self: start;
    }
  
    .footer-links {
      display: grid;
      grid-template-columns: max-content max-content;
      column-gap: 48px;
      row-gap: 14px;
      align-items: start;
      justify-content: start;
    }
  
    /* Left column: first 4 links */
    .footer-links li:nth-child(1) {
      grid-column: 1;
      grid-row: 1;
    }
    .footer-links li:nth-child(2) {
      grid-column: 1;
      grid-row: 2;
    }
    .footer-links li:nth-child(3) {
      grid-column: 1;
      grid-row: 3;
    }
    .footer-links li:nth-child(4) {
      grid-column: 1;
      grid-row: 4;
    }
  
    /* Right column: Terms and Privacy must start at the top */
    .footer-links li:nth-child(5) {
      grid-column: 2;
      grid-row: 1;
    }
    .footer-links li:nth-child(6) {
      grid-column: 2;
      grid-row: 2;
    }
  }
  
  /* =========================================================
     Mobile Layout (Two columns like Figma)
     ========================================================= */
  
    @media (max-width: 768px) {
    .footer {
      padding: 56px 0;
    }
  
    .footer-container {
      grid-template-columns: 1fr;
      grid-template-areas:
        "brand"
        "divider"
        "nav";
      row-gap: 22px;
    }
  
    /* Mobile logo size */
    .footer-logo img {
      width: 272px;
      height: 56px;
    }
  
    /* Divider becomes horizontal on mobile */
    .footer-divider {
      display: block;
      width: 100%;
      height: 1px;
    }
  
    /* Mobile: single-column links (all stacked) */
    .footer-section {
      align-self: start;
    }
  
    .footer-links {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }
  }
    
  