body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
  }

.container {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    text-align: left;
}

.intro {
    max-width: 1080px;
    margin: 60px auto 20px;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* card */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #ddd;
}

.card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card p {
    font-size: 14px;
    color: #666;
    flex: 1;
}

.card a {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

/* card links */
.card-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    background: #f3f3f3;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.card-links a:hover {
    background: #eaeaea;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 1;
}