@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  box-sizing: border-box;
}

:root {
  --contains-color: #1a1e21;
  --second-color: #fd8f44;
  --text-color: #172317;
  --bg-color: #fff;
}

::selection {
  color: var(--bg-color);
  background: var(--second-color);
}

section {
  padding: 3rem 0 2rem;
}

.container {
  max-width: 1068px;
  margin: auto;
  width: 100%;
}

.home {
  width: 100%;
  min-height: 440px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/hero/hero.jpg') center/cover no-repeat;
  display: grid;
  justify-content: center;
  align-items: center;
  z-index: -2;
}

.home-text {
  color: var(--bg-color);
  text-align: center;
}

.home-title {
  font-size: 3.5rem;
}

.home-subtitle {
  font-size: 1rem;
  font-weight: 400;
}

.post-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  color: var(--bg-color);
}

.filter-item {
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.active-filter {
  background: var(--second-color);
  color: var(--bg-color);
  padding: 4px 10px;
  border-radius: 4px;
}

.post {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, auto));
  justify-content: center;
  gap: 1.5rem;
}

.post-box {
  background: var(--bg-color);
  box-shadow: 0 4px 14px hsl(355deg 25% 15% / 10%);
  padding: 15px;
  border-radius: 0.5rem;
  position: relative;
}

.post-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
}

.card-box {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.location {
  font-size: 0.8rem;
  color: #1e90ff;
  margin-left: 5px;
  font-weight: 600;
  letter-spacing: 2px;
}

.price-book-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.price {
  display: flex;
  align-items: baseline;
}

.price-amount {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fd8f44;
  margin-right: 5px;
}

.price-unit {
  font-size: 0.7rem;
  color: #333;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  text-decoration: none;
  display: block;
}

.post-title:hover {
  color: #fd8f44;
  text-decoration: none;
}

.book-btn {
  background: var(--second-color);
  color: var(--bg-color);
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100px;
}

.book-btn:hover {
  background: #e07b33;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--second-color);
  color: var(--bg-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Post content */
.post-header {
  width: 100%;
  height: 500px;
  background: var(--contains-color);
  z-index: -1;
}

.post-container {
  max-width: 800px;
  margin: auto;
  width: 100%;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4rem !important;
}

.back-home {
  background: var(--second-color);
  font-size: .9rem;
  color: var(--bg-color);
  padding: 4px 10px;
  border-radius: 4px;
}

.header-title {
  width: 90%;
  font-size: 2.6rem;
  color: var(--bg-color);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: 0.1rem;
  margin-top: 1rem;
}

.header-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

.post-content {
  margin-top: 14rem !important;
  color: var(--bg-color);
}

.sub-heading {
  font-size: 1.5rem;
}

.post-text {
  font-size: 1rem;
  line-height: 1.7rem;
  margin: 1rem 0;
  text-align: justify;
}

/* Share */
.share {
  display: flex;
  align-items: center;
  flex-direction: column;
  row-gap: 1rem;
  color: var(--bg-color);
}

.share title {
  font-size: 1rem;
}

.card-box {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category {
  margin: 0;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 1060px) {
  .container {
    margin: 0 auto;
    width: 95%;
  }
  .home-text {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .post-container {
    margin: 0 auto;
    width: 90%;
  }
}

@media (max-width: 768px) {
  section {
    padding: 2rem 0;
  }
  .header-content {
    margin-top: 3rem !important;
  }
  .home {
    min-height: 380px;
  }
  .home-title {
    font-size: 3rem;
  }
  .header-title {
    font-size: 2rem;
  }
  .header-img {
    height: 450px;
  }
  .post-content {
    margin-top: 9rem !important;
  }
}

@media (max-width: 570px) {
  .header-title {
    width: 100%;
  }
  .header-img {
    height: 400px;
  }
  .post-content {
    margin-top: 6rem !important;
  }
  .home-title {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .home-subtitle {
    margin-top: 1.5rem;
  }
}