@import url("https://fonts.googleapis.com/css2?family=Skranji&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit&family=Nova+Square&family=Skranji&display=swap");


body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Kanit" !important;
  background-color: #f4f4f4;
  background-image: url("../images/bg.png");
  background-repeat: no-repeat;
}

.logo img {
  height: 80px;
  width: auto;
}

h1 {
  margin-left: 50%;
  transform: translateX(-50%);
  font-family: Kanit;
}

h2 {
  font-size: 32px;
}

button {
  border-radius: 4px;
  background-color: #1d84d8;
  color: white;
  border: none;
  cursor: pointer;
  font-family: sans-serif;
}

button:hover {
  background-color: #7b868d;
}

label {
  font-weight: bold;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: Kanit;
}

#map {
  width: 100%;
  height: 350px;
  border: 2px solid #ccc;
  border-radius: 10px;
}

/* header  */
/*=== navbar section ===*/
header {
  height: 90px;
  position: fixed;
  z-index: 100;
}
.header {
  position: fixed;
  width: 100vw;
  z-index: 100;
  height: 90px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.logo img {
  width: auto;
  height: 80px;
  margin: 0 5vw;
  transform: none;
}
.mob-logo {
  display: none;
}
nav {
  width: 30vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 85px;
}
/* Style the menu items */
nav a {
  font-size: 1.3rem;
  color: var(--text-color);
  font-weight: 400;
  position: relative; /* Position relative for pseudo-element */
  font-family: "Kanit";
  text-decoration: none;
}

/* Style the line */
.menu-line {
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #c50000; /* Change to your desired line color */
  bottom: -4px; /* Adjust the vertical position as needed */
  left: 0;
  transition: width 0.4s ease; /* Add a smooth width transition effect */
}
/* Add a hover effect */
nav a:hover .menu-line {
  width: 100%;
}
/* container ===== */
.main-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-area {
  display: flex;
}

.home-right-content form {
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

#placeDetailsForm {
  margin: 0 20px;
}

#placeDetailsForm > div {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 45px;
  margin-bottom: 15px;
}

#placeDetailsForm label {
  width: 13vw;
  font-family: "kanit";
  margin-right: 20px;
}

select {
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  appearance: none;
  padding: 0 30px 0 15px;
  width: 100%;
  border: none;
  background-color: #d9e6e9;
  font-size: 16px;
  font-family: "kanit";
}

/* Table */

.table-container {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  display: none;
}

thead {
  background-color: #1d84d8;
}

thead th {
  color: white;
  text-align: left;
  padding: 15px;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:hover {
  background-color: #f1f1f1;
}

tbody td {
  padding: 15px;
  text-align: left;
}

button {
  background-color: #1d84d8;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #008cff;
}
.search-donor{
    margin: 30px 0;
}
.main-container-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.main-container-left h3 {
  text-align: center;
  text-transform: capitalize;
  padding: 20px 0;
  font-family: "kanit";
}
.container-right,.main-container-left{
  padding-top: 90px;
}
.main-container-right {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.blood-bank {
  width: 35%;
  height: 180px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 10px;
  text-align: center;
}

.blood-bank:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.blood-bank-body {
  margin: 15px 0;
}

.main-container-right .title {
  font-size: 24px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-number {
  font-size: 14px;
  margin: 10px;
}

.blood-bank-location {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.blood-bank-location a {
  display: flex;
  align-items: center;
  color: #1d84d8;
  text-decoration: none;
  margin: 0;
}

.blood-bank-location a:hover {
  text-decoration: underline;
  transition: all 0.3s ease;
}

.blood-bank-location h4 {
  margin: 15px 0 0 0;
}
.table-title h1 {
  font-size: 30px;
  text-align: center;
  line-height: 1.5em;
  padding-bottom: 45px;
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #111;
  margin-top: 50px;
}
.table-title h1:before {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 60%;
  left: 50%;
  margin-left: -30%;
  height: 1px;
  content: "";
  background-color: #777;
  z-index: 4;
}
.table-title h1:after {
  position: absolute;
  width: 40px;
  height: 40px;
  left: 50%;
  margin-left: -20px;
  bottom: 0px;
  content: "\00a7";
  font-size: 30px;
  line-height: 40px;
  color: #c50000;
  font-weight: 400;
  z-index: 5;
  display: block;
  background-color: #f8f8f8;
}
.table-title-donor h1{
  width: 100%;
}
