:root {
  --background-color: #f3f6f4;
  --text-color: #000000;
  --button-bg-color: #444444;
  --button-hover-bg-color: #d3d3d3;
  --button-active-bg-color: #b3b3b3;
  --button-text-color: #ffffff;
  --header-bg-color: #ffffff;
  --header-text-color: #333333;
  --footer-bg-color: #f1f1f1;
  --footer-text-color: #333333;
}

* {
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
  max-width: 100%; /* Prevent elements from exceeding the viewport width */
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif; /* Change font-family to Roboto */
  -webkit-text-size-adjust: 100%; /* Prevent font size adjustments after orientation changes */
  -webkit-overflow-scrolling: touch; /* Enable momentum scrolling */
}

.header {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  font-family: "Orbitron", sans-serif;
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure header fits within viewport */
  box-sizing: border-box; /* Include padding and border in element's total width */
  height: auto; /* Adjust height for responsiveness */
  flex-wrap: wrap; /* Allow wrapping of flex items */
}

.logo-container {
  flex: 1; /* 1/3 of the header */
  max-width: 33.33%;
  min-width: 150px; /* Ensure minimum width for logo */
}

.header .logo {
  max-width: 100%;
  height: auto;
}

.header .text-content {
  flex: 2; /* 2/3 of the header */
  margin-left: 20px;
  text-align: left;
  min-width: 200px; /* Ensure minimum width for text content */
}

.header .text-content h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 500; /* Change font-weight to match the rest of the text */
  font-family: "Roboto", sans-serif; /* Change font-family to Roboto */
}

.header .text-content p {
  margin: 10px 0 0;
  font-size: 1.1em;
  font-family: "Roboto", sans-serif; /* Change font-family to Roboto */
}

.center-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box; /* Include padding and border in element's total width */
}

.button-container {
  display: none; /* Hide the button container */
}

button {
  background: var(--button-bg-color); /* Use variable for background color */
  color: var(--button-text-color);
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 25px; /* More rounded corners */
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effects */
  width: 220px;
  box-shadow: 0 4px 6px rgba(204, 204, 204, 0.1); /* Add subtle shadow */
}

button:hover {
  background: var(
    --button-hover-bg-color
  ); /* Use variable for hover background color */
  box-shadow: 0 6px 8px rgba(204, 204, 204, 0.1); /* Enhance shadow on hover */
}

button:active {
  background: var(
    --button-active-bg-color
  ); /* Use variable for active background color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduce shadow on active */
}
.search-filter-sort button {
  background: var(--button-bg-color); /* Use variable for background color */
  color: var(--button-text-color);
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 25px; /* More rounded corners */
  cursor: pointer;
  transition: background 0.3s ease; /* Add transition for hover effects */
  width: 220px;
}

.search-filter-sort button:hover {
  background: var(
    --button-hover-bg-color
  ); /* Use variable for hover background color */
}

.search-filter-sort button:active {
  background: var(
    --button-active-bg-color
  ); /* Use variable for active background color */
}

.visit-branch-link {
  background: var(--button-bg-color); /* Use variable for background color */
  color: var(--button-text-color);
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 25px; /* More rounded corners */
  cursor: pointer;
  transition: background 0.3s ease; /* Add transition for hover effects */
  width: 220px;
  text-decoration: none; /* Remove underline for visit-branch-link */
  display: inline-block; /* Ensure the link behaves like a button */
  text-align: center; /* Center text */
}

.visit-branch-link:hover {
  background: var(
    --button-hover-bg-color
  ); /* Use variable for hover background color */
}

.visit-branch-link:active {
  background: var(
    --button-active-bg-color
  ); /* Use variable for active background color */
}

.data-container {
  margin: 20px;
  padding: 20px;
  border: 1px solid var(--text-color);
  border-radius: 8px;
  background-color: #ffffff;
}

.search-filter-sort {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.search-filter-sort input,
.search-filter-sort select,
.search-filter-sort button {
  background: var(--header-bg-color); /* Use variable for background color */
  color: var(--text-color);
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 25px; /* More rounded corners */
  cursor: pointer;
  transition: background 0.3s ease; /* Add transition for hover effects */
  width: 220px;
}

.search-filter-sort input:hover,
.search-filter-sort select:hover,
.search-filter-sort button:hover {
  background: var(
    --button-hover-bg-color
  ); /* Use variable for hover background color */
}

.search-filter-sort select {
  background-color: #ffffff; /* Set background color to white */
  color: var(--text-color); /* Set text color */
}

.search-filter-sort select option {
  background-color: #f3f6f4; /* Set background color for dropdown options */
  color: var(--text-color); /* Set text color for dropdown options */
}

.search-filter-sort button:hover {
  background: var(
    --button-hover-bg-color
  ); /* Use variable for hover background color */
}

.search-filter-sort button:active {
  background: var(
    --button-active-bg-color
  ); /* Use variable for active background color */
}

.listing-card {
  border: none; /* Remove the border */
  border-radius: 15px; /* Add rounded corners */
  padding: 20px;
  margin-bottom: 20px;
  width: 100%; /* Ensure listing card fits within viewport */
  max-width: 1200px; /* Set a max-width for listing card */
  margin: 20px auto;
  display: flex; /* Add flex display */
  flex-direction: column; /* Ensure consistent layout */
  align-items: center; /* Center items horizontally */
  box-sizing: border-box; /* Include padding and border in element's total width */
  background-color: #ffffff; /* Set a white background */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effects */
  overflow: hidden; /* Prevent content from overflowing the card */
  -webkit-overflow-scrolling: touch; /* Enable momentum scrolling */
  text-align: center; /* Center text in listing card */
}

.listing-card:hover {
  transform: translateY(-5px); /* Slightly lift the card on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance the shadow on hover */
}

.listing-card.no-logo .left-column {
  display: none; /* Hide the left column if there is no logo */
}

.listing-card.no-logo .right-column {
  width: 100%; /* Make the right column take full width */
  text-align: center; /* Center the text */
}

.listing-card.no-logo .listing-header {
  text-align: center; /* Center the header */
}

.listing-logo {
  width: 300px; /* Fixed width */
  height: 300px; /* Fixed height */
  object-fit: contain; /* Ensures the entire image is visible */
  background-color: #ffffff; /* Optional: Add a background color for any empty space */
  margin: 0 auto; /* Center the logo */
  display: block; /* Ensure the logo is centered */
}

.listing-header {
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center; /* Center the header */
  width: 100%; /* Ensure the header takes full width */
}

.listing-body {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping of flex items */
  justify-content: space-between;
  width: 100%; /* Ensure the body takes full width */
}

.left-column {
  flex: 1 1 33.33%; /* Allow the column to grow and shrink */
  min-width: 200px; /* Ensure minimum width for left column */
  display: flex; /* Enable flexbox for alignment */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

.right-column {
  flex: 2 1 66.67%; /* Allow the column to grow and shrink */
  min-width: 400px; /* Ensure minimum width for right column */
  text-align: left; /* Align text to the left */
  word-wrap: break-word; /* Ensure long words break to avoid overflow */
  overflow-wrap: break-word; /* Ensure long words break to avoid overflow */
  overflow: hidden; /* Prevent content from overflowing the column */
  -webkit-overflow-scrolling: touch; /* Enable momentum scrolling */
}

@media (max-width: 1000px) {
  .listing-body {
    flex-direction: column; /* Stack columns vertically */
    align-items: center; /* Center the columns within the listing card */
  }

  .left-column,
  .right-column {
    width: 100%; /* Full width for columns */
    margin-bottom: 10px; /* Add space between columns */
  }

  .right-column {
    text-align: left; /* Align text to the left */
  }

  .listing-card {
    padding: 10px; /* Adjust padding for mobile */
    text-align: center; /* Center text in listing card */
    width: 100%; /* Ensure listing card takes full width */
    box-sizing: border-box; /* Include padding and border in element's total width */
  }

  .listing-body {
    flex-direction: column; /* Stack listing body elements vertically */
    align-items: center; /* Center items horizontally */
    width: 100%; /* Ensure the body takes full width */
    box-sizing: border-box; /* Include padding and border in element's total width */
    padding-left: 10px; /* Add padding to the left */
    padding-right: 10px; /* Add padding to the right */
  }

  .left-column,
  .right-column {
    width: 100%; /* Full width for columns */
    text-align: left; /* Center text in columns */
    margin-bottom: 10px; /* Add space between columns */
    box-sizing: border-box; /* Include padding and border in element's total width */
  }

  .left-column {
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center the logo horizontally */
    flex-direction: column; /* Stack elements vertically */
  }

  .listing-logo {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block; /* Ensure the logo is centered */
  }

  .listing-header {
    text-align: center; /* Center the header */
    width: 100%; /* Ensure the header takes full width */
  }

  .right-column {
    text-align: center; /* Center text */
    word-wrap: break-word; /* Ensure long words break to avoid overflow */
    overflow-wrap: break-word; /* Ensure long words break to avoid overflow */
    overflow: hidden; /* Prevent content from overflowing the column */
    -webkit-overflow-scrolling: touch; /* Enable momentum scrolling */
  }

  .visit-branch {
    text-align: center; /* Center visit branch link */
  }

  .search-filter-sort {
    flex-direction: column; /* Stack filter elements vertically */
    align-items: center; /* Center filter elements */
  }

  .search-filter-sort input,
  .search-filter-sort select,
  .search-filter-sort button {
    width: 90%; /* Full width for filter elements */
    margin-bottom: 10px; /* Add space between elements */
  }

  .center-container {
    padding: 20px; /* Adjust padding for mobile */
  }

  .button-container {
    width: 100%; /* Full width for button container */
    padding: 0 10px; /* Add padding to button container */
  }

  .data-container {
    padding: 10px; /* Adjust padding for mobile */
  }

  .pagination {
    gap: 5px; /* Adjust spacing between buttons for mobile */
  }

  .pagination-btn {
    width: 30px; /* Adjust width for circular shape on mobile */
    height: 30px; /* Adjust height for circular shape on mobile */
    font-size: 14px; /* Adjust font size for mobile */
    border-radius: 50%; /* Ensure buttons are circular on mobile */
  }

  .new-page-btn {
    width: 30px; /* Adjust width for circular shape on mobile */
    height: 30px; /* Adjust height for circular shape on mobile */
    font-size: 14px; /* Adjust font size for mobile */
    border-radius: 50%; /* Ensure buttons are circular on mobile */
  }
}

.left-column p,
.right-column p {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.visit-branch {
  margin-top: 20px;
  text-align: right;
  width: 100%; /* Ensure the visit branch link is aligned to the right */
}

.visit-branch-link {
  color: var(--button-text-color);
  background: var(--button-bg-color); /* Use variable for background color */
  padding: 12px 20px;
  border-radius: 25px; /* More rounded corners */
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effects */
  display: inline-block; /* Ensure the link behaves like a button */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.visit-branch-link:hover {
  background: var(
    --button-hover-bg-color
  ); /* Use variable for hover background color */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}

.visit-branch-link:active {
  background: var(
    --button-active-bg-color
  ); /* Use variable for active background color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduce shadow on active */
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px; /* Add spacing between buttons */
  margin-top: 20px;
}

.pagination-btn {
  width: 40px; /* Set width for circular shape */
  height: 40px; /* Set height for circular shape */
  border-radius: 50%; /* Make buttons circular */
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effects */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.pagination-btn:hover {
  background-color: var(--button-hover-bg-color);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}

.pagination-btn:active {
  background-color: var(--button-active-bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduce shadow on active */
}

.new-page-btn {
  width: 40px; /* Set width for circular shape */
  height: 40px; /* Set height for circular shape */
  border-radius: 50%; /* Make buttons circular */
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effects */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.new-page-btn:hover {
  background-color: var(--button-hover-bg-color);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}

.new-page-btn:active {
  background-color: var(--button-active-bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduce shadow on active */
}
@media (max-width: 600px) {
  .header {
    padding: 10px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-container {
    max-width: 100%;
    margin-bottom: 10px;
  }

  .header .text-content {
    margin-left: 0;
    text-align: center;
    width: 100%;
  }

  .center-container {
    padding: 20px 10px;
  }

  .listing-card {
    padding: 10px;
    margin: 10px 0;
  }

  .listing-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .left-column,
  .right-column {
    width: 100%;
    margin-bottom: 10px;
  }
  .right-column {
    text-align: left;
    overflow: hidden;
    border-right: 10px solid var(--text-color);
  }
  .search-filter-sort {
    flex-direction: column;
    align-items: stretch;
  }

  .search-filter-sort input,
  .search-filter-sort select,
  .search-filter-sort button {
    width: 100%;
    margin-bottom: 10px;
  }

  .visit-branch {
    text-align: center;
  }

  .pagination {
    gap: 5px;
  }

  .pagination-btn,
  .new-page-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}
