/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Kanit', sans-serif;
  background: #f8f8f8;
  color: #333;
}

/* ---------- HERO ---------- */
.download-hero {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
}

.download-hero h1 {
  font-weight: 600;
  font-size: 2.2rem;
}

.download-hero p {
  margin-top: 10px;
  opacity: 0.9;
}

/* ---------- MAIN LAYOUT ---------- */
.download-container {
  display: grid;
  grid-template-columns: 1fr 2px 1fr; /* ซ้าย | เส้นขั้น | ขวา */
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 30px;
}

/* ---------- เส้นขั้นกลาง ---------- */
.divider {
  width: 2px;
  background: linear-gradient(to bottom, transparent, #ddd, transparent);
  border-radius: 10px;
  opacity: 0.6;
}

@media (max-width: 950px) {
  .download-container {
    grid-template-columns: 1fr;
  }
  .divider {
    display: none;
  }
}

/* ---------- คอลัมน์ ---------- */
.download-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.column-title {
  text-align: center;
  font-weight: 600;
  font-size: 1.4rem;
  color: #e53935;
  margin-bottom: 25px;
}

/* ---------- GRID ของการ์ด ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr)); /* ✅ 2 การ์ดต่อแถว */
  gap: 25px;
  width: 100%;
  justify-items: center;
}

/* ---------- CARD ---------- */
.download-card {
  background: #fff;
  width: 100%;
  max-width: 340px;
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.download-card i {
  font-size: 2.2rem;
  color: #e53935;
  margin-bottom: 12px;
}

.download-card h3 {
  color: #111;
  font-weight: 600;
  margin-bottom: 6px;
}

.download-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ---------- ปุ่มดาวน์โหลด ---------- */
.btn-download {
  display: inline-block;
  margin-top: 15px;
  background: #e53935;
  color: #fff;
  padding: 9px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
  background: #c62828;
  transform: scale(1.05);
}

.btn-download.disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: 1fr; /* 📱 จอเล็กให้เรียงแนวตั้ง */
  }
  .download-card {
    max-width: 100%;
  }
}

/* ---------- FOOTER ---------- */
footer {
  margin-top: auto;
  padding: 20px;
  background: #fafafa;
  color: #888;
  font-size: 0.9em;
  text-align: center;
  border-top: 1px solid #eee;
}
