/* ==================================================
   แท็บ "ปฏิทินวิชาการ" (#tabnews3) — Google Calendar embed
   ธีมชมพู-แสด (Sunset) ให้เข้าชุดกับแท็บอื่นในหน้าแรก
   ================================================== */

.acal-gcal-wrap {
  font-family: "Sarabun", sans-serif;
  padding: 4px 2px 2px;
}

.acal-gcal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.acal-gcal-head h3 {
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #ff2f7e 0%, #ff7a30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.acal-gcal-head p {
  margin: 0;
  font-size: 13.5px;
  color: #6b3a51;
}

.acal-gcal-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: linear-gradient(135deg, #ff2f7e 0%, #ff7a30 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-family: "Kanit", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 22px -12px rgba(255, 47, 126, .55);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}

.acal-gcal-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(255, 47, 126, .65);
  color: #fff;
}

.acal-gcal-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(216, 17, 89, .4);
  border: 1px solid rgba(255, 47, 126, .18);
  background: #fff;
}

.acal-gcal-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .acal-gcal-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .acal-gcal-frame iframe {
    height: 480px;
  }
}
