/* General Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f8fb;
  color: #333;
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0077b6;
  color: white;
  padding: 10px 15px;
  height: 60px;
}

.navbar .nav-btn {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 5px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
}

.navbar .nav-btn:hover {
  background-color: white;
  color: #0077b6;
}

/* Search Bar */
.search-container {
  padding: 10px 15px;
  text-align: center;
  margin-bottom: 20px;
}

#search-bar {
  width: 80%;
  max-width: 500px;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #0077b6;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.3s;
}

#search-bar:focus {
  border-color: #005f8b;  /* Change border color on focus */
}


.site-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.language-toggle .toggle-btn {
  background-color: #0077b6;
  color: white;
  border: none;
  padding: 7px 20px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Noto Color Emoji', sans-serif;
}

.language-toggle .toggle-btn.active {
  background-color: #005f8b;
}

/* Heading Section */
.heading-container {
  padding: 20px 15px;
  text-align: center;
}

.province-heading {
  font-size: 28px;
  font-weight: bold;
  color: #0077b6;
  margin: 0;
}

/* Card Container */
.card-container {
  display: grid;
  gap: 20px; /* Increase spacing for better visual separation */
  padding: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive layout */
}

/* Card Styles */

.card {
  background: linear-gradient(145deg, #ffffff, #f4f4f4);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.06);
  padding: 20px;
  text-align: center; /* Centers the text */
  color: black; /* Sets the text color to black */
  font-weight: bold; /* Makes the text bold */  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.district-card {
  background: linear-gradient(145deg, #ffffff, #f4f4f4);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.06);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.district-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2), 0px 3px 6px rgba(0, 0, 0, 0.12);
}

/* Card Title */
.district-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #0077b6;
  margin-bottom: 10px;
}

/* Card Info */
.district-card-info {
  font-size: 16px;
  color: #555;
  margin: 
  
  5px 0;
}

.card-link {
  display: inline-block; /* Makes the link behave like a block element */
  width: 100%; /* Takes 90% of the container width */
  background-color: #01080f; /* Blue background */
  color: white; /* White text */
  text-decoration: none; /* Remove underline */
  border-radius: 8px; /* Rounded corners */
  padding: 10px 20px; /* Padding for spacing */
  font-size: 14px; /* Font size */
  text-align: center; /* Center the text inside */
  box-sizing: border-box; /* Ensures padding does not affect width */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}

.card-link:hover {
  background-color: #0056b3; /* Darker blue when hovered */
  transform: scale(1.05); /* Slightly enlarge on hover */
}

.card-link:focus {
  outline: none; /* Remove default focus outline */
  box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.6); /* Add blue glow effect when focused */
}


#bigyapan {
  width: 100%; /* Set the width to 100% of the parent container */
  max-width: 600px; /* Max width of the ad container */
  margin: 20px auto; /* Center the ad container horizontally */
  padding: 15px;
  background-color: #f1f1f1; /* Light gray background */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add some shadow */
  text-align: center; /* Center the content inside the ad container */
}

#bigyapan img {
  width: 100%; /* Make sure the image fits within the container */
  height: auto; /* Maintain the image's aspect ratio */
  border-radius: 5px; /* Optional: Add rounded corners to the image */
}

#bigyapan p {
  font-size: 18px; /* Text size for the text ads */
  color: #333; /* Text color */
  font-weight: bold; /* Make the text bold */
}


/* Medium screens: 3 cards per row */
@media (min-width: 768px) {
  .card-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large screens: 4 cards per row */
@media (min-width: 1200px) {
  .card-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

