/* =======================
   Global Styles (For All Pages)
======================= */
body {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  background-color: #ffffff;
  color: #333;
}

h1 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.top-header {
  background-color: #000; /* or whatever matches your site */
  padding: 10px;
  color: white;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.top-header a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.top-header a:hover {
  color: #e63946;
}

.top-header i {
  margin-right: 8px;
  color: white;
}



.top-header {
  display: flex;
  gap: 20px; /* Space between email and phone */
  align-items: center;
  font-size: 14px; /* Adjust size as you like */
}

.top-header span {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between icon and text */
}

.top-header i {
  font-size: 16px; /* Icon size */
  color: #fff; /* Icon color, adjust if needed */
}

.contact-item {
  margin-left: 20px;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-img {
  width: 150px;     /* Or any fixed width you want */
  height: auto;     /* Maintains aspect ratio */
  display: block;
}



.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
}


.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e63946;
}
/* Satisfied Customers Section */

#customers {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#customers h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

#customers .section-line.red {
  width: 80px;
  height: 4px;
  background-color: #e74c3c;
  margin: 0 auto 40px;
  border-radius: 2px;
}

#customers .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

#customers .box {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

#customers .box:hover {
  transform: translateY(-5px);
}

#customers .box img {
  max-width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

#customers .box p {
  font-size: 0.95em;
  color: #555;
  margin: 0;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
  }
  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
}

/* Footer */
footer {
  background-color: #d9d9d9d9; /* semi-transparent gray */
  color: #fff;
  padding: 50px 20px; /* top/bottom 50px, left/right 20px */
}

.footer-content {
  display: flex;
  justify-content: left;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  box-sizing: border-box;
}

.footer-content span {
  display: flex;
  align-items: left;
  gap: 10px;
  font-size: 16px;
}

.footer-content i {
  color: #000;
}

.footer-content a {
  color: #000;
  text-decoration: none;
}

.footer-content a:hover {
  color: #e63946;
  transition: text-shadow 0.3s ease;
}
/* Common Section Styles */
.content-section {
  padding: 50px 20px;
  text-align: center;
}

.section-line {
  width: 60px;
  height: 4px;
  margin: 10px auto 30px;
  background-color: #e63946;
}

/* Box container */
.box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.box {
  background-color: #f9f9f9;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.box img {
  width: 100%;

}

/* =======================
   Home Page (index.html)
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Kanit', sans-serif;
  line-height: 1.6;
}


.top-header {
  background: #000;
  color: #fff;
  padding: 5px 20px;
  text-align: right;
  font-size: 14px;
}


.top-header span {
  margin-left: 20px;
}


.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
}


.nav-links {
  list-style: none;
  display: flex;
}


.nav-links li {
  margin-left: 20px;
}


.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}


.menu-toggle {
  display: none;
}

/* Add padding to all content sections */
.content-section {
  padding: 60px 50px; /* Top/Bottom 60px, Left/Right 40px */
  text-align: center;
  max-width: 1300px;  /* Optional: limit max width */
  margin: 0 auto;     /* Center the section */
}

/* Same for projects section */
.projects-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section ======================================================================*/
.hero {
  height: 60vh; /* Full screen height */
  background-size: cover; /* Ensure the image covers the section */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent repeat */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align left */
}


.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  padding: 40px;
  margin-left: 60px; /* Left margin */
  border-radius: 10px;
  max-width: 600px;
}

.hero-content h1,
.hero-content h2 {
  color: #fff;
  margin: 0 0 10px 0;
}

.hero-content h1 {
  font-size: 34px;
  font-weight: bold;
}

.hero-content h2 {
  font-size: 1em;
  font-weight: normal;
  line-height: 1.5;
}



/* Hero Section ====================================================================== */

/* Fullscreen Hero Section */
.hero-location {
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.6); /* darker overlay for better contrast */
  padding: 80px; /* increased padding */
  text-align: center;
  max-width: 500px; /* wider box */
  width: 70%;
  margin: 0 auto;
  border-radius: 12px;
}

.hero-text h2 {
  font-size: 3.5em; /* slightly larger */
  margin-bottom: 20px;
}

.hero-text .section-line {
  width: 80px;
  height: 5px;
  background-color: #e63946;
  margin: 0 auto 30px;
  border-radius: 3px;
}

.hero-text p {
  font-size: 1.4em;
  line-height: 1.8;
}

/* Section General */
.content-section {
  padding: 60px 20px;
  text-align: center;
}


.content-section h2 {
  font-size: 26px;
  margin-bottom: 10px;
}


.section-line.red {
  width: 120px;
  height: 8px;
  background: #e63946;
  margin: 10px auto 40px auto;
}


/* Box Containers */
.box-container {
  display: grid;
  gap: 20px;
  justify-content: center;
}


/* Different columns for sections */
.three-columns {
  grid-template-columns: repeat(3, 1fr);
}


.two-columns {
  grid-template-columns: repeat(2, 1fr);
}


.box {
  background: #d9d9d9;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}




/* Projects Section */
.grey-background {
  background: #d9d9d9;
}


.projects-section {
  padding: 60px 20px;
}


.projects-container {
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 20vh; /* Push it more to vertical middle */
}


.projects-title {
  flex: 0.7;
  text-align: match-parent;
  padding-right: 80px;
}


.projects-title h2 {
  font-size: 26px; /* Bigger */
  margin-bottom: 10px;
}


.projects-title .section-line {
  width: 120px;
  height: 8px;
  background: #e63946;
  margin-top: 20px;
}


.projects-boxes {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}


.projects-boxes .box {
  background: #ffffff;
  height: 140px;
  border-radius: 8px;
}

/* ============= Enhancements ============= */

/* For box images */
.box img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* For text under images */
.box p {
  margin-top: 10px;
  font-size: 14px;
  padding: 0 10px 10px;
  color: #333;
}

/* Make box look more card-like */
.box {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Hover effect */
.box:hover {
  transform: translateY(-5px);
}


/* Responsive for Mobile */
@media (max-width: 768px) {
  .three-columns {
    grid-template-columns: 1fr 1fr;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
}

/* =======================
   About Page (about.html)
======================= */

h1, h2, h3, h4, h5, p {
  margin: 0;
  padding: 0;
}


.section-line {
  width: 50px;
  height: 4px;
  background-color: #cc3b1e; /* red color */
  margin: 10px auto;
}


.small-line {
  width: 30px;
  height: 3px;
  background-color: #cc3b1e;
  margin: 10px 0;
}


/* Top Header */
.top-header {
  background-color: #000;
  color: #fff;
  text-align: right;
  padding: 5px 20px;
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
}

.about-intro {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.intro-text {
  flex: 1;
  min-width: 300px;
}

.intro-image {
  flex: 1;
  min-width: 300px;
}

.intro-img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-img {
  width: 80px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  transition: max-height 0.3s ease;
}

.nav-links li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 16px;
}



/* Hamburger button styling */
.menu-toggle {
  font-size: 26px;
  cursor: pointer;
  display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    /* other styles */
  }
  .nav-links {
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }
}

/* About Hero */
.about-hero {
  text-align: center;
  padding: 50px 20px 30px;
}


.about-hero h1 {
  font-size: 32px;
}


.about-hero h2 {
  font-size: 20px;
  margin-top: 10px;
}


/* About Intro Section */
.about-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}


.intro-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}


.intro-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}


.intro-text p {
  font-size: 16px;
  line-height: 1.5;
}


.intro-image {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}


.image-placeholder {
  width: 100%;
  height: 200px;
  background: #ccc;
}


/* Mission and Vision Cards */
.mission-vision {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
  gap: 20px;
}


.card {
  background: #f1f1f1;
  padding: 30px;
  width: 400px;
  position: relative;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}


.card h4 {
  font-size: 18px;
  font-weight: 700;
}


.card p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}


.red-square {
  width: 60px;
  height: 60px;
  background: #cc3b1e;
  position: absolute;
  z-index: -1;
}


.top-right {
  top: -20px;
  right: -20px;
}


.bottom-left {
  bottom: -20px;
  left: -20px;
}


/* Values Section */
.values {
  text-align: center;
  padding: 50px 20px;
}


.values h2 {
  font-size: 24px;
  margin-bottom: 20px;
}


.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}


.value-box {
  background: #fff;
  padding: 20px;
  text-align: left;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}


.value-box h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}


.value-box p {
  font-size: 14px;
  line-height: 1.5;
}




/* =======================
   Services Page (services.html)
======================= */

/* ===== General Services Section ===== */
.services-section {
  padding: 4rem 2rem;
  text-align: center;
}

.services-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-line {
  width: 80px;
  height: 4px;
  background-color: #0077cc;
  margin: 0 auto 2rem auto;
  border-radius: 2px;
}

/* ===== Services List Boxes ===== */
.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-item {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex: 1 1 300px;
  max-width: 400px;
}

/* ===== Custom Sections (New Content Areas) ===== */
.custom-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.content-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.content-box.reverse {
  flex-direction: row-reverse;
}

.content-box .text {
  flex: 1 1 50%;
}

.content-box .text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 700;
}

.content-box .text ul {
  list-style-type: disc;
  padding-left: 20px;
}

.content-box .text ul li {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.content-box .image {
  flex: 1 1 40%;
  text-align: center;
}

.content-box .image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {
  .content-box {
    flex-direction: column;
    text-align: center;
  }

  .content-box.reverse {
    flex-direction: column;
  }

  .content-box .text,
  .content-box .image {
    flex: 1 1 100%;
  }

  .content-box .text ul {
    text-align: left;
  }
}
/* =======================
   Industries Page (industries.html)
======================= */
.industries-section  {
    padding: 60px 50px; /* Top/Bottom 60px, Left/Right 40px */
    text-align: center;
    max-width: 1500px;  /* Optional: limit max width */
    margin: 0 auto;     /* Center the section */
  }

.industries-section h1 {
  margin-bottom: 20px;
}


.section-line {
  width: 80px;
  height: 4px;
  background-color: #000;
  margin: 20px auto;
}

/* Box container for industries */
.box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

/* Each industry box */
.industry-box {
  background-color: #f7f7f7;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.industry-box img {
  width: 100%;
  height: 200px; /* Fixed height for uniform display */
  object-fit: cover;
  display: block;
  border-radius: 8px;
}


.industry-box p {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Hover effect */
.industry-box:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 600px) {
  .industry-box img {
    height: 150px;
  }

  .industry-box p {
    font-size: 16px;
  }
}
/* =======================
   Projects Page (projects.html)
======================= */
.projects-section {
  padding: 50px 20px;
  text-align: center;
}

.projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-item {
  background-color: #f9f9f9;
  padding: 24px;
  width: 280px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.list-container {
  margin: 30px auto;
  max-width: 1000px;
  text-align: center;
}

.custom-list {
  counter-reset: item;
  padding-left: 20px;
}

.custom-list li {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 18px;
  position: relative;
  padding-left: 25px;

}
.two-columns {
  display: flex;
  gap: 40px; /* space between columns */
  flex-wrap: wrap;
}

.column {
  flex: 1; /* each column takes equal width */
  min-width: 300px; /* responsive minimum width */
}

/* =======================
   Contact Page (contact.html)
======================= */
.contact-section {
  padding: 50px 20px;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 30px auto;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-title {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  color: #333;
}

.contact-form button {
  background-color: #e63946;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #d62828;
}

.contact-icon {
  font-size: 24px; /* Adjust size as needed */
  color: #333; /* Icon color */
  margin-right: 10px; /* Space between icon and text */
  vertical-align: middle; /* Align icon with text */
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px; /* Space between each contact item */
}

.contact-text a {
  text-decoration: none;
  color: #333; /* Link color */
  font-size: 16px; /* Adjust text size */
}

.contact-text a:hover {
  color: #007BFF; /* Change color on hover (optional) */
}

/* === Contact Page Styles === */

.hero-location {
  background-color: #e0e0e0;
  padding: 80px 20px;
  text-align: center;
}

.hero-location h2 {
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 700;
}

.hero-location .section-line {
  height: 3px;
  width: 50px;
  background-color: #c00;
  margin: 10px auto;
}

.contact-info-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  position: relative;
}

.contact-card {
  background-color: #e0e0e0;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background-color: #c00;
  z-index: -1;
}

.contact-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-line.small {
  height: 3px;
  width: 30px;
  background-color: #c00;
  margin: 10px auto 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 24px;
  height: 24px;
}

.contact-text a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.contact-text a:hover {
  color: #fff;
}

/* === Location Page/location.html === */

.locations-details {
  padding: 60px 20px;
  text-align: center;
}

.locations-details div {
  margin-bottom: 40px;
}

.locations-details h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.locations-details p {
  font-size: 16px;
  line-height: 1.5;
}

.locations-details a {
  color: inherit;
  text-decoration: underline;
}

.locations-details a:hover {
  color: #c00;
}