/* General Styles */
:root {
    --primary-color: #686f5b;
    --secondary-color: #cdcfc6;
    --accent-color: #f2efeb;
    --text-color: #686f5b;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Roboto;
  background-color: var(--accent-color);
  line-height: 1.6;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%; /* Ensure content doesn't exceed viewport width */
  box-sizing: border-box; /* Include padding in width calculations */
}
img {
  max-width: 100%;
}
section {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  
}
/* Lazy loading to improve speed */
/* section {
    opacity: 1;
    will-change: opacity;
}

section:not(#pg1) {
    opacity: 0;
} */
*, *::before, *::after {
  box-sizing: border-box;
}
@media (max-width: 768px) {
  /* html, body {
    max-width: 100%;
    overflow-x: hidden;
  } */
}

@media (max-width: 480px) {
  body {
    font-size : 14px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
}



/* Section Pg-1 */

#pg1 .banner {
  background-color: var(--secondary-color);
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

}

#pg1 .top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#pg1 .left-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

#pg1 .logo-container {
    margin-top: 10px;
    margin-left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#pg1 .logo {
  width: 60px;
  height: auto;
}

#pg1 .logo-text {
  font-size: 10px;
  color: var(--text-color);
  font-family: Montserrat;

}

#pg1 .slogan {
  font-style: italic;
  color: var(--text-color);
  font-family: Libre Baskerville;
  font-size: 20px;
}

#pg1 .right-section {
  text-align: center;
  font-family: Libre Baskerville;
  font-size: 20px;
  color: var(--text-color);
  margin-right: 30px;
}

#pg1 .image-section {
    width: 100%;
  display: flex;
  justify-content: center;
}

#pg1 .main-image {
  width: 100%;
  height: auto;
  max-height: 90%;
}

@media (max-width: 768px) {
#pg1 {
  height: auto;
  min-height: 100vh;
}
#pg1 .top-bar {
    flex-direction: column;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  
  #pg1 .left-section {
    flex-direction: column;
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  
  #pg1 .right-section {
    text-align: center;
    margin-top: 15px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  #pg1 .logo-container {
    margin-left: 0;
    margin-right: 0;
    
  }
}

@media (max-width: 480px) {
  #pg1 .logo {
    width: 50px;
  }
  
  #pg1 .top-bar {
    padding: 15px 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
}

/* Section Pg-2 */
#pg2 {
  margin: 0;
  font-family: Roboto;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
#pg2 .container {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    padding: 40px;
    max-width: 100%;
    gap: 40px;
}

#pg2 .text-content {
    flex: 1;
    font-size: 21px;
    line-height: 1.6;
    max-width: 70%;
    /* font-weight: bold; */
    text-align: center;
}

#pg2 .image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

#pg2 .image-content img {
    width: 90%;
    max-height: 60%;
    max-width: 100%;
    border-radius: 30px;
}

@media (min-width: 481px) and (max-width: 768px) {
  #pg2 {
    height: auto;
    min-height: 100vh;
  }
  #pg2 .container {
    flex-direction: column;
    padding: 20px;
  }
  #pg2 .text-content {
    max-width: 100%;
    margin-bottom: 20px;
    order: 2; /* Text below image on mobile */
  }
  #pg2 .image-content {
    order: 1; /* Image above text on mobile */
  }
}

@media (max-width: 480px) {
   #pg2 {
    height: auto;
    min-height: 100vh;
  }
  #pg2 .container {
    flex-direction: column;
    padding: 20px;
  }
  #pg2 .text-content {
    max-width: 100%;
    margin-bottom: 20px;
    order: 2; /* Text below image on mobile */
  }
  #pg2 .image-content {
    order: 1; /* Image above text on mobile */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #pg2 .container {
    padding: 30px;
  }
}




/* Section Pg-3 */
#pg3 {
  margin: 0;
  background-color: var(--accent-color); 
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: var(--text-color);
}
#pg3 .container {
    background-color: var(--accent-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding: 40px;
    max-width: 100%;
    gap: 40px;
}

#pg3 .text-content {
    font-family: Roboto;
    flex: 1;
    font-size: 48px;
    line-height: 1.6;
    max-width: 70%;
    text-align: center;
    font-style: italic;
}

#pg3 .image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

#pg3 .image-content img {
    width: 90%;
    max-height: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
  #pg3 {
    height: auto;
    min-height: 100vh;
  }
#pg3 .container {
    flex-direction: column;
    padding: 20px;
  }
  
  
  #pg3 .text-content {
    max-width: 100%;
    margin-bottom: 20px;
    order: 2; /* Text below image on mobile */
    font-size: 30px;
  }
  
  
  #pg3 .image-content {
    order: 1; /* Image above text on mobile */
  }
}

@media (max-width: 480px) {
}

@media (min-width: 769px) and (max-width: 1024px) {
#pg3 .container {
      padding: 30px;

}
}



/* Section Pg-4 */
#pg4 {
  margin: 0;
  font-family: Roboto;
  background-image: url('src/pg4_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pg4 .container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

#pg4 .text-container {
  background-color: white;
  padding: 40px 60px;
  max-width: 700px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
}

#pg4 .text-container h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #686f5b;
}

#pg4 .text-container p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #686f5b;
}

@media (max-width: 768px) {
  #pg4 {
    height: auto;
    min-height: 100vh;
    background-attachment: scroll;
  }
   #pg4 .text-container {
    padding: 25px 30px;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
}

@media (min-width: 769px) and (max-width: 1024px) {
}



/* Section Pg-5 */
#pg5 {
  margin: 0;
  font-family: Roboto;
  background-color: var(--accent-color);
  /* padding: 60px 0; */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#pg5 .grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  max-width: 100%;
  margin: 0;
}

#pg5 .grid-item {
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}



#pg5 .dark-bg {
  background-color: var(--primary-color);
  color: var(--accent-color);
}

#pg5 .light-bg {
  background-color: var(--accent-color);
  color: var(--text-color);
}

#pg5 .content-box {
  text-align: center;
  /* padding: 20px; */
  margin: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 10px var(--primary-color);
}
/* Text content styles comment to make everything start from top */
#pg5 .content-box.text-cont {
  margin: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

}

#pg5 .content-box.light-bg {
  box-shadow: 0 3px 10px var(--accent-color);
}

#pg5 .content-box.img-cont {
  box-shadow: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#pg5 .content-box h3 {
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: bold;
}

#pg5 .product-list {
    list-style-type: none;
    font-size: 21px;
    padding: 0;
    margin: 0;
    font-style: italic;
}

#pg5 .content-box p {
  font-size: 21px;
  line-height: 1.2;
}

#pg5 img {
  max-width: 80%;
  height:auto;
  max-height: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  object-fit: contain;
  object-position: center;
}

@media (max-width: 768px) {
  #pg5 .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
     grid-template-areas:
      "item1"
      "item2"
      "item4"
      "item3"
      "item5"
      "item6";
  }
  
  /* Assign the grid areas according to your desired order */
  #pg5 .grid-item:nth-child(1) { grid-area: item1; } /* [1,1] */
  #pg5 .grid-item:nth-child(4) { grid-area: item2; } /* [2,1] */
  #pg5 .grid-item:nth-child(5) { grid-area: item4; } /* [2,2] */
  #pg5 .grid-item:nth-child(2) { grid-area: item3; } /* [1,2] */
  #pg5 .grid-item:nth-child(3) { grid-area: item5; } /* [1,3] */
  #pg5 .grid-item:nth-child(6) { grid-area: item6; } /* [2,3] */
  }
  img {
    max-width: 100%;
    height: auto;

  }
  #pg5 {
    height: auto;
  }
  #pg5 .content-box.img-cont {
    height: auto;
    min-height: fit-content;
  }
}

@media (max-width: 480px) {
}

@media (min-width: 769px) and (max-width: 1024px) {
   #pg5 .grid-item {
    padding: 15px;
    min-height: 200px;
  }
  
  #pg5 .content-box h3 {
    font-size: 18px;
  }
  
  #pg5 .product-list {
    font-size: 14px;
  }
}



/* Section Pg-6 */


#pg6 .container {
  margin: 0;
  max-width: 100%;
  padding: 60px 0;
  background-color: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

#pg6 .left-section {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

#pg6 .left-section span {
  font-family: Roboto;
  font-size: 58px;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  color: var(--primary-color);
}
#pg6 .feature-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-left: 15px;
}

#pg6 .feature {
  width: 50%;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 20px;
}

#pg6 .image-column {
  width: 40%;
  margin-right: 20px;
}

#pg6 .image-column img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#pg6 .text-column {
  width: 60%;
}

#pg6 .text-column span {
  font-family: Roboto;
  display: block;
  color: var(--primary-color);
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 10px;
}

#pg6 .text-column p {
  font-family: Roboto;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.1;
}

#pg6 .divider {
  border: none;
  height: 1px;
  background-color: var(--primary-color);
  margin: 30px 0;
}

@media (max-width: 768px) {
  #pg6 .container {
    flex-direction: column;
    padding-bottom: 20px;
  }


 #pg6 .feature-row {
    gap: 20px;
  }

  #pg6 .feature {
    width: 100%;
  }
  
  #pg6 .image-column {
    margin-right: 0;
    width: 100%;
    margin-bottom: 15px;
  }





  #pg6 .text-column {
    width: 100%;
  }
   #pg6 .left-section span {
    font-size: 24px;
  }
}


@media (min-width: 769px) and (max-width: 1024px) {
#pg6 .container {
    flex-direction: column;
  }
  
  #pg6 .left-section {
    margin-bottom: 30px;
  }
  
  #pg6 .right-section {
    width: 90%;
  }
}

/* Section Pg-7 */
#pg7 .container {
  width: 100%;
  font-family: Arial, sans-serif;
  background-color: var(--accent-color);
  padding: 60px 0;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

#pg7 .top-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

#pg7 .feature-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

#pg7 .feature {
  width: 50%;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 20px;
}

#pg7 .image-column {
  width: 40%;
  margin-right: 20px;
}

#pg7 .image-column img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#pg7 .text-column {
  width: 60%;
}

#pg7 .text-column span {
  display: block;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

#pg7 .text-column p {
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
}

#pg7 .bottom-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#pg7 .bottom-section img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#pg7 .divider {
  border: none;
  height: 1px;
  background-color: var(--primary-color);
  margin: 30px 0;
}
@media (max-width: 768px) {
 
  #pg7 .container {
    flex-direction: column;
    padding-top: 20px;
  }
  #pg7 .feature-row {
    gap: 0;
    margin: 0;
    padding: 0;
    max-width: 100%;
    flex-direction: column;
    gap: 0;
  }

  #pg7 .feature {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 15px;
    gap: 20px;
    padding: 20px;
    padding-right: 0;
    padding-left: 0;
    /* margin-left: 10px; */

  }
  
  #pg7 .image-column {
    max-width: 100%;
    margin: 0;

  }
  #pg7 .text-column {
    max-width: 100%;
  }
  #pg7 .text-column span {
  font-family: Roboto;
  display: block;
  color: var(--primary-color);
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 10px;
}
#pg7 .text-column p {
  font-family: Roboto;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.1;
}
}

@media (min-width: 769px) and (max-width: 1024px) {
  #pg7 .feature {
    padding: 15px;
  }
  
  #pg7 .text-column span {
    font-size: 16px;
  }
  
  #pg7 .text-column p {
    font-size: 13px;
  }
   #pg7 .image-column {
    width: 35%;
  }
  
  #pg7 .text-column {
    width: 65%;
  }
}

/* Cards Responsiveness */
@media (max-width: 480px) {
  #pg6 .feature-row, #pg7 .feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    margin: 0;
  }

  #pg6 .image-column, #pg7 .image-column,
  #pg6 .text-column, #pg7 .text-column {
    width: 100%;
  }
}




/* Section Pg-8 */

#pg8 .container {
    width: 100%;
    margin: 0;
    font-family: Roboto;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    min-height: 100vh;
}

#pg8 .image-container {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#pg8 .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#pg8 .text-container {
    flex: 1;
    /* width: 50%; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
}

#pg8 .text-container span {
  font-family: Roboto;
    font-size: 49px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    /* color: var(--primary-color); */
}
#pg8 .text-container hr {
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    margin: 20px 0;
}
#pg8 .text-container p {
    font-family: Roboto;
    font-size: 20px;
    line-height: 1.1;
    max-width: 70%;
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
  #pg8 .container {
    flex-direction: column;
  }
  
  #pg8 .image-container, 
  #pg8 .text-container {
    max-width: 100%;
  }
  
  #pg8 .text-container p {
    max-width: 100%;
  }
  
  #pg8 .image-container {
    height: auto; /* Control image height on mobile */
}
  #img {
    max-width: 100%;
    height: auto;
    object-fit:fill;
  }
}
@media (max-width: 480px) {
}

@media (min-width: 769px) and (max-width: 1024px) {
#pg8 .container {
  padding: 30px;
}
}



/* Section Pg-9 */

#pg9 .container{
  margin: 0;
  font-family: Roboto;
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#pg9 .left-section {
    align-items: left;
    margin: 0;
    margin-top: 20px;
    padding: 20px;
}

#pg9 .heading span {
  font-family: Roboto;
    font-size: 50px;
    font-weight: bold;
    font-style: italic;
}
#pg9 .address, .mailandno {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#pg9 .address, .mailandno span {
    font-family: Roboto;
    /* margin-left: 10px; */
    width: 100%;
    font-size: 18px;
}

#pg9 .right-section {
  margin-top: 30px;
  margin-right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40%; /* Add width constraint instead of commenting it out */
  text-align: center;
  font-family: Roboto;
  font-size: 18px;

}

#pg9 img {
  background-color: var(--accent-color);
  max-width: 100%; /* Make image responsive */
  height: auto; /* Maintain aspect ratio */
  padding: 10px; /* Add some padding around QR code */
  border-radius: 5px; /* Optional: add slight rounding */
}

@media (max-width: 768px) {
   /* #pg9 .qr-code img {
    max-width: 200px; 
  } */
   #pg9 .container {
    flex-direction: column;
    padding: 40px 20px; /* Add horizontal padding */
  }
  
  #pg9 .left-section {
    width: 100%;
    margin-right: 0;
    text-align: center;
    align-items: center;
  }
  
  #pg9 .right-section {
    margin: 30px auto 0;
    width: 80%; /* Wider on mobile */
    max-width: 300px; /* Limit maximum width */
  }
}

@media (max-width: 480px) {
   #pg9 .container {
    padding: 30px 15px;
  }
  
  #pg9 .heading span {
    font-size: 24px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
#pg9 .container {
    padding: 30px;
  }
  
  #pg9 .right-section {
    margin-right: 20px;
    width: 35%;
  }
}



/* Improve responsive behavior for sections with 100vh height */
/* @media (max-width: 768px) and (orientation: portrait) {
  #pg2, #pg3, #pg4, #pg5, #pg8 {
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
  }
  
  .container {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
} */