/* ======================================================
   หน้ารวมระบบ (Portal) - สพป.นครราชสีมา เขต 6
   ใช้คู่กับ assets/css/style.css (ธีมหลัก)
   ====================================================== */

.portal-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #1a2a4a 0%, #2d4a7a 50%, #1a2a4a 100%);
}

.portal-header {
  text-align: center;
  color: #fff;
  margin-bottom: 2.5rem;
}
.portal-header img {
  height: 90px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.portal-header h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.portal-header p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.85;
}

.portal-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
}

.portal-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  width: 320px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.portal-card .card-top {
  padding: 1.8rem 1.2rem;
  text-align: center;
  color: #fff;
}
.portal-card .card-top .icon { font-size: 2.6rem; display: block; margin-bottom: 0.6rem; }
.portal-card .card-top h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }

.portal-card .card-bottom {
  padding: 1.2rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.portal-card .card-bottom p {
  margin: 0;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.6;
}
.portal-card .enter-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 25px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ระบบ 1: เงินเดือนข้าราชการ — ธีมส้ม */
.portal-card.sys1 .card-top  { background: linear-gradient(135deg, #E8620A 0%, #C2500A 100%); }
.portal-card.sys1 .enter-btn { background: #E8620A; }
.portal-card.sys1:hover .enter-btn { background: #C2500A; }

/* ระบบ 2: เงินบำนาญ — ธีมเขียว */
.portal-card.sys2 .card-top  { background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%); }
.portal-card.sys2 .enter-btn { background: #2E7D32; }
.portal-card.sys2:hover .enter-btn { background: #1B5E20; }

/* ระบบ 3: เงินเดือนพนักงานราชการ — ธีมน้ำเงิน */
.portal-card.sys3 .card-top  { background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%); }
.portal-card.sys3 .enter-btn { background: #1565C0; }
.portal-card.sys3:hover .enter-btn { background: #0D47A1; }

.portal-footer {
  margin-top: 2.5rem;
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .portal-cards { flex-direction: column; align-items: center; }
  .portal-card  { width: 100%; max-width: 380px; }
}
