/* General Styles */
body,
html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.division {
  max-width: 100vw;
  padding: 20px;
  box-sizing: border-box;
}

.orange-text {
  color: #d36229;
}

/* Hero Section */
.division-1 {
  height: 80vh;
  background: url("/static/photos/hero-1.png") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  margin-top: -70px;
  padding-top: 70px;
}

.division-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 250px;
  padding: 20px;
  text-align: left;
}

.division-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.description-text-1,
.description-text-2 {
  font-size: 2.5rem;
}

/* Unified Orange Button */
.getinfobtn,
.viewdetailbtn {
  background-color: #ff4500;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  display: inline-block;
  width: 100%;
  max-width: 180px;
}

.getinfobtn a,
.viewdetailbtn a {
  color: white;
  text-decoration: none;
  display: block;
}

.getinfobtn:hover,
.viewdetailbtn:hover {
  background-color: #e03e00;
  transform: scale(1.05);
}

/* Features Section */
.division-2 {
  text-align: center;
  background-color: #aaaaaa;
  padding: 20px;
}

.division-2-title {
  font-size: 1rem;
  margin-bottom: 10px;
}

.division-2-description {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.division-2-content {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.division-2-content div {
  width: 30%;
  text-align: center;
  padding-top: 10px;
}

.division-2-content img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

/* Popular Categories */
.division-3 {
  background-color: #3e3c3c;
  text-align: center;
  padding: 20px;
  color: white;
}

.division-3-title {
  font-size: 2rem;
  color: #d36229;
  margin-bottom: 10px;
}

.division-3-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Category Card */
.category-card {
  background-color: black;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 280px;
  margin: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px; /* Equal height for all cards */
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.category-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.category-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #d36229;
}

.category-description {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 10px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 10px;
}

.viewdetailbtn {
  margin-top: auto; /* Push to bottom */
  align-self: center;
}

/* Division-4 */
.division-4 {
  height: 80vh;
  background: url("/static/photos/bg-2.png") no-repeat center center/cover;
  text-align: center;
  color: white;
}

.division-4-title {
  margin-top: 100px;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.division-4-content {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.appointmentbtn {
  border: 2px solid #d36229;
  color: white;
  background-color: transparent;
  font-size: 1rem;
  padding: 10px 20px;
  cursor: pointer;
}

.appointmentbtn:hover {
  background-color: #d36229;
  color: black;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
  border: 2px solid #ccc;
}

::-webkit-scrollbar-thumb:hover {
  background: #ccc;
  border: 2px solid #bbb;
}

.category-description::-webkit-scrollbar {
  display: none;
}

.category-description:focus-within::-webkit-scrollbar {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .division-1 {
    height: auto;
    padding: 20px;
    text-align: center;
  }
  .content {
    margin: 0 auto;
    text-align: center;
    max-width: 90%;
  }
  .division-2-content {
    flex-direction: column;
    gap: 15px;
  }
  .division-2-content div {
    width: 80%;
    margin: 0 auto;
  }
  .category-card {
    width: 100%;
    max-width: 300px;
    height: auto; /* Let height adjust on mobile */
  }
}
