/* Scoped section and block styles for the announcement design. */
.section.section--announcements {
  padding-block: 110px;
  background-color: #e8ddc9;
  background-image: linear-gradient(180deg, #e8ddc9 0%, rgba(232, 221, 201, .88) 28%, rgba(232, 221, 201, .3) 100%), url('https://supansapharma.com/application/files/4017/8851/5208/monk-visiting-local-pharmacy.webp');
  background-size: cover;
  background-position: center;
  color: #2f2418;
}
.section--announcements .section__header { margin-bottom: 54px; text-align: center; }
.section--announcements .section__header h2 {
  margin: 0 0 24px;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.4;
  color: #2f2418;
}
.section--announcements .section__header .lead { margin: 0; font-size: 24px; line-height: 1.6; color: #2f2418; }
.announcement-banner {
  position: relative;
  isolation: isolate;
  max-width: 960px;
  margin-inline: auto;
  padding: 34px 39px 44px;
  border: 1px solid rgba(247, 242, 234, .5);
  border-radius: 36px;
  background: rgba(247, 242, 234, .24);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #173b35;
  font-family: 'Noto Sans Thai Looped', 'Noto Sans Thai', sans-serif;
}
.announcement-banner, .announcement-banner * { box-sizing: border-box; }
.announcement-banner__background { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; pointer-events: none; }
.announcement-banner__background-image { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.announcement-banner__panel { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 32px; }
.announcement-banner__date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  background: #f7f2ea;
  text-align: center;
  box-shadow: 0 12px 32px rgba(47, 36, 24, .12);
}
.announcement-banner__icon { width: 32px; height: 32px; flex-shrink: 0; }
.announcement-banner__badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 76px;
  padding: 16px 20px;
  margin-bottom: 30px;
  background: #173b35;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
}
.announcement-banner__badge .announcement-banner__icon { width: 42px; height: 42px; }
.announcement-banner__month { font-size: 26px; font-weight: 500; line-height: 1.5; }
.announcement-banner__day { font-size: 88px; font-weight: 700; line-height: 1.2; }
.announcement-banner__year { font-size: 30px; line-height: 1.5; }
.announcement-banner__weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: calc(100% - 50px);
  min-height: 76px;
  margin: auto 25px 25px;
  padding: 12px;
  border: 1px solid #e8d9bc;
  border-radius: 18px;
  background: #f2ecdf;
  font-size: 26px;
  font-weight: 500;
}
.announcement-banner__detail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 40px 24px;
  border-radius: 26px;
  background: #f7f2ea;
  text-align: center;
  overflow-wrap: anywhere;
}
.announcement-banner__title { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.5; color: #173b35; }
.announcement-banner__shop { display: block; }
.announcement-banner__highlight { color: #ff0808; }
.announcement-banner__divider { display: flex; align-items: center; gap: 30px; width: 100%; max-width: 288px; margin: 20px 0; font-size: 32px; line-height: 1.5; }
.announcement-banner__divider::before, .announcement-banner__divider::after { content: ''; height: 2px; flex: 1; background: rgba(23, 59, 53, .2); }
.announcement-banner__event-date { margin: 0 0 8px; font-size: 34px; font-weight: 500; line-height: 1.5; color: #173b35; }
.announcement-banner__note { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.8; color: #173b35; }
.announcement-banner__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.announcement-banner__button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 50px; padding: 12px 22px; border-radius: 9999px; font-size: 16px; font-weight: 400; line-height: 1.5; text-align: center; text-decoration: none; transition: background-color .2s ease; }
.announcement-banner__button .announcement-banner__icon { width: 22px; height: 22px; }
.announcement-banner__button::after { content: ''; width: 9px; height: 9px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); flex-shrink: 0; }
.announcement-banner__button--dark { background: #173b35; color: #f7f2ea; }
.announcement-banner__button--dark:hover { background: #0f2924; color: #fff; }
.announcement-banner__button--outline { background: #f7f2ea; color: #2f2418; }
.announcement-banner__button--outline:hover { background: #fff; color: #2f2418; }
.announcement-banner__button:focus-visible { outline: 3px solid #173b35; outline-offset: 4px; }
@media (max-width: 991px) {
  .announcement-banner { padding: 28px; }
  .announcement-banner__panel { grid-template-columns: minmax(240px, .8fr) minmax(0, 1fr); gap: 24px; }
  .announcement-banner__detail-card { padding: 32px 20px; }
  .announcement-banner__title { font-size: 24px; }
  .announcement-banner__event-date { font-size: 28px; }
  .announcement-banner__note { font-size: 20px; }
  .announcement-banner__badge { font-size: 22px; gap: 12px; }
}
@media (max-width: 767px) {
  .section.section--announcements { padding-block: 64px; }
  .section--announcements .section__header { margin-bottom: 36px; }
  .section--announcements .section__header h2 { font-size: 36px; margin-bottom: 20px; }
  .section--announcements .section__header .lead { font-size: 18px; }
  .announcement-banner { padding: 20px; border-radius: 28px; }
  .announcement-banner__panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .announcement-banner__date-card { min-height: 410px; }
  .announcement-banner__detail-card { padding: 32px 16px; }
  .announcement-banner__actions { margin-top: 28px; }
  .announcement-banner__button { width: 100%; padding-inline: 16px; }
  .announcement-banner__badge { font-size: 20px; }
  .announcement-banner__weekday { font-size: 22px; width: calc(100% - 32px); margin-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .announcement-banner__button { transition: none; } }
