/* ===== Global ===== */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #222;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
}

/* ===== Page Title ===== */
.page-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  font-weight: 700;
  margin: 2rem 0;
  color: #0b6583;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: 1rem 0;
  padding-left: 1rem;
  color: #0b6583;
}

/* ===== Scroll Container ===== */
.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.5rem 1rem;
  scroll-behavior: smooth;
  cursor: grab;
}
.scroll-container:active {
  cursor: grabbing;
}

/* ===== Scroll Card ===== */
.scroll-card {
  flex: 0 0 auto;
  width: 200px;
  height: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* image at top, title at bottom */
  padding: 0.3rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #fdcda9;
}

.scroll-card img {
  width: 100%;
  object-fit: contain;
  height: 80%;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.2rem;
  margin-top: 0;
  padding-top: 0;
}

.scroll-title {
  margin-top: auto; /* sticks to bottom */
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  color: #0b6583;
  font-weight: 600;
  text-align: left;
}

.scroll-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ===== View More Scroll Card ===== */
.scroll-card.view-more {
  justify-content: center;
  align-items: center;
}
.scroll-card.view-more a {
  padding: 0.5rem 1rem;
  background: #23459b;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  transition: background 0.2s, transform 0.2s;
}
.scroll-card.view-more a:hover {
  background: #1a326b;
  transform: scale(1.05);
}

/* ===== Mixed Templates Grid ===== */
#mixed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  padding: 1rem;
}

.mixed-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mixed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.mixed-image {
  display: flex;
  align-items: flex-end; /* pushes image to bottom if small */
  justify-content: center;
  overflow: hidden;
  max-height: 80%; /* optional max height */
}

.mixed-image img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Mixed Info Section ===== */
.mixed-info {
  padding: 0.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  margin-top: auto; /* sticks info to bottom */
  gap: 0.25rem;
}

.mixed-info h3 {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #0b6583;
  margin: 0;
}

.mixed-info p {
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  color: #222;
  margin: 0;
}

.mixed-info p .info-value {
  color: #555;
  font-weight: normal;
}

/* ===== Buttons ===== */
.mixed-info .btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  background: #23459b;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.mixed-info .btn:hover {
  background: #1a326b;
  transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .scroll-card {
    width: 140px;
    height: 220px;
  }
  .scroll-title {
    font-size: 0.75rem;
  }
  #mixed-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  .mixed-info h3 {
    font-size: 0.9rem;
  }
  .mixed-info p, .mixed-info .btn {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .scroll-card {
    width: 120px;
    height: 200px;
  }
  .scroll-title {
    font-size: 0.7rem;
  }
  .mixed-info h3 {
    font-size: 0.85rem;
  }
  .mixed-info p, .mixed-info .btn {
    font-size: 0.65rem;
  }
}
