/* ... (previous CSS) ... */

body {
  font-family: "Noto Sans Thai", "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f3e8; /* Light beige background */
}
h1 {
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 700; /* Bold */
}

p {
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 400; /* Regular */
}
header {
  background-image: url("images/header-background.jpg"); /* Replace with your background image path */
  height: 35vh;
  background-size: cover;
  background-position: center;
  color: #333;
  text-align: left;
  padding: 100px 20px 80px 20px; /* Adjust padding as needed */
  position: relative;
}

header img.logo {
  position: absolute;
  bottom: 20px;
  left: 20px;
  height: 100px; /* Adjust as needed */
}

header h1 {
  position: absolute;
  bottom: 50px;
  font-size: 2.5em;
  margin: 0 0 0 120px; /* Adjust margin to move text to the right of the logo */
  font-weight: bold;
  color: #333;
  line-height: 0.8; /* Adjust line height to align with the logo */
}

header p {
  position: absolute;
  bottom: 20px;
  font-size: 1em;
  margin: 0 0 0 120px; /* Adjust margin to align with h1 */
  color: #333;
  line-height: 1; /* Adjust line height to align with the logo */
}

/* ... (rest of the CSS) ... */

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.branch-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.branch-card img {
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.branch-info {
  padding: 15px;
}

.branch-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.branch-info p {
  font-size: 14px;
  margin: 5px 0;
  color: #555;
}

.btn-map {
  display: inline-block;
  margin-top: 5px;
  padding: 10px 20px;
  background-color: #8b4513;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-map:hover {
  background-color: #532a0c;
}
.search-bar {
  text-align: center;
  margin: 20px 0;
}

.search-bar input {
  padding: 12px 20px; /* Increased padding for better appearance */
  width: 80%;
  max-width: 500px; /* Increased max-width */
  font-size: 16px;
  border-radius: 25px; /* More rounded corners */
  border: 2px solid #8b4513; /* Brown border */
  outline: none; /* Remove default outline */
  transition: border-color 0.3s ease; /* Smooth transition for hover effect */
  background-color: #f9f9f9; /* Light background */
}

.search-bar input:focus {
  border-color: #532a0c; /* Darker brown border on focus */
}

.search-bar input::placeholder {
  color: #aaa; /* Lighter placeholder text */
}
footer {
  background-color: #8b4513; /* Brown background */
  color: white; /* White text color */
  padding: 30px 20px; /* Increased padding */
  margin-top: 20px;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center; /* Center text within footer */
}

footer p {
  margin: 10px 0; /* Increased margin between paragraphs */
  font-size: 16px; /* Slightly larger font size */
  line-height: 1.5; /* Improved line height for readability */
}

footer a {
  background-color: #d2691e; /* Lighter brown for button */
  color: white;
  text-decoration: none;
  padding: 12px 24px; /* Increased button padding */
  border-radius: 5px;
  display: inline-block;
  margin-top: 15px; /* Increased margin above button */
  font-weight: bold; /* Bold button text */
  transition: background-color 0.3s ease; /* Smooth hover transition */
}

footer a:hover {
  background-color: #532a0c; /* Darker brown on hover */
}
.pagination {
  text-align: center;
  margin-top: 20px;
}

.page-btn {
  background-color: #8b4513;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
}

.page-btn.active {
  background-color: #532a0c;
  font-weight: bold;
}

/* Mobile view - 1 row, 3 columns */
@media (max-width: 768px) {
  .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .branch-card {
    width: calc(33.33% - 20px); /* 3 columns with space between */
  }
}

/* For very small screens (e.g., phones in portrait mode) */
@media (max-width: 480px) {
  .branch-card {
    width: calc(100% - 20px); /* 1 column */
  }
}
