/* Web_IoTe/style.css */

/* CSS Variables เพื่อให้แก้สีง่าย */
:root {
  --primary-orange: #FF6F00;
  --light-orange-bg: #FFF0E6;
  --dark-text: #333;
  --white: #fff;
}

/* หัวข้อรอบ (Round Title) */
.round-header {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #333;
  text-transform: uppercase;
}

/* ปุ่มโครงการ (Accordion Button) */
.project-item {
  margin-bottom: 15px;
}

.project-btn {
  background-color: var(--light-orange-bg);
  color: var(--primary-orange);
  width: 100%;
  padding: 20px;
  text-align: center;
  border: none;
  outline: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

/* ส่วนรายละเอียดที่จะเลื่อนลงมา (Accordion Content) */
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-out; 
  background-color: white;
  border-radius: 10px;
  margin-top: 0px; 
  border: 1px solid transparent;
  padding: 0 20px;
  opacity: 0;
}

/* คลาส active เมื่อเปิดรายละเอียด */
.project-details.active {
  padding: 20px;
  border: 2px solid var(--primary-orange);
  margin-top: 10px;
  opacity: 1;
}

/* จัด Style ภายในรายละเอียด */
.detail-header {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.detail-content ul {
  padding-left: 20px;
  line-height: 1.6;
  color: #555;
}

.detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  background-color: var(--light-orange-bg);
  padding: 15px;
  border-radius: 0 0 8px 8px;
  margin: 20px -20px -20px -20px;
}

.apply-link {
  text-decoration: none;
  color: var(--primary-orange);
  font-weight: bold;
  border-bottom: 1px solid var(--primary-orange);
}

.seat-badge {
  background-color: var(--primary-orange);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
}