/* ==================================================
   ปฏิทินการศึกษา — section แยกต่างหาก (ไม่ใช่แท็บ)
   ต่อจากบล็อกแท็บ "กิจกรรมโรงเรียน" ด้านบน
   ธีม Simple & Warm เข้าชุดกับแท็บด้านบน (.bs-example-tabs)
   ================================================== */

.acal-standalone {
  --as-bg: #fffaf3;
  --as-card: #fffdf9;
  --as-ink: #4a3728;
  --as-ink-soft: #8a7362;
  --as-accent: #c9793f;
  --as-border: #ecdcc8;

  margin-top: 18px;
  background: var(--as-bg);
  border: 1px solid var(--as-border);
  border-radius: 16px;
  padding: 20px clamp(14px, 3vw, 28px) 24px;
  box-shadow: 0 10px 24px -18px rgba(74, 55, 40, .3);
}

.acal-standalone .acal-gcal-wrap {
  font-family: "Sarabun", sans-serif;
}

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

.acal-standalone .acal-gcal-head h3 {
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--as-accent);
}

.acal-standalone .acal-gcal-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--as-ink-soft);
}

.acal-standalone .acal-gcal-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--as-accent);
  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 20px -12px rgba(201, 121, 63, .5);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease, background .25s ease;
}

.acal-standalone .acal-gcal-open:hover {
  background: #b56a34;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(201, 121, 63, .6);
  color: #fff;
}

.acal-standalone .acal-gcal-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--as-border);
  box-shadow: 0 10px 24px -16px rgba(74, 55, 40, .35);
  background: var(--as-card);
}

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

@media (max-width: 600px) {
  .acal-standalone {
    padding: 16px 14px 20px;
    border-radius: 14px;
  }
  .acal-standalone .acal-gcal-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .acal-standalone .acal-gcal-frame iframe {
    height: 480px;
  }
}
