@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');

:root {
  --purple: #6b4e99;
  --deep-purple: #3c245d;
  --accent: #ba0000;
  --text: #2f2b35;
  --muted: #5f5968;
  --line: #ece8f1;
  --page-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Noto Sans Thai", sans-serif;
  line-height: 1.55;
}

a {
  font-weight: 800;
  text-decoration: none;
  color: var(--deep-purple);
}

ul {
  padding-inline-start: 10px;
  text-align: left;
}

.site-header {
  width: 100%;
}

.site-header img {
  display: block;
  width: 100%;
  height: auto;
}

.notice {
  margin: 0;
  padding: 8px 16px 18px;
  color: #504a60;
  font-size: clamp(12px, 1.4vw, 16px);
  text-align: center;
}

.container {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  padding: 18px 0 clamp(58px, 14vw, 156px);
}

.news-card {
  overflow: hidden;
  min-height: 394px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(63, 44, 89, 0.08);
}

.news-image {
  display: block;
  width: 100%;
  height: auto;
}

.news-body {
  padding: 18px 20px 24px;
  text-align: center;
}

.news-body h2 {
  margin: 0 0 9px;
  color: #2d2932;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.35;
}

.news-body p {
  margin: 0;
  color: #423d47;
  font-size: 14px;
}

.document-links {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.download {
  text-align: center;
}

.download-panel {
  display: grid;
  min-height: 198px;
  padding: 22px 16px;
  place-items: center;
  background: var(--purple);
  color: #ffffff;
}

.download-title {
  display: block;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 800;
  line-height: 1;
}

.download-subtitle,
.download-date {
  display: block;
  color: #f0e9f7;
  font-size: 18px;
  line-height: 1.8;
  text-transform: uppercase;
}

.download-subtitle {
  color: #d4c7e5;
  font-weight: 800;
}

.download-date {
  color: #d4c7e5;
  font-size: 20px;
  text-transform: none;
}

.download-text {
  display: block;
  color: #d4c7e5;
  font-size: 14px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 286px);
  min-height: 63px;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  margin-top: 0;
  padding: 22px 0 24px;
  background: #050505;
  border-top: 0;
}

.footer-inner {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px 34px;
  align-items: start;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
}

.footer-address {
  grid-column: auto;
}

.footer-contact-list {
  display: grid;
  gap: 10px;
}

.footer-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #7926a8;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.footer-contact strong {
  display: block;
  margin-bottom: 0;
  color: #ffffff;
  font-size: 13px;
}

.footer-contact p,
.footer-contact address {
  margin: 0;
  color: #d7d1de;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 48px;
  text-align: center;
}

.contact-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.contact-item::after {
  position: absolute;
  top: 25px;
  left: calc(50% + 32px);
  width: calc(100% - 48px);
  border-top: 2px dotted #30263b;
  content: "";
}

.contact-item:last-child::after {
  display: none;
}

.contact-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #7926a8;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.contact-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.08;
}

.contact-text {
  margin: 0;
  overflow-wrap: anywhere;
  color: #39333e;
  font-size: 15px;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 72px;
  }

  .download {
    grid-column: 1 / -1;
  }

  .download-panel {
    min-height: 170px;
  }

  .contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-item::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .notice {
    padding-bottom: 14px;
  }

  .container {
    width: min(calc(100% - 24px), 420px);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 8px 0 56px;
  }

  .news-card {
    min-height: auto;
  }

  .download-button {
    width: min(100%, 304px);
    font-size: 23px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding: 22px 0 24px;
  }

  .footer-inner {
    width: min(calc(100% - 24px), 420px);
  }

  .footer-contact-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .footer-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
}
