/**
 * Content Manager Styles
 */

/* Common Styles */
.cm-grid {
  display: grid;
  grid-gap: 30px;
  margin-bottom: 30px;
}

.cm-grid-1 {
  grid-template-columns: 1fr;
}

.cm-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cm-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cm-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cm-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}

.cm-item {
  transition: all 0.3s ease;
}

.cm-item-inner {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: all 0.3s ease;
}

.cm-item-inner:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.cm-item-image {
  position: relative;
  overflow: hidden;
}

.cm-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.cm-item-inner:hover .cm-image {
  transform: scale(1.05);
}

.cm-item-content {
  padding: 20px;
}

.cm-item-title {
  font-size: 1.25rem;
  margin: 0 0 15px;
  font-weight: 600;
}

.cm-item-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cm-item-title a:hover {
  color: #0073aa;
}

.cm-item-meta {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
}

.cm-label {
  font-weight: 600;
  margin-right: 5px;
}

.cm-item-excerpt {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #555;
}

.cm-item-link {
  margin-top: auto;
}

.cm-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.cm-button:hover {
  background-color: #005177;
  color: #fff;
}

/* List View Specific */
.cm-list .cm-item-inner {
  display: flex;
  flex-direction: row;
}

.cm-list .cm-item-image {
  flex: 0 0 30%;
  max-width: 30%;
}

.cm-list .cm-item-content {
  flex: 0 0 70%;
  max-width: 70%;
}

/* Responsive */
@media (max-width: 992px) {
  .cm-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cm-grid-3,
  .cm-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cm-list .cm-item-inner {
    flex-direction: column;
  }

  .cm-list .cm-item-image,
  .cm-list .cm-item-content {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .cm-grid-2,
  .cm-grid-3,
  .cm-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Single Item Template */
.cm-single-item {
  margin-bottom: 40px;
}

.cm-single-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cm-single-image img {
  width: 100%;
  height: auto;
  display: block;
}

.cm-single-content {
  margin-bottom: 30px;
}

.cm-single-meta {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.cm-single-meta-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.cm-single-meta-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

