h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* License Classes Container */
.license-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Individual License Card */
.license-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.license-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.license-header {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
}

.license-body {
    padding: 20px;
}

.license-features {
    list-style-type: none;
    padding: 0;
}

.license-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.license-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.1rem;
    font-weight: bold;
}

.feature-icon-x {
    margin-right: 10px;
    color: #ff0000;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Color coding for different classes */
.class-a { background: #e74c3c; }
.class-b { background: #2ecc71; }
.class-c { background: #f39c12; }
.class-d { background: #9b59b6; }
.class-e { background: #1abc9c; }
.class-m { background: #34495e; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .license-container {
        grid-template-columns: 1fr;
    }
}

/* Badge for commercial licenses */
.commercial-badge {
    background: #e67e22;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
    vertical-align: middle;
}

/*======================================    PAGINATION =====================*/

    /* Layout for your existing form-container */
.form-container {
  max-width: 1200px;
  margin: 2rem auto;
}

/* Grid of cards */
.license-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Your existing card styles */
.license-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.license-header {
  padding: 0.75rem 1rem;
  font-weight: bold;
  color: #fff;
}

.class-a { background: #3366cc; }
.class-b { background: #109618; }
.class-c { background: #ff9900; }
.class-d { background: #dc3912; }
.class-e { background: #990099; }
.class-m { background: #0099c6; }

.commercial-badge {
  background: #fff;
  color: #dc3912;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
  float: right;
}

.license-body {
  padding: 1rem;
}

.license-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.license-features li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Pagination controls */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  gap: 1rem;
  /*max-width: 50px;*/
  /*width: 50%;*/
}

.pagination button {
  background: #007acc;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button[disabled] {
  background: #ccc;
  cursor: not-allowed;
}

.pagination span {
  font-size: 1rem;
}

/* Smartphones (portrait) ----------- */
@media (max-width: 480px) {
  /* 1 column layout */
  .license-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Smaller card header text */
  .license-header {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  /* Shrink feature list text */
  .license-features li {
    font-size: 1rem;
    padding: 6px 0;
  }

  /* Compact pagination */
  .pagination button {
    padding: 0.4rem 0.8rem;
    font-size: 0.5rem;
  }
  .pagination span {
    font-size: 1rem;
  }
}

/* Smartphones (landscape) & small tablets ----------- */
@media (min-width: 481px) and (max-width: 767px) {
  /* Still single column for readability */
  .license-container {
    grid-template-columns: 1fr;
  }

  .license-header {
    font-size: 1rem;
  }
  .license-features li {
    font-size: 0.9rem;
  }
}

/* Tablets (portrait) ----------- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Two-column layout */
  .license-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .license-header {
    font-size: 1.2rem;
  }
  .license-features li {
    font-size: 1rem;
  }
}

/* Tablets (landscape) / small desktops ----------- */
@media (min-width: 1024px) and (max-width: 1199px) {
  /* Three-column layout */
  .license-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
