/* 
 * Card Component Styles
 * Contains all styles related to cards and card-based layouts
 */

/* Base card styles */
.card {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  /* 
 * Card Component Styles
 * Contains all styles related to cards and card-based layouts
 */

/* Base card styles */
.card {
      border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
    height: 320px !important;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card header */
.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem 1.25rem;
}

/* Card body */
.card-body {
  padding: 1.25rem;
}

/* Card footer */
.card-footer {
  background-color: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem 1.25rem;
}

/* Card title */
.card-title {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #333;
}

/* Card subtitle */
.card-subtitle {
  margin-top: -0.375rem;
  margin-bottom: 0.5rem;
  color: #6c757d;
}

/* Card with image cap */
.card-img-top {
  width: 100%;
  border-top-left-radius: calc(0.5rem - 1px);
  border-top-right-radius: calc(0.5rem - 1px);
}

/* Card with image overlay */
.card-img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.25rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Card variations */
.card-primary {
  border-top: 4px solid #0056b3;
}

.card-success {
  border-top: 4px solid #28a745;
}

.card-info {
  border-top: 4px solid #17a2b8;
}

.card-warning {
  border-top: 4px solid #ffc107;
}

.card-danger {
  border-top: 4px solid #dc3545;
}

/* Responsive card adjustments */
@media (max-width: 767.98px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
}
}

/* Card header */
.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem 1.25rem;
}

/* Card body */
.card-body {
  padding: 1.25rem;
}

/* Card footer */
.card-footer {
  background-color: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem 1.25rem;
}

/* Card title */
.card-title {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #333;
}

/* Card subtitle */
.card-subtitle {
  margin-top: -0.375rem;
  margin-bottom: 0.5rem;
  color: #6c757d;
}

/* Card with image cap */
.card-img-top {
  width: 100%;
  border-top-left-radius: calc(0.5rem - 1px);
  border-top-right-radius: calc(0.5rem - 1px);
}

/* Card with image overlay */
.card-img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.25rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Card variations */
.card-primary {
  border-top: 4px solid #0056b3;
}

.card-success {
  border-top: 4px solid #28a745;
}

.card-info {
  border-top: 4px solid #17a2b8;
}

.card-warning {
  border-top: 4px solid #ffc107;
}

.card-danger {
  border-top: 4px solid #dc3545;
}

/* Responsive card adjustments */
@media (max-width: 767.98px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
}