
main h1, main h2, main h3, main p {

  margin-bottom: 1rem;  padding: 0 1rem;
  font-weight: bold;
}

/* Responsive Navigation */
header {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  color: white;
  padding: 0rem; 
  margin: 0px;
}
.site-title {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Contact Buttons in Footer */
footer .contact-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .contact-buttons a {
  background-color: #444;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
footer .contact-buttons a:hover {
  background-color: #666;
}



/* From the previous */
		main { font-family: Prompt, sans-serif; margin: 0; padding: 0; background: #f8f8f8; color: #333; }
        body { font-family: Prompt, sans-serif; margin: 0; padding: 0; background: #f8f8f8; color: #333; }
        .row1 { background: #ff9900; padding: 10px; text-align: center; color: white; font-family: Microsoft Sans Serif; }
        .row1 a { color: white; text-decoration: none; margin: 0 0px; }
        .row1 img { vertical-align: middle; }
        .row2 { background: #ffffff; padding: 10px; text-align: left; font-size: 20px;}
        .row2 img { height: 60px; }
        .row3 img { width: 50%; }     
        .row3 img { width: 100%; height: auto; }
        .row5, .row6, .row7 { padding: 0px; text-align: center; }
        .row6, .row7 { display: flex; flex-wrap: wrap; justify-content: center; }
        .row6 .column, .row7 .column { padding: 7px; }    
        .row6 .column { flex: 1; min-width: 300px; }
        .row7 .column { flex: 1; min-width: 200px; }
        .row6 img, .row7 img{ width: 100%; height: auto;}
        
        .footer { background: #ffffff; color: black; text-align: center; padding: 10px; margin-top: 20px; font-family:Microsoft Sans Serif;}
         
 



	
	
		.container {
            display: flex;
            flex-wrap: wrap;
            gap: 0px;
            padding: 0px;
            background-color: #eeeeec;
        }

        .left-column {
            flex: 1; /* Larger column */
            padding: 0px;
        }

        .right-column {
            flex: 3; /* Smaller column */
            padding-left: 5px;
            padding-top: 5px;
            font-size: 25px;
            text-align: center;
            
        }

        @media (max-width: 300px) {
            .container {
                flex-direction: column;
            }

            .left-column, .right-column {
                flex: 1;
            }
        }
        
        
   
/* Fix position Nav */     
    nav.floating-menu {
      position: fixed;
      bottom: 0;
      width: 100%;
      background-color: rgba(34, 34, 34, 0.9);
      color: white;
      z-index: 999;
      display: flex;
      justify-content: center;
      gap: 2rem;
      padding: 1rem 0.5rem;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    nav a {
      color: white;
      text-decoration: none;
      font-weight: bold;
    }

	.nav a:hover {
  	  transform: scale(1.1);
	}
	
	
	
	
/* Hero for index.php */ 	   
    .hero {
      background-image: url('pic/sg.jpg');
      background-size: cover;
      background-position: center;
      padding: 0.5rem 2rem;
      text-align: center;
      color: #333;
    }
    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }
    .hero p {
      font-size: 1rem;
    }        
        
        
        
/* section for index.php */         
    .section {
      padding: 2rem;
      max-width: 1200px;
      margin: auto;
    }
    .services {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }
    .service-card {
      background: white;
      padding: 1rem;
      border-radius: 8px;
      box-shadow: 0 0 8px rgba(0,0,0,0.1);
      text-align: center;
    }
    .service-card img {
      max-width: 100%;
      border-radius: 6px;
      margin-bottom: 0.5rem;
    }


/* section for brass railing VDO */     
.video-wrapper {
  position: relative;
  display: inline-block; /* ให้ขนาดตามตัววิดีโอจริง */
  font-family: 'Prompt', sans-serif;
}

.video-wrapper video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.video-overlay-text {
  position: absolute;
  top: 80%;
  left: 2%;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.5rem;
  pointer-events: none; /* ไม่ให้รบกวนการเล่นวิดีโอ */
}

@media (max-width: 768px) {
  .video-overlay-text {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}    





  /* ปุ่มเมนู */
  /* ปรับแต่งสีได้ผ่านตัวแปร */
  :root {
    --menu-color: #333;        /* สีเส้นและข้อความ */
    --frame-fill: #ffffff;    /* สีพื้นหลังกรอบ */
    --frame-stroke: #e0e0e0;  /* สีเส้นกรอบ */
    --hover-bg: #f7f7f7;      /* สีพื้นเมื่อ hover */
  }

  .menu-btn{
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: inline-block;
    line-height: 0; /* ป้องกันช่องว่างรอบ svg */
  }

  .menu-btn:focus {
    outline: 3px solid rgba(100,150,255,0.35);
    outline-offset: 4px;
    border-radius: 14px;
  }

  svg { display: block; }

  /* กรอบ */
  .frame {
    fill: var(--frame-fill);
    stroke: var(--frame-stroke);
    stroke-width: 2;
  }

  /* เส้น 3 ขีด */
  .bars rect {
    fill: var(--menu-color);
  }

  /* คำว่า เมนู */
  .label {
    font-family: "Noto Sans Thai", "Sarabun", system-ui, Arial, sans-serif;
    font-size: 20px;
    fill: var(--menu-color);
    dominant-baseline: middle;
  }

  /* hover effect */
  .menu-btn:hover .frame { fill: var(--hover-bg); }
  .menu-btn:hover .bars rect,
  .menu-btn:hover .label { fill: #111; }

  /* ขนาดเล็กสำหรับ UI compact */
  .menu-btn.small svg { width: 140px; height: 48px; }



/* สำหรับจัดเรียงคอลัมน์ใน steel-work.php และไฟล์อื่นๆ */   
.row8 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.row8 .column {

  background: lightblue; /* ของเดิม { background: #eeeeec; padding: 10px; text-align: left; color: #4d4d4d; */
  padding: 5px;
  text-align: center;
  border-radius: 6px;
}


/* หน้า Steel */
main.steel .row8 .column {
  background: #eeeeec !important;
}

/* หน้า Brass */
main.brass .row8 .column {
  background: #eeeeec !important;
}

/* หน้า Stainless Steel */
main.stainless .row8 .column {
  background: #eeeeec !important;
}


/* มือถือ */
@media (max-width: 600px) {
  .column { flex: 1 1 calc(50% - 2.5px); }  /* 2 คอลัมน์ */
}

/* แท็บเล็ต */
@media (min-width: 601px) and (max-width: 1024px) {
  .column { flex: 1 1 calc(25% - 1px); }  /* 4 คอลัมน์ */
}

/* จอใหญ่ */
@media (min-width: 1025px) {
  .column { flex: 1 1 calc(16.66% - 1px); }  /* 6 คอลัมน์ */
}
figure { border: 1px #666666 solid; padding: 0px; margin: auto; margin-bottom:20px;}
figcaption { background-color: white; color: black; font-style: none; padding: 2px; text-align: center; 
			font-family: 'sans-serif';}
 






