.comparison-table {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  font-family: 'Lato', sans-serif;
  background-color: transparent;
  border-radius: 16px;
}

/* ===============================
    CREDIT CARD COMPARISON
    =============================== */
 
    .cc-compare {
      margin: 4rem 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      color: #1f2937;
    }
    
    .cc-compare h2 {
      font-size: 1.9rem;
      margin-bottom: 0.4rem;
    }
    
    .cc-compare p {
      color: #4b5563;
      line-height: 1.6;
      max-width: 900px;
    }
    
    /* Wrapper */
    .cc-compare__table-wrap {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 12px 28px rgba(0,0,0,0.06);
      overflow-x: auto;
    }
    
    /* Table */
    .cc-compare__table {
      width: 100%;
      border-collapse: collapse;
      min-width: 720px;
    }
    
    .cc-compare__table th,
    .cc-compare__table td {
      padding: 1rem;
      border-bottom: 1px solid #e5e7eb;
      
      text-align: center;
    }
    
    .cc-compare__table th:first-child,
    .cc-compare__table td:first-child {
      text-align: left;
      font-weight: 600;
      background: #fafafa;
    }
    
   /* Förkortade och snygga kreditkort-länkar */
.cc-card {
  display: flex;
  flex-direction: column; /* Bild över text */
  align-items: center;
  gap: 0.4rem;
  text-decoration: none; /* Tar bort underline */
  color: inherit; /* Ärver textfärg */
  transition: transform 0.2s, box-shadow 0.2s;
}

.cc-card img {
  max-height: 40px;
  object-fit: contain;
}

.cc-card span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Hover-effekt */
.cc-card:hover {
  transform: translateY(-3px);
}



    
    /* Mobile card header (hidden desktop) */
    .cc-mobile-card {
      display: none;
    }
    
    /* ===============================
       MOBILE
       =============================== */
    
    @media (max-width: 768px) {
      .cc-compare__table {
        min-width: 100%;
      }
    
      .cc-compare__table thead {
        display: none;
      }
    
      .cc-compare__table,
      .cc-compare__table tbody,
      .cc-compare__table tr,
      .cc-compare__table td {
        display: block;
        width: 100%;
      }
    
      .cc-compare__table tr {
        background: #fff;
        margin-bottom: 1.2rem;
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.06);
        overflow: hidden;
      }
    
      .cc-feature {
        text-align: center;
        font-weight: 700;
        font-size: 1.05rem;
        padding: 1rem;
        background: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
        
      }
    
      .cc-compare__table td {
        text-align: right;
        padding: 1rem;
        border: none;
      }
    
      .cc-mobile-card {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
        justify-content: flex-start;
      }
    
      .cc-mobile-card img {
        height: 26px;
        object-fit: contain;
      }
    
      .cc-mobile-card span {
        font-size: 0.8rem;
        font-weight: 600;
        color: #6b7280;
        
      }
    }

.comparison-table h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #2c456b;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* Rubriker */
.comparison-table th {
  padding: 16px 12px;
  text-align: center;
  background-color: #2c456b;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Bild + kortnamn i rubrik */
.comparison-table .card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.comparison-table .card-img {
  max-height: 48px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-table .card-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Celler */
.comparison-table td {
  padding: 16px 12px;
  text-align: center;
  border-bottom: 1px solid #e5eaf0;
  font-size: 1rem;
  background-color: #fff;
}

.comparison-table tbody tr:nth-child(even) td {
  background-color: #f8f9fb;
}

.comparison-table tbody tr:hover td {
  background-color: #f0f4f9;
}

.comparison-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .comparison-table {
    display: none;
  }

  .comparison-mobile {
    display: block;
    padding: 1rem;
  }

  .comparison-mobile .card-block {
    margin-bottom: 2rem;
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  .comparison-mobile .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
  }

  .comparison-mobile .card-header img {
    height: 40px;
    width: auto;
    border-radius: 6px;
  }

  .comparison-mobile .card-header span {
    font-weight: 700;
    color: #2c456b;
    font-size: 1.1rem;
  }

  .comparison-mobile .card-detail {
    margin: 4px 0;
    font-size: 0.95rem;
  }
}





  /*QUIZ*/
  .center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Optional: vertical centering if you want full screen */
    padding: 2rem;
  }
  


  .card-quiz {
    max-width: 1000px;
    width: 100%;
    background-color: #ffffff;
    padding: 2.5rem;
    margin: 2rem 1rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease-in-out;
    
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .card-quiz h1 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    text-align: center;
    color: #2b456c;
  }
  
  .quiz-step {
    margin-bottom: 1.8rem;
  }
  
  .quiz-step p {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2b456c;
    font-size: 1rem;
  }
  
  .quiz-step label {
    display: block;
    background-color: #f0f4f9;
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.6rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .quiz-step label:hover {
    background-color: #e2ebf5;
    border-color: #2b456c;
  }
  
  .quiz-step input[type="radio"] {
    margin-right: 10px;
    accent-color: #2b456c;
  }
  
  .button {
    display: block;
    width: 100%;
    background-color: #2b456c;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .button:hover {
    background-color: #1d2f4b;
    transform: scale(1.02);
  }
  
  .result {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #eef3f8;
    border-left: 5px solid #2b456c;
    color: #1a2d47;
  }
  
  .result h2 {
    margin-top: 0;
    color: #2b456c;
    font-size: 1.5rem;
  }
  
  @media (max-width: 600px) {
    .card-quiz {
      padding: 2rem 1.5rem;
    }
  
    .quiz-step label {
      font-size: 0.95rem;
      padding: 0.8rem 1rem;
    }
  
    .quiz-step p {
      font-size: 0.95rem;
    }
  
    .button {
      font-size: 0.95rem;
    }
  }