@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

:root {
  --topbar-h: 55px;
}

html {
  scroll-behavior: smooth;
}

html, body {height: 100%;}


.body {
  margin: 0;
  background-color: white;
  font-family: "Poppins", "Noto Sans Thai", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body img {
  pointer-events: none;
}

.site-wrapper{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--topbar-h); /* moved here */
}

.page-content {
  flex: 1;
  display: flex;
}


/* ----------------------------------------------------------- Mobile 1st. Override for desktop later. ----------------------------------------------------------- */

/* Override for desktop */
@media (min-width: 981px) {
    .site-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
}

.logo {
    max-width: 100%;
    max-height: 2rem;
    height: auto;
    width: auto;
    pointer-events: none;
    padding: 1rem;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.top-bar.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

.top_buttons {
    background-color: rgb(255, 255, 255);
    color: rgb(57,65,91);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 1rem 1rem 1rem 1rem;
    font-size: 1rem;
    margin: 0 0;
    transition: background-color 0.3s;
}

.top_buttons:hover {
    background-color: rgb(243, 243, 243);
}

.top-center-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}


.global_footer {
    margin: 0 auto 0 auto;
    width: 100%;
    height: auto;
    padding: 3rem 0 5rem;
    background-color: #303134;
}

.footer_overall_content {
    box-sizing: border-box;
    display: grid;
    place-items: left;
    align-items: left;
    grid-template-columns: 1fr;
    max-width: clamp(600px, 100%, 1200px);
    width: 90%;
    margin: 0 auto 0 auto;
}

.footer_heading,
.footer_content {
  margin: 0 auto;
  width: clamp(100%, 60%, 720px);
}

.underline_footer_heading,
.underline_footer_content{
  width: clamp(100%, 60%, 720px);
  height: 1px;
  background: #ff9a3b;
}

.footer_heading h2 {
    color: white;
    font-size: 1.2rem;
    font-weight: 300;
}

.footer_content p {
    color: white;
    font-size: clamp(1.1rem, 1.0vw, 1.2rem);
    font-weight: 200;
}

.underline_footer_heading {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.486);
    margin: 0 auto 0 auto;
    position: relative;
    overflow: hidden;
}

.underline_footer_content {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.486);
    margin: 0 auto 0 auto;
    position: relative;
    overflow: hidden;
}

.footer_socialMedia {
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 0.75rem;
    margin: 2rem 0 0 0.2rem;
}

.footer_socialMedia a {
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.footer_socialMedia img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.line_copyrights {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.486);
    margin: 0 auto 0 auto;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.copyrights p {
    color: white;
    font-size: 1.0rem;
    font-weight: 200;
}

.container {
 width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 2rem 1rem;
  background-color: #f1f1f187;
  min-height: 100%;   /* key line */
}

.home {
  text-align: left;
  margin-left: 1rem;
  margin-top: 2rem;
  color: #7c8498;
  font-size: 1.2rem;
  font-weight: 200;
}

.pageName {
  text-align: left;
  margin-bottom: 2rem;
  margin-left: 1rem;
  color: #2c3347;
  font-size: 1.5rem;
  font-weight: 200;
}

details {
  background: #fff;
  border-radius: 0.2rem;
  padding: 1.5rem 1.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.07);
  cursor: pointer;
}

summary {
  font-size: 1.3rem;
  color: #606060;
  font-weight: 400;
  outline: none;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

summary::marker {
  display: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 500;
  line-height: 0;         /* keeps it vertically tidy */
  transition: transform 0.2s ease, color 0.2s ease;
  color: #606060;
}

details[open] summary {
  color: #0073e6; 
}

details[open] summary::after {
  content: "-";
  color: #0073e6;
  transform: rotate(0deg);  /* just here if you want to animate later */
}

details p {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #4b536ee0;
}

/* Smooth open/close content */
.answer {
  display: grid;
  grid-template-rows: 0fr;         /* collapsed */
  transition: grid-template-rows 500ms ease;
  overflow: hidden;
  contain: paint;
}

.answer > * {
  overflow: hidden;
}

/* Fade/slide the paragraph */
.answer p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-right: 1.2rem;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 220ms ease, transform 220ms ease;
  font-size: 1.2rem;
  font-weight: 300;
}


details[open] .answer {
  grid-template-rows: 1fr;
}

details[open] .answer p {
  opacity: 1;
  transform: translateY(0);
}



