/* ===================================================================
   style.css (organized without removing any rules)
   -------------------------------------------------------------------
   Sections:
   01) Fonts
   02) Typography helpers (EN + TH)
   03) Base / Global
   04) Navigation & Buttons
   05) Layout utilities & common components
   06) Header & Language dropdown
   07) Sliders / Hero / Image cards
   08) Boxes / Panels
   09) Footer
   10) Phone popup
   11) Head slide & headers
   12) Company details
   13) Nav helpers & hidden-info
   14) Vision strips & titles
   15) Content sections
   16) Contact form (image bg variant) + inputs
   17) Popup / Drawer
   18) About-section (alt header)
   19) Google form wrapper & forms
   20) Events grid & cards
   21) Responsive @media (1400, 900, 700)
   22) Sticky sidebar & project cards
   23) Gallery & Lightbox
   24) Popup overlay HOTFIX & input placeholder
   25) Dynamic sticky header spacing + spacer + anchor offset
   26) Language dropdown helpers
   27) (Duplicate) #site-header override block (left as-is)
   28) scope of operations
   =================================================================== */


/* ===================================================================
   01) Fonts
   =================================================================== */

/*fonts*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai+Looped:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


/* ===================================================================
   02) Typography helpers (EN + TH)
   =================================================================== */

.montserrat-thin {/*font thin*/
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.montserrat-extralight {/*font extralight*/
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.montserrat-light {/*font light*/
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.montserrat-regular {/*font regular*/
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.montserrat-medium {/*font thin*/
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.montserrat-semibold {/*font semibold*/
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.montserrat-bold {/*font bold*/
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.montserrat-extrabold {/*font extrabold*/
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

.montserrat-black {/*font black*/
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

/*this is for texts that are in thai*/
.thai-thin {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.thai-extralight {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.thai-light {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.thai-regular {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.thai-medium {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.thai-semibold {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.thai-bold {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.thai-extrabold {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.thai-black {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}


/* ===================================================================
   03) Base / Global
   =================================================================== */

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
}


/* ===================================================================
   04) Navigation & Buttons
   =================================================================== */

.nav-link {
  font-size: 1rem;
  color: #333; /* Darker text for navigation */
  padding: 0.5rem 0.5rem;
  transition: color 0.3s ease-in-out;
}
.nav-link:hover {
  color: #003bbd; /* Blue on hover */
  text-decoration: underline;
  font-weight:600 ;
}

.lang-change{
  font-size: 1rem;
}

.contact-button {
  border: 2px solid #003bbd; /* Blue border */
  color: #003bbd; /* Blue text */
  padding: 0.5rem 0.5rem;
  border-radius: 0.5rem; /* Rounded corners */
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  font-size: 1rem;
}
.contact-button:hover {
  background-color: #003bbd; /* Blue background on hover */
  color: #ffffff; /* White text on hover */
}

.contact-button-form {
  border: 2px solid #ffffff; /* Blue border */
  color: #ffffff; /* Blue text */
  padding: 0.5rem 0.5rem;
  border-radius: 0.5rem; /* Rounded corners */
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  font-size: 5rem;
}
.contact-button-form:hover {
  background-color: #ffffff; /* Blue background on hover */
  color: #313745; /* White text on hover */
}


/* ===================================================================
   05) Layout utilities & common components
   =================================================================== */

.pb{
  padding-bottom: 2rem;
}
.context {
  font-size: 1.2rem;
}

.title{
  font-size: 4rem;
  color: #030267;
}

.title-white{
  font-size: 4rem;
  color: #ffffff;
}

.title-black{
  font-size: 4rem;
  color: #000000;
}

.sub-title{
  font-size:2rem;
  color: #030267;
}

.sub-title1{
  font-size: 1.6rem;
  color: #030267;
}
.sub-title-black{
  font-size: 2rem;
  color: #000000;
}
.sub-title-white{
  font-size: 2rem;
  color: #ffffff;
}

.learn-button {
  border: 2px solid #1b4f87; /* Blue border */
  color: #ffffff; /* Blue text */
  padding: 0.5rem 1rem;
  border-radius: 0.5rem; /* Rounded corners */
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  font-size: 1rem;
  background-color: #1b4f87;
  box-shadow: #333;
}
.learn-button:hover {
  transform: scale(1.009);
  background-color: #2565a9;
  border-color: #2565a9;
}

.white-button {
  border: 2px solid #ffffff; /* Blue border */
  color: #1b4f87; /* Blue text */
  padding: 0.5rem 1rem;
  border-radius: 0.5rem; /* Rounded corners */
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  font-size: 1rem;
  background-color: #ffffff;
  box-shadow: #333;
}
.white-button:hover {
  transform: scale(1.009);
  background-color: #cbcbcb;
  border-color: #cbcbcb;
}


/* ===================================================================
   06) Header & Language dropdown
   =================================================================== */

.header {
  position: fixed; /* Fix the header to the top of the viewport */
  top: 0; /* Align to the top */
  left: 0; /* Align to the left */
  width: 100%; /* Make it span the full width of the page */
  background-color: #003bbd; /* Background color */
  color: white; /* Text color */
  z-index: 1000; /* Ensure it stays above other content */
  padding: 0.5rem 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.body {
  margin: 0; /* Remove default margin */
}

.dropdown-arrow::after {
  content: '▼'; /* Unicode down arrow */
  font-size: 0.7em;
  margin-left: 0.25em;
  vertical-align: middle;
}

.logo {
  width: 22rem;
  height: auto;
}

.icon {
  width: auto;
  height: 1.2rem;
}
.icon:hover{
  scale: 1.005;
}

.header-top {
  background-color: #ffffff; /* A lighter grey for the very top bar if needed */
  height: 1px; /* Example height for a thin top bar */
  width: 100%;
}

.header-main {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.lang-change{
  font-size: 1rem;
}

.header-nav {
  flex-wrap: wrap;
  justify-content: center; /* Center navigation links when wrapping */
  margin-top: 0.8rem; /* Reduced margin */
}

.header-left, .header-right {
  margin-bottom: 0rem; /* Reduced margin for tighter packing */
}

#language-dropdown {
  left: 50%; /* Center the dropdown horizontally relative to its parent */
  transform: translateX(-50%); /* Adjust to truly center it */
  min-width: max-content; /* Ensure dropdown is wide enough for content */
}


/* ===================================================================
   07) Sliders / Hero / Image cards
   =================================================================== */

/*this is for the image slide*/
.square meters {
  width: 100%; /* Adjust as needed */
  height: 40rem; /* Adjust as needed */
  overflow: hidden; /* Hides images outside the current view */
  align-self: center;
  border-radius: 0;
}
.square meters-project {
  width: 100%; /* Adjust as needed */
  height: 25rem; /* Adjust as needed */
  overflow: hidden; /* Hides images outside the current view */
  align-self: center;
  border-radius: 0;
}
.square meters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.copyright-heading{
  font-size: 15px;
  color: white;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 40rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 0;
}

.fade1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 2s ease-in-out; /* slow and smooth fade */
}
.fade1.visible {
  opacity: 1;
  z-index: 1; /* bring to front */
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.672);
}

.slider-container {
  width: 100%; /* Adjust as needed */
  height: 40rem; /* Adjust as needed */
  overflow: hidden; /* Hides images outside the current view */
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 0;
}
.slider-container-project {
  width: 100%; /* Adjust as needed */
  height: 30rem; /* Adjust as needed */
  overflow: hidden; /* Hides images outside the current view */
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 0;
}

.subheading {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.main-heading {
  font-size: 64px;
  font-weight: 700;
  opacity: 0.8;
}

.main-heading-project {
  font-size: 64px;
  font-weight: 700;
  opacity: 0.7;
  font-family: "Montserrat", sans-serif; ;
}

.slider {
  display: flex;
  height: 100%;
  width: max-content; /* Allows flex children (images) to grow horizontally */
  transition: transform 1s ease-in-out;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.img-3inrow{/*when 3 images are put next together in a row*/
  width: 30rem;
  height: 20rem;
  overflow: hidden;
  position: relative;
  box-shadow: #333;
  border-radius: 1rem;
}

.img{/*how image fits inside the frame*/
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images cover the area without distortion */
  flex-shrink: 0;
}

.fade{
  transition: transform 1s ease-in-out, opacity 1.5s ease-in-out; /* Added opacity transition */
  opacity: 1; /* Ensure initial state is visible */
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover effects */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(140, 143, 159, 0.6); /* Semi-transparent black background */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease-in-out; /* Smooth transition for overlay */
  pointer-events: none;
}

.overlay-text {
  color: #ffffff; /* White text */
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.img-3inrow:hover .img { transform: scale(1.1); }
.img-3inrow:hover .image-overlay { opacity: 1; }


/* ===================================================================
   08) Boxes / Panels
   =================================================================== */

.box{
  color: #ffffff;
  width: fill;
  border-radius: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #1b4f87;
  margin: 0;
  padding: 1.5rem 40px;
  box-sizing: border-box;
}

.circle-container {
  width: 13rem; /* Adjust as needed */
  height: 13rem; /* Adjust as needed */
  overflow: hidden; /* Hides images outside the current view */
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: round;
}

.box-light{
  color: #030267;
  width: fill;
  border-radius: 0;
  background-color: #f0f3fa;
  margin: 0;
  padding: 10px 40px;
  box-sizing: border-box;
  float: top;
  align-items: center;      /* centers horizontally */
  justify-content: center;  /* centers vertically if height is set */
  text-align: center;
}

.box-white{
  color: #000000;
  width: fill;
  border-radius: 0;
  background-color: #ffffff;
  margin: 0;
  padding-top: 2rem;
  padding-left: 10rem;
  padding-right: 5rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
  float: top;
}


/* ===================================================================
   09) Footer
   =================================================================== */

.footer {
  background-color: #1b4f87; /* Adjust as needed */
  color: white;
  font-family: 'Montserrat', sans-serif;
  padding: 40px 20px 10px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 100%;
  padding: 0 60px;
  margin: 0 auto;
}

.footer-left {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* aligns logo to far left */
}

.footer-middle,
.footer-right {
  flex: 1 1 250px;
}

.footer-logo {
  width: auto;
  height:15rem;
  margin-bottom: 1px;
  align-self: flex-start;
}

.footer-subtext { max-width: 200px; }

.footer-middle h4 { font-weight: bold; margin-bottom: 10px; }

.footer-middle p,
.footer-middle a {
  line-height: 1.5;
  color: white;
  text-decoration: none;
}

.footer-icons {
  display: flex;
  gap: 35px;
  margin-top: 10px;
  align-items: center;
}
.footer-icons img{
  height: 1.5rem;
  width: auto;
}

.footer-right ul { list-style: none; padding: 0; }
.footer-right li { margin-bottom: 8px; }

.footer-right a { color: white; text-decoration: none; }
.footer-right a:hover { text-decoration: underline; }

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 30px;
  border-top: 1px solid #ffffff33;
  padding-top: 10px;
}

.footer-copyright{ font-size: 0.8rem; }
.footer-text{ font-size: 0.9rem; }


/* ===================================================================
   10) Phone Popup
   =================================================================== */

.phone-popup-wrapper {
  position: relative;
  display: inline-block;
}
.phone-icon { cursor: pointer; width: 20px; height: 20px; }

.phone-popup {
  display: none;
  position: absolute;
  bottom: 30px; /* popup above the icon */
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #000000;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  z-index: 100;
}

.phone-popup a {
  color: #030267;
  text-decoration: none;
  font-size: 0.9rem;
}
.phone-popup a:hover { text-decoration: underline; }


/* ===================================================================
   11) Head slide & headers
   =================================================================== */

.information{
  height: 6rem;
  width: auto;
}

.head-slide{
  width: 65%;
  height: 30rem;
  overflow: hidden;
  align-self: right;
  border-radius: 0;
}
.head-slide-left{
  width: 35%;
  height: 30rem;
  align-self: left;
  border-radius: 0;
  background-color: #1b4f87;
}
.context-header{
  font-size: 1.5rem;
  color: #ffffff;
  padding-left: 20%;
  padding-top: 18%;
  text-shadow: #333;
}
.title-header{
  font-size: 5rem;
  color: #ffffff;
  padding-left: 20%;
  padding-top: 25%;
  text-shadow: #333;
}


/* ===================================================================
   12) Company details
   =================================================================== */

.company-details {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: left;
}

.company-details h1 {
  font-size: 60px;
  font-weight: bold;
  text-align: left;
  margin-bottom: 40px;
}

.details-list p {
  font-size: 20px;
  margin: 12px 0;
  line-height: 1.6;
}

.label {
  font-weight: bold;
  display: inline-block;
  width: 280px;
  text-align: right;
  padding-right: 20px;
}

.hamburger{
  height: 2rem;
  width: auto;
  padding-left: 1rem;
  padding-bottom: 2;
}

#nav-menu {
  display: flex; /* This would override Tailwind's hidden on small screens */
}

/* Or maybe something more specific like */
header nav { display: block; }


/* ===================================================================
   13) Nav helpers & hidden-info
   =================================================================== */

/* Class to hide the additional info paragraphs */
.hidden-info { display: none; }


/* ===================================================================
   14) Vision strips & titles
   =================================================================== */

#vision .flex {
  margin: 0;
  padding-left: 0;
}

.left-strip-y {
  width: 2rem;
  height: auto;
  background-color: #ffb700;
  margin-left: 4rem;
}
.left-strip-y1 {
  width: 1rem;
  height: auto;
  background-color: #ffb700;
  margin-left: 4rem;
}

#vision { padding-left: 0; }

.strip-b {
  width: 6rem;
  height: 9rem;
  background-color: #1b4f87;
  margin-right: 1rem;
}
.strip-y {
  width: 6rem;
  height: 9rem;
  background-color: #dda73b;
  margin-right: 1rem;
}

.title2 {
  font-size: 2rem;
  line-height: 1.3;
}
.title2 .regular {
  font-weight: 400;
  color: #000;
  display: block;
}
.title2 .bold-blue {
  font-weight: 700;
  color: #1b4f87;
  display: block;
}


/* ===================================================================
   15) Content sections
   =================================================================== */

.img-container-square {
  width: 32rem;
  height: 25rem;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}
.img-container-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}

.left-group {
  display: flex;
  align-items: flex-start; /* <== THIS is the key fix */
  flex: 1 1 40%;
  min-width: 320px;
  gap: 1rem;
}

.text-container {
  width: 50%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1rem;
}


/* Responsive stacking */
@media (max-width: 768px) {
  .section-flex { flex-direction: column; }

  .left-group { width: 100%; justify-content: center; }

  .text-container { width: 100%; padding-left: 0; }

  .img-container-square { width: 100%; height: auto; }

  .strip-b { width: 4rem; height: 6rem; }
}


/* ===================================================================
   16) Contact form (image bg variant) + inputs
   =================================================================== */

.contact-form {
  background-image: url('/img/homehead/vision.png'); /* Replace with correct path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 40rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #172b5533;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
}

/* General form input styling */
.form-input {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.form-input:focus {
  border-color: #1b4f87;
  background-color: rgba(255, 255, 255, 0.2);
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 20 20'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06 0L10 10.91l3.71-3.7a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.23 8.27a.75.75 0 010-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
  padding-right: 2.5rem;
}


/* ===================================================================
   17) Popup / Drawer
   =================================================================== */

/*the pop up header thingy*/
/* Overlay styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
  z-index: 9999;
}
.popup-overlay.show .popup-content { transform: translateX(0); }
.popup-overlay:not(.show) .popup-content { transform: translateX(-100%); }

/* Pop-up content styles */
.popup-content {
  background-color: #ffffff;
  padding: 40px;
  width: 40rem;
  max-width: 90%;
  height: 100vh;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.popup-content.active{
  left: 0;
  opacity: 1;
}
.popup-content p {
  color: #666;
  margin-bottom: 0px;
  line-height: 1.6;
  text-align: left; /* Ensure paragraphs are also left-aligned */
}

/* Class to show the popup */
.popup-overlay.show {
  visibility: visible;
  opacity: 1;
  align-items: left;
}
.popup-overlay.show .popup-content {
  transform: scale(1);
  align-items: left;
}

/* Buttons */
#openPopupBtn, #closePopupBtn {
  padding: 1px 1px;
  background-color: #007bff00;
  color: rgba(255, 255, 255, 0);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px; /* For close button */
  align-items: left;
  place-items: bottom;
}
#closePopupBtn {
  background-color: #1b4f87;
  padding: 0.5rem 1rem;
  color: #ffffff;
  align-items: left;
  display: block; /* Make it a block element to control its own alignment */
  margin: 20px auto 0;
}

.dropdown-menu a { color: #333; }
.dropdown-menu { padding: 8px; background-color: #ffffff; }
.dropdown-menu.show { display: block; }
.dropdown-toggle .arrow { transition: transform 0.3s ease; }
.dropdown-toggle.open .arrow { transform: rotate(90deg); }
.arrow { transition: transform 0.3s ease; }


/* ===================================================================
   18) About-section (alt header)
   =================================================================== */

 /*this is the header for stuff cause i dont like the current header*/
.about-section { display: flex; height: 100vh; }

/* Left side: blue background with text */
.left-panel {
  flex: 1;
  background-color: #1b4f87;
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.top-text { margin-bottom: 40px; text-transform: uppercase; }
.main-text h1 { line-height: 1.1; font-weight: 700; }

/* Right side: background image */
.right-panel {
  flex: 1;
  background-image: url(); /* Replace with relative path if needed */
  background-size: cover;
  background-position: center;
}

.wrapper { display: inline-block; position: relative; cursor: pointer; overflow: hidden; }

.nextpage-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: sans-serif;
  color: black;
  padding: 1rem 2rem;
  z-index: 1;
}

/* Circle background using ::before */
.nextpage-button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #1b4f87;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: -1;
  transition: all 0.4s ease;
}

/* On hover: expand to text width */
.wrapper:hover .nextpage-button::before { width: 100%; border-radius: 30px; }
.wrapper:hover .nextpage-button,
.wrapper:hover .next-page-arrow { color: white; }

.next-page-arrow {
  margin-left: 1rem;
  font-size: 1.5rem;
  transition: color 0.4s ease;
}


/* ===================================================================
   19) Google form wrapper & forms
   =================================================================== */

.google-form-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100%; /* Adjust this value to control the aspect ratio */
}
.google-form-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
iframe { border: none; }

.form-section {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  align-self: right;
}


/* ===================================================================
   20) Events grid & cards
   =================================================================== */

.events-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.event-card {
  background: #fff;
  border: 2px solid #ded7ce;
  border-radius: 6px;
  width: 370px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: box-shadow 0.2s;
}
.event-card:hover { box-shadow: 0 4px 18px rgba(30,28,24,0.11); }

.event-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-bottom: 1.5px solid #ede6dd;
}
.event-img2 {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 1.5px solid #ede6dd;
}
.event-details {
  min-height: 80px;
  padding: 18px 22px 18px 22px;
  background: #fff;
}
.event-title {
  font-size: 2rem;
  font-weight: 500;
  color: #35302a;
  margin: 0;
}

@media (max-width: 1150px) {
  .events-grid { gap: 20px; }
  .event-card { width: 96vw; max-width: 380px; }
}
@media (max-width: 700px) {
  .events-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .event-card { width: 100%; min-width: 0; max-width: 420px; }
}


/* ===================================================================
   21) Responsive @media (1400, 900, 700)
   =================================================================== */

/* Responsive adjustments for smaller screens */
@media (max-width: 1400px) { 
  .header-main {
    flex-wrap: wrap; /* Allow wrapping if content is too wide */
    justify-content: left; /* Center content when wrapping */
    padding: 1rem;
  }

  .icon { width: auto; height: 1rem; }

  .lang-change{
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  .header-right { flex-wrap: wrap; justify-content: center; }
  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
  }
  .header-menu{ display: none; }
  .nav-link { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
  .contact-button { margin-top: 0.5rem; font-size: 0.8rem; }

  .nav-link-th { padding: 0.25rem 0.5rem; font-size: 1rem; }
  .contact-button-th { margin-top: 0.5rem; font-size: 1rem; }

  .context{ font-size: 1rem; }
  .context-th{ font-size: 1rem; }

  .title{ font-size: 2rem; color: #030267; }
  .title-th{ font-size: 2.2rem; color: #030267; }

  .img-3inrow{
    width: 29rem;
    height: 19rem;
    overflow: hidden;
    position: relative;
    box-shadow: #333;
    border-radius: 8;
  }

  .slider-container {
    width: 100%;
    height: 35rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  .slider-container-project {
    width: 100%;
    height: 30rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }

  .learn-button-th {
    border: 2px solid #1b4f87;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    font-size: 1rem;
  }
  .learn-button {
    border: 2px solid #1b4f87;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    font-size: 0.8rem;
  }

  .box{
    color: #ffffff;
    width: fit-content;
    border-radius: 0rem;
    box-shadow: #333;
    background-color: #1b4f87;
  }
  .box-light{
    color: #030267;
    border-radius: 0rem;
    box-shadow: #333;
    background-color: #f0f3fa;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #1b4f87;
  }

  .footer-contact,
  .footer-nav,
  .footer-copyright {
    flex: 1 1 100%; /* Full width on small screens */
    margin-bottom: 30px;
  }

  .footer-right{ display: none; }
  .footer-icons {
    display: flex;
    gap: 35px;
    margin-top: 10px;
    align-items: center;
    justify-content: center; /* center icons */
  }

  .footer-left{ display: none; }
  .footer-logo { display: none; }

  .footer-contact .social-icons { justify-content: center; }
  .footer-c{ color:#ffffff; }
  .footer-copyright { text-align: center; margin-bottom: 0; }

  .footer { padding: 3rem 2rem; }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for sections */
    gap: 2rem; /* Space between columns */
  }

  .hamburger{
    height: 2rem;
    width: auto;
    padding-bottom: 6px;
  }

  .footer-contact h3 { font-size: 1.1em; }

  .footer-contact p,
  .footer-logo p,
  .footer-nav ul li a,
  .footer-copyright{ font-size: 0.8em; }

  .social-icons a { font-size: 1.3em; }

  .head-slide{
    width: 65%;
    height: 25rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  .head-slide-left{
    width: 35%;
    height: 25rem;
    align-self: left;
    border-radius: 0;
    background-color: #1b4f87;
  }

  .context-header{ font-size: 1.5rem; }
  .title-header{ font-size: 5rem; color: #ffffff; }
  .title-white{ font-size: 2rem; color: #ffffff; }

  .title { font-size: 2.5rem; }
  .sub-title { font-size: 1.4rem; }
  .sub-title1 { font-size: 1.2rem; }
  .logo { width: 18rem; align-items: left; }
  .img-3inrow { width: 100%; height: auto; }
  .sub-title-white{ font-size: 1.5rem; color: #ffffff; }
  .circle-container { width: 8rem; height: 8rem; }

  .company-details h1 { font-size: 2rem; }
  .details-list p { font-size: 1rem; }
  .label { width: 100%; text-align: left; padding-right: 0; }
  .footer-container { flex-direction: column; padding: 0 20px; }
  .collapsible-section-title i { display: none; } /* Hide arrow icon */

  #nav-menu a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }
}

@media (max-width: 900px) { 
  .head-slide{
    width: 65%;
    height: 15rem;
    overflow: hidden;
    align-self: right;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  .slider-container{
    width: 100%;
    height: 25rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  .slider-container-project{
    width: 100%;
    height: 25rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  .head-slide-left{
    width: 35%;
    height: 15rem;
    align-self: left;
    border-radius: 0;
    background-color: #1b4f87;
  }

  .main-heading { font-size: 40px; font-weight: 700; }
  .main-heading-project { font-size: 40px; font-weight: 700; }

  .subheading {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .copyright-heading{ font-size: 10px; }

  .context-header{
    font-size: 0.8rem;
    color: #ffffff;
    padding-left: 20%;
    padding-top: 18%;
    text-shadow: #333;
  }
  .title-header{
    font-size: 3rem;
    color: #ffffff;
    padding-left: 20%;
    padding-top: 25%;
    text-shadow: #333;
  }
}

@media (max-width: 700px) { 
  .head-slide{
    width: 65%;
    height: 13rem;
    overflow: hidden;
    align-self: right;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  .slider-container{
    width: 100%;
    height: 15rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  .slider-container-project{
    width: 100%;
    height: 15rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }
  .head-slide-left{
    width: 35%;
    height: 13rem;
    align-self: left;
    border-radius: 0;
    background-color: #1b4f87;
  }
  .copyright-heading{ font-size: 6px; }

  .main-heading { font-size: 30px; font-weight: 700; opacity: 0.8; }
  .main-heading-project { font-size: 30px; font-weight: 700; }

  .subheading {
    font-size: 6px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .context-header{
    font-size: 0.7rem;
    color: #ffffff;
    padding-left: 20%;
    padding-top: 25%;
    text-shadow: #333;
  }
  .title-header{
    font-size: 2rem;
    color: #ffffff;
    padding-left: 24%;
    padding-top: 40%;
    text-shadow: #333;
  }

  .left-strip-y { width: 3rem; }

  .box-white {
    flex-direction: column;
    padding: 30px 20px;
  }

  .img-container-square img { max-height: 300px; }

  .text-container { padding-left: 0; }

  .sidebar {
    position: sticky;
    top: 7rem;   
    align-self: start;
    width: 12rem !important;
  }
}


/* ===================================================================
   22) Sticky sidebar & project cards
   =================================================================== */

.content-wrapper {
  display: flex;
  position: relative;      /* for absolute-bottom positioning */
  padding: 20px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 7rem;       /* adjust for your header height */
  align-self: start;
  width: 20rem;
  overflow-y: auto;
}

/* hide cards exactly as before */
.project-card.hidden { display: none; }

.sidebar.fixed { position: fixed; top: 0; }
.sidebar.absolute-bottom { position: absolute; top: auto; bottom: 0; }

/* Nav inside sidebar */
.nav li { list-style: none; margin-bottom: 10px; }
.nav a { text-decoration: none; color: #333; }

/* Main content */
.main-content { flex: 1; padding-left: 40px; }
.main-content section { margin-bottom: 100vh; /* demo */ }

/* Card Base */
.project-card {
  width: 350px;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Slider */
.project-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* controls height */
  overflow: hidden;
}
/* two overlapping images */
.project-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--fade-duration, 2000ms) ease;
}
.project-slider .slide.visible { opacity: 1; }

/* Content */
.project-content { padding: 1rem; }
.project-title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.project-desc { margin: 0; font-size: 0.9rem; color: #555; }


/* ===================================================================
   23) Gallery & Lightbox
   =================================================================== */

 /* Container */
.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
@media (max-width: 768px) {
  .project-container { flex-direction: column; }
}

/* Context */
.context-project { flex: 1 1 45%; }
.context-project h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.context-project p { margin-bottom: 1rem; }

/* Gallery Layout: large left, two stacked right */
.gallery {
  flex: 1 1 55%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 250px);
  gap: 1rem;
}
.gallery .main-image { grid-row: 1 / span 2; grid-column: 1 / 2; }
.gallery .side-image:nth-child(2) { grid-row: 1 / 2; grid-column: 2 / 3; }
.gallery .side-image:nth-child(3) { grid-row: 2 / 3; grid-column: 2 / 3; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

/* Overlay on last photo */
.more-overlay { position: relative; }
.more-overlay .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  border-radius: 4px;
}

/* Hidden Pool Container */
.image-pool { display: none; }

.one-img-project{
  height: 40rem;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  border-radius: 1rem;
  overflow: hidden;
  align-self: middle;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}
.lightbox.visible { visibility: visible; opacity: 1; }
.lightbox img {
  padding-top: 10px;
  padding-bottom: 10px;
  max-width: 80%;
  max-height: 80%;
  border-radius: 4px;
}
.lightbox .nav,
.lightbox .close {
  position: absolute;
  color: #fff;
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
}
.lightbox .prev { left: 2rem; }
.lightbox .next { right: 2rem; }
.lightbox .close { top: 1rem; right: 1rem; font-size: 3.5rem; }


/* ===================================================================
   24) Popup overlay HOTFIX & input placeholder
   =================================================================== */

/* === HOTFIX: unify overlay to .open and override old .show styles === */
.popup-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s !important;
  z-index: 1000 !important;
}
.popup-overlay.open {
  display: flex !important;     /* was flex in your first block */
  visibility: visible !important;
  opacity: 1 !important;
  transition: opacity 0.3s ease-in-out !important;
}

/* slide logic should key off .open, not .show */
.popup-overlay.open .popup-content { transform: translateX(0) !important; }
.popup-overlay:not(.open) .popup-content { transform: translateX(-100%) !important; }
.dropdown-menu.hidden { display: none !important; }
.dropdown-toggle .arrow { transition: transform .3s ease; }
.dropdown-toggle.open .arrow { transform: rotate(90deg); }

/* put this near the end of your CSS so it wins */
.form-input::placeholder {
  font-family: 'Montserrat', sans-serif; /* your font */
  font-weight: 500;                      /* or 400/600 etc. */
  font-size: 0.95rem;                    /* optional */
  color: rgba(255,255,255,.85);          /* optional */
  opacity: 1;                            /* Safari sometimes dims it */
}


/* ===================================================================
   25) Dynamic sticky header spacing + spacer + anchor offset
   =================================================================== */

:root { --header-h: 100px; }              /* fallback */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;                          /* overlay uses 1000+ */
  background: #fff;                      /* ensure solid bg */
}

/* use the computed var instead of a hard-coded 9rem */

/* Spacer uses the computed header height */
#header-spacer {
  height: var(--header-h, 0px);
}

/* Make in-page anchor jumps land below the header */
html { scroll-padding-top: var(--header-h, 0px); }


/* ===================================================================
   26) Language dropdown helpers
   =================================================================== */

#language-dropdown.hidden { display: none !important; }
/* Keep it above other content inside the drawer */
#language-dropdown { z-index: 2000; }

:root { --header-h: 0px; }
body { margin: 0; }

/* If your included header is already fixed/sticky, keep that there.
   You do NOT need to set #header-mount to fixed. */


/* ===================================================================
   27) (Duplicate) #site-header override block (left as-is)
   -------------------------------------------------------------------
   NOTE: This block conflicts with the earlier #site-header (fixed + white bg).
   It has comments that contradict the property below. Kept verbatim as requested.
   =================================================================== */

#site-header.scrolled {
  position: fixed;
  background: transparent;
}


/* ===================================================================
   28) scope of operations
   =================================================================== */
.page-wrap{padding-bottom:2rem}
.scope-grid{display:grid;grid-template-columns:2fr 1fr;gap:2rem}
@media (max-width:1024px){.scope-grid{grid-template-columns:1fr}}
.scope-col{display:flex;flex-direction:column;gap:1.25rem}
.scope-card{
  background:#fff;
  border:1px solid #e9eef9;
  border-radius:12px;
  padding:1.25rem 1.25rem 1.35rem;
  box-shadow:0 10px 22px -18px rgba(0,0,0,.25);
}
.sec-head{display:flex;gap:.85rem;align-items:flex-end;margin-bottom:.5rem}
.sec-no{font-size:3rem;color:#1b4f87;line-height:1}
.scope-list{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.scope-list li{
  border:1px dashed #e6ecf7;border-radius:10px;padding:.65rem .75rem .65rem 2.25rem;
  background:radial-gradient(6px 6px at 14px 18px,#1b4f87 98%,transparent) no-repeat;
  background-size:22px 22px;
}
.role{border-left:4px solid #1b4f87;padding-left:.6rem;margin-bottom:.25rem}
.badge{
  display:inline-flex;gap:.5rem;align-items:center;
  background:#eef4ff;color:#0f2b5a;font-weight:700;border-radius:999px;
  padding:.35rem .65rem;margin:.1rem 0 .35rem;
}
.role-list{list-style:none;margin:.35rem 0 0;padding:0;display:grid;gap:.45rem}
.intro-box {
  background: #f8fafc;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
  border-left: 4px solid #1b4f87;
}

.section-title {
  font-size: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.section-title span {
  color: #1b4f87;
  font-weight: bold;
  margin-right: 0.5rem;
}

.list-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.group-img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.scope-list li {
  background: #f9fafb;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border-left: 4px solid #1b4f87;
}

.keyword {
  background: #e0e7ff;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 600;
}

.role-block {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 4px solid #1b4f87;
}
/* ----- page rhythm & dividers ----- */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.section-block { margin: 2.5rem 0 1.25rem; }
.section-intro { margin-top: 0; }
.section-divider { height: 1px; background:#e6e9f2; margin: 1.5rem 0 2rem; }
.section-gap { height: 3rem; }

/* headings that stand alone */
.eyebrow { font-size: 0.95rem; letter-spacing: .08em; text-transform: uppercase; color:#395886; margin: 0 0 .25rem; }
.section-heading { font-size: 2rem; line-height: 1.2; color:#030267; margin: 0; }
.section-lead { margin-top:.5rem; color:#333; max-width: 70ch; }

/* feature band (image left, text right – but stacked on mobile) */
.feature-band {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.25rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e9eef7;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgb(0 0 0 / 6%);
}
.band-media { margin:0; }
.band-img {
  width: 100%; height: 100%; min-height: 220px; object-fit: cover;
  border-radius: 10px;
}
.band-body { display:flex; align-items: center; }

/* softer list style */
.bullet-chips {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: .6rem;
}
.bullet-chips li {
  background: #f7f9ff;
  border: 1px solid #e2e8ff;
  padding: .6rem .8rem;
  border-radius: 10px;
  line-height: 1.55;
}
.chip-key {
  background: #e0e7ff;
  border: 1px solid #cdd7ff;
  padding: .08rem .35rem;
  border-radius: 6px;
  font-weight: 600;
}

/* roles stack (cards one under another) */
.role-stack {
  display: grid;
  gap: 1rem;
}
.role-card {
  display:flex; gap:1rem; align-items: flex-start;
  background:#fff; border:1px solid #e9eef7; border-radius:12px;
  padding: 1rem; box-shadow: 0 1px 4px rgb(0 0 0 / 6%);
}
.role-img { width:88px; height:88px; object-fit: cover; border-radius:10px; }
.role-title { margin:.2rem 0 .25rem; color:#1b4f87; }

/* intro paragraph max width */
.max-w-prose { max-width: 65ch; }

/* responsiveness */
@media (max-width: 900px) {
  .section-heading { font-size: 1.6rem; }
  .feature-band { grid-template-columns: 1fr; }
  .band-img { min-height: 180px; }
} 

    /* --------- Page scaffold (adds breathing room, cards, and spacing) --------- */
    .page-wrap {
      max-width: 1100px;
      margin: 0 auto;
      padding: clamp(1rem, 2vw + 1rem, 3rem) 1rem;
    }
    .section-intro {
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 1rem;
      align-items: center;
      margin-bottom: 1.25rem;
    }
    .big-index {
      font: 800 clamp(2.75rem, 3.5vw + 1rem, 4rem) "Montserrat", sans-serif;
      line-height: 1;
      color: #1b4f87;
    }
    .section-card {
      background: #fff;
      border: 1px solid #e8ecf5;
      border-radius: 14px;
      padding: clamp(1rem, 2vw + .5rem, 2rem);
      box-shadow: 0 6px 24px rgba(18, 32, 61, .06);
    }
    .section-wrap {
      display: grid;
      gap: clamp(1rem, 1.2vw + .75rem, 1.5rem);
      margin-bottom: clamp(2.5rem, 3.5vw, 4rem);
    }
    .meta {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .25rem .6rem;
      border-radius: .5rem;
      background: #f0f3fa;
      color: #395886;
      font-size: .9rem;
      font-weight: 600;
    }
    .soft {
      color: #394b63;
      opacity: .9;
    }

    /* --------- Lists with better reading rhythm (same amount of text) --------- */
    .nice-list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: .75rem;
    }
    .nice-list > li {
      position: relative;
      padding-left: 2.25rem;
      line-height: 1.6;
    }
    .nice-list > li .num {
      position: absolute;
      left: 0;
      top: .05rem;
      width: 1.8rem;
      height: 1.8rem;
      border-radius: .6rem;
      background: #e9f0ff;
      color: #1b4f87;
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: .9rem;
    }

    /* --------- Split bullets for long technical roles --------- */
    .bullets {
      margin: 0;
      padding-left: 1.15rem;
      display: grid;
      gap: .6rem;
    }
    .bullets li { line-height: 1.6; }

    /* --------- Subsection cards --------- */
    .subcard {
      background: #f7f9fe;
      border: 1px solid #e9eefb;
      border-radius: 12px;
      padding: 1rem 1.25rem;
      margin-top: .75rem;
    }

    /* --------- Accent header bars --------- */
    .bar-title {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: .75rem;
      margin: .25rem 0 .5rem;
    }
    .bar-title::after {
      content: "";
      height: 3px;
      background: linear-gradient(90deg,#1b4f87, #8aaee0 60%, transparent);
      border-radius: 2px;
    }

    /* --------- Decorative SVG badges (no external images) --------- */
    .badge {
      width: 42px; height: 42px; border-radius: 12px;
      background: linear-gradient(135deg,#1b4f87 0%, #395886 100%);
      display: grid; place-items: center; color: #fff;
    }
    .badge svg { width: 24px; height: 24px; }

    /* --------- Scroll reveal (paired with small JS below) --------- */
    .reveal { opacity: 0; transform: translateY(16px); transition: .6s ease; }
    .reveal.show { opacity: 1; transform: none; }

    /* --- Photo cards / frames --- */
.photo-grid{
  display:grid;
  grid-template-columns: repeat(12,1fr);
  gap:clamp(12px,1.4vw,20px);
}
.photo-card{
  grid-column: span 12;
  background:#fff;
  border:1px solid #e8ecf5;
  border-radius:14px;
  box-shadow:0 8px 28px rgba(18,32,61,.06);
  overflow:hidden;
}
@media (min-width: 900px){
  .photo-card.span-6{ grid-column: span 6; }
}
.photo{
  aspect-ratio: 16/9;
  width:100%;
  object-fit:cover;
  display:block;
  background:#f0f3fa;
}
.caption{
  padding:1rem 1.25rem .25rem;
  display:flex; align-items:center; gap:.5rem;
  color:#395886; font-weight:700;
}
.caption small{ font-weight:600; color:#628ECB; }
.card-body{
  padding:0 .75rem 1.1rem 1.25rem;
}
.card-body ul{
  margin:0; padding-left:1.15rem; display:grid; gap:.5rem;
}
.card-body li{ line-height:1.6; }

.section-wrap{
  padding-left:clamp(16px,4vw,48px);
  padding-right:clamp(16px,4vw,48px);
}

.photo-grid{
  display:grid;
  grid-template-columns: repeat(12,1fr);
  gap:clamp(12px,1.4vw,20px);
}

.photo-card{
  grid-column: span 12;
  background:#fff;
  border:1px solid #e8ecf5;
  border-radius:14px;
  box-shadow:0 8px 28px rgba(18,32,61,.06);
  overflow:hidden;
}

@media (min-width: 900px){
  .photo-card.span-6{ grid-column: span 6; }
}

.photo{
  aspect-ratio: 16/9;
  width:100%;
  object-fit:cover;
  background:#f0f3fa;
}

.caption{
  padding:1rem 1.25rem .25rem;
  display:flex; align-items:center; gap:.5rem;
  color:#395886; font-weight:700;
}
.caption small{ font-weight:600; color:#628ECB; }

.card-body{
  padding:0 .75rem 1.1rem 1.25rem;
}
.card-body ul{
  margin:0; padding-left:1.15rem; display:grid; gap:.5rem;
}
.card-body li{ line-height:1.6; }


.form-navy label {
  color: #111;                 /* label text black */
  font-weight: 600;
}

/* text-like controls (skip checkboxes/radios/range) */
.form-navy input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.form-navy select,
.form-navy textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #0b2a6b; /* navy frame always */
  border-radius: 6px;
  background: #fff;            /* white bg */
  color: #555;                 /* gray text (replaces the white you had) */
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

/* handle inputs that already had .form-input */
.form-navy .form-input {
  border-color: #0b2a6b;
  background: #fff;
  color: #555;
}

/* placeholders */
.form-navy input::placeholder,
.form-navy textarea::placeholder {
  color: #9aa3b2;  /* lighter gray */
  opacity: 1;
}

/* focus */
.form-navy input:focus,
.form-navy select:focus,
.form-navy textarea:focus {
  border-color: #0f2b5a; /* darker navy */
  box-shadow: 0 0 0 2px rgba(15, 43, 90, 0.15);
  background: #fff;
  color: #444;
}

/* disabled/read-only (optional) */
.form-navy input:disabled,
.form-navy select:disabled,
.form-navy textarea:disabled {
  background: #f7f8fb;
  color: #8b93a3;
  border-color: #b9c3d6;
  cursor: not-allowed;
}

/* select arrow (keep clean look) */
.form-navy select {
  background-image:
    linear-gradient(45deg, transparent 50%, #0b2a6b 50%),
    linear-gradient(135deg, #0b2a6b 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) calc(1em + 2px),
    calc(100% - 13px) calc(1em + 2px),
    100% 0;
  background-size: 5px 5px, 5px 5px, 2.5rem 100%;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
}

/* file input button (optional but nice) */
.form-navy input[type="file"] {
  padding: .5rem;
}
.form-navy input[type="file"]::file-selector-button {
  border: 1px solid #0b2a6b;
  background: #f1f5ff;
  color: #0b2a6b;
  border-radius: 6px;
  padding: .45rem .8rem;
  margin-right: .75rem;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.form-navy input[type="file"]::file-selector-button:hover {
  background: #e6eeff;
  border-color: #0f2b5a;
}

/* checkbox/radio labels (keep text gray/black) */
.form-navy .checkbox,
.form-navy .radio,
.form-navy input[type="checkbox"] + label,
.form-navy input[type="radio"] + label {
  color: #333;
}

/* canvas + buttons small alignment (optional) */
.form-navy canvas#signature-pad {
  border: 1.5px solid #0b2a6b;
  border-radius: 6px;
  background: #fff;
}
.form-navy .btn {
  border: 1.5px solid #0b2a6b;
  border-radius: 8px;
  padding: .65rem 1.1rem;
  color: #0b2a6b;
  background: #f7fbff;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.form-navy .btn:hover {
  background: #0b2a6b;
  color: #fff;
  border-color: #0b2a6b;
  box-shadow: 0 6px 18px rgba(15,43,90,.18);
}
.form-navy .btn.primary-darkest {
  background: #0b2a6b;
  color: #fff;
}
.form-navy .btn.primary-darkest:hover {
  background: #0f2b5a;
}