/* ---------- Global Styles ---------- */
body {
  margin: 0;
  overflow: visible;
  font-family: "Thasadith", Verdana, Geneva, sans-serif;
  color: white;
  background-color: black;
}

.v3d-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

* { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

h1, h2, h3, p, blockquote {
  color: white;
  font-family: "Thasadith", Verdana, Geneva, sans-serif;
}

/* ---------- Layout ---------- */
.txt-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  text-align: center;
  z-index: 1; /* ensures content sits above backdrop */
}

/* ... (existing CSS) ... */

/* ---------- Layout ---------- */
.txt-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  text-align: center;
  z-index: 1; /* ensures content sits above backdrop */
}

/* ---------- Button Styles ---------- */

/* Container for the buttons to enable flex layout for centering */
.button-container {
  display: flex;
  justify-content: space-between; /* Distribute space between buttons to fill width */
  align-items: center;
  gap: 15px; /* Reduced space between buttons */
  margin-bottom: 30px; /* Space below the buttons before the next heading */
}
/*
Style for the button image */
.button-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
/* Style for the link wrapping the button image */
.button-link {
  display: inline-block;
  flex-grow: 1; /* Allows links to grow and fill the space */
  width: 100%;
  max-width: none; /* Removed max-width restriction */
  overflow: hidden;
  border-radius:10px;
}

/* Hover effect: Scale the image up slightly */
.button-link:hover .button-image {
  transform: scale(1.08); /* Scales the image, similar to the paragraph-image hover */
}

/* Customizing existing responsive styles for the new button-container */
@media screen and (max-width: 768px) {
  .txt-main-head { font-size: 36px; }
  .description-container {
    margin: 30px 20px;
    padding: 20px;
  }
  .description { font-size: 16px; }
  /* Existing styles for responsive button layout (already in your original CSS) */
  .button-container { flex-direction: column; }
  .button-link { width: 200px; max-width: none; margin: 10px auto; } /* Adjusting for column layout */
}

/* Remove the overlay icon from the buttons if it was being inherited from .paragraph-link */
.button-link::after {
  content: none;
}
/* ... buttons end... */

.txt-main-head {
  color: #fff;
  font-size: 48px;
  margin-top: 60px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 1);
}



/* ---------- Description Section ---------- */
.description-container {
  position: relative;
  max-width: 900px;
  margin: 200px auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

.description-container p,
.description-container li {
  font-size: 18px;
  line-height: 1.7;
  color: #ddd;
  text-align: left;
  margin-bottom: 10px;
  font-weight: normal; /* ensures lists are not bold */
}

.description {
  font-size: 18px;
  line-height: 1.7;
  color: #ddd;
  text-align: left;
  margin-bottom: 20px;
}



/* ---------- Subhead ---------- */
.sub-head {
  margin-top: 50px;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

/* Container for the buttons to enable flex layout for centering */


.button-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 15px;
  margin-bottom: 30px;
}

/* Each button takes up 1/3 of the dark background width */
.button-link {
  flex: 1;                     /* Equal width */
  max-width: 33%;              /* Ensures 3 fit in one row */
  display: block;
  overflow: hidden;
  border-radius: 30px;
  text-decoration: none;       /* Removes underline */
}

/* Button images scale properly */
.button-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover zoom */
.button-link:hover .button-image {
  transform: scale(1.08);
}

/* Remove inherited overlay */
.button-link::after {
  content: none;
}

/* Responsive — stack on mobile */
@media screen and (max-width: 768px) {
  .button-container {
    flex-direction: column;
    gap: 12px;
  }

  .button-link {
    max-width: 100%;
    width: 80%;
    margin: 0 auto;
  }
}


/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  .txt-main-head { font-size: 36px; }
  .description-container {
    margin: 30px 20px;
    padding: 20px;
  }
  .description { font-size: 16px; }
  /* Stack buttons vertically on small screens */
  .button-container {
    flex-direction: column;
    gap: 10px;
  }
  /* Give buttons a defined width when stacked */
  .button-link {
    width: 80%; /* Takes up 80% of the container width */
    margin: 0 auto;
  }
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Thasadith";
  src: url('../0000/fonts/RobotoSerif-Bold.ttf') format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Thasadith";
  src: url('../0000/fonts/RobotoSerif-Light.ttf') format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.paragraph-link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2rem 0;
  overflow: hidden;            /* Prevents image from spilling out on zoom */
}

/* Image zoom on hover */
.paragraph-image {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.paragraph-link:hover .paragraph-image {
  transform: scale(1.08);
}

/* Hover overlay icon */
.paragraph-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35%;
  max-width: 160px;            /* useful for very large screens */
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background-image: url("media/Generic_Hover.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Show overlay on hover */
.paragraph-link:hover::after {
  opacity: 1;
}
