@font-face {
  font-family: 'My Font';
  src: url('../lib/font/1FTV-HF-Gesco.ttf') format('truetype');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'My Font', serif;
}

body {
  background-color: #FFF3DC;
  color: #0A4D3C;
}

.content {
  position: relative;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  font-family: "My Font", serif;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.content > * {
  position: relative;
  z-index: 2;
}

.head-section {
  display: flex;
  justify-content: space-between;
  gap: 1.875rem;
  align-items: flex-start;
  width: 80%;
}

.head-section .left {
  flex: 1;
  margin-left: 2rem;
}

.head-section .left .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10rem;
  margin-bottom: 5rem;
}

.head-section .left .header .title-red {
  color: #C70E1C;
  font-size: 3.5rem;
  font-weight: bold;
  margin-right: -15rem;
  text-align: left;
}

.head-section .left .header .province {
  font-size: 5rem;
  font-weight: bold;
  color: #0A4D3C;
  margin-top: 0.625rem;
  margin-right: -45rem;
  text-shadow: 0 0 10px rgba(0, 255, 150, 0.6);
}

.head-section .left .sub-title {
  color: #0A4D3C;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
  text-transform: uppercase;
  margin-top: -2rem;
}

.head-section .left .dish-list {
  list-style: none;
  padding: 0;
  line-height: 2;
  font-size: 1.8rem;
}

.head-section .left .dish-list a {
  text-decoration: none;
  color: #0A4D3C;
  transition: color 0.3s;
}

.head-section .left .dish-list a:hover {
  color: #FFD700;
  text-decoration: underline;
}

.head-section .divider {
  width: 0.125rem;
  background-color: #0A4D3C;
  min-height: 30rem;
  margin: 0 0.625rem;
  margin-top: 12rem;
}

.head-section .right {
  flex: 2;
  padding-left: 0;
  margin-top: 10rem;
}

.head-section .right .dishes {
  display: flex;
  gap: 4rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.head-section .right .dishes .dish-card {
  position: relative;
  width: calc((90% - 2 * 4rem) / 3);
  aspect-ratio: 1 / 1;
  margin-bottom: -2rem;
}

.head-section .right .dishes .dish-card img {
  width: 100%;
  height: 100%;
  border-radius: 0.625rem;
  object-fit: cover;
}

.head-section .right .dishes .dish-card .explore-btn {
  position: absolute;
  bottom: 2.8125rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFF3DC;
  color: #0A4D3C;
  border: 0.125rem solid #0A4D3C;
  padding: 0.3125rem 0.625rem;
  border-radius: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.head-section .right .dishes .dish-card .explore-btn:hover {
  background-color: #FFD700;
  border-color: #FFD700;
}

.head-section .right .dishes .dish-card .caption {
  margin-top: 0.625rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

/* CSS animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply to left and right sections */
.head-section .left {
  animation: slideInLeft 1s ease forwards;
}

.head-section .right {
  animation: slideInRight 1s ease forwards;
}

.head-section .dish-card img {
  transition: transform 0.4s ease;
}

.head-section .dish-card:hover img {
  transform: scale(1.05);
}

/* CSS for hidden and visible cards */
.dish-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.dish-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.explore-btn {
  transition: transform 0.3s, background-color 0.3s;
}

.explore-btn:hover {
  transform: scale(1.1);
  background-color: #ffcc00;
  color: #000;
}

.title-red:hover,
.province:hover {
  animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(1deg);
  }

  50% {
    transform: rotate(-1deg);
  }

  75% {
    transform: rotate(1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}


@media screen and (max-width: 1024px) {
  .head-section .left .header {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .head-section .left .header .title-red {
    font-size: 2.5rem;
    margin-right: 0;
  }

  .head-section .left .header .province {
    font-size: 3rem;
    margin-right: 0;
  }

  .head-section {
    flex-direction: column;
  }

  .head-section.divider {
    display: none;
  }

  .head-section .right .dishes {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .head-section .right .dishes .dish-card {
    width: 80%;
  }

  .head-section .right {
    margin-top: 5rem;
  }

  .head-section .left {
    margin-left: 0;
  }
}

@media screen and (max-width: 767px) {
  .head-section .left .header .title-red {
    font-size: 1.5rem;
    margin-left: -0.5rem;
  }

  .head-section .left .header .province {
    font-size: 4rem;
    margin-left: 14.5rem;
    margin-top: -4rem;
  }

  .head-section .left .sub-title {
    text-align: center;
    font-size: 0.9rem;
  }

  .head-section .left .dish-list {
    text-align: center;
    font-size: 1.1rem;
  }

  .head-section .divider {
    display: none;
  }

  .head-section .right .dishes {
    margin-top: -4rem;
  }
}

@media screen and (max-width: 479px) {

  .head-section .left .header .title-red,
  .head-section .left .header .province {
    font-size: 1.5rem;
  }

  .head-section .right .dishes .dish-card {
    width: 100%;
  }

  .head-section .right .dishes .dish-card .caption {
    font-size: 0.8rem;
  }

  .head-section .right .dishes .dish-card .explore-btn {
    font-size: 0.8rem;
  }
}

/* P2 */
.contain-section {
  display: flex;
  margin: 5rem auto 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.15);
  width: 75%;
}

/* LEFT SIDE */
.contain-section .left {
  flex: 1;
  background-color: #f7c943;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contain-section .left .intro-block {
  background-color: #b30017;
  color: white;
  padding: 1.2rem;
  width: 100%;
  box-sizing: border-box;
}

.contain-section .left .intro-block h1 {
  font-size: 4rem;
  color: #f7c943;
  margin: 0 0 0.5rem 0;
  text-align: center;
  text-shadow:
    -0.0625rem -0.0625rem 0 #fff,
    0.0625rem -0.0625rem 0 #fff,
    -0.0625rem 0.0625rem 0 #fff,
    0.0625rem 0.0625rem 0 #fff;
}

.contain-section .left .intro-block p {
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 0;
  text-align: justify;
  word-spacing: -0.0625rem;
  padding-right: 0.2rem;
}

.contain-section .left .content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contain-section .left h3 {
  font-size: 2rem;
  font-weight: bold;
  color: #006400;
  margin: 0;
}

.contain-section .left img.desc-img {
  width: 100%;
  border-radius: 1rem;
}

.contain-section .left .ingredient-box {
  background-color: #f7c943;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
}

.contain-section .left .ingredient-box .ingredient-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  background-color: #fff6e0;
  font-size: 1.4rem;
  border-radius: 1rem;
  overflow: hidden;

  background-image: url('../IMG/Trung/NgheAn/Rau củ ảnh.png');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 20rem auto;
  /* 100px = 6.25rem */
}

.contain-section .left .ingredient-box .ingredient-heading {
  background-color: #b30017;
  color: white;
  font-weight: bold;
  font-size: 1.8rem;
  padding: 1rem;
  text-align: center;
}

.contain-section .left .ingredient-box .ingredient-table td {
  padding: 0.8rem;
  border-bottom: 0.0625rem solid #ddd;
  color: #006400;
  text-align: left;
}

/* RIGHT SIDE */
.contain-section .right {
  flex: 1;
  background-color: #b30017;
  color: white;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.contain-section .right img.main-img {
  width: 100%;
  border-radius: 0 1rem 0 0;
}

.contain-section .right .desc-text {
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: justify;
}

.contain-section .right .quote-line {
  border: none;
  border-top: 0.125rem solid white;
  margin: 1.5rem auto;
  width: 60%;
}

.contain-section .right .restaurant-box {
  background-color: #b30017;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
}

.contain-section .right .restaurant-box .restaurant-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  background-color: #f7c943;
  font-size: 1.4rem;
  border-radius: 1rem;
  overflow: hidden;
}

.contain-section .right .restaurant-box .restaurant-heading {
  background-color: #fff6e0;
  color: #b30017;
  font-weight: bold;
  font-size: 1.8rem;
  padding: 1rem;
  text-align: center;
}

.contain-section .right .restaurant-box .restaurant-table td {
  padding: 0.8rem;
  border-bottom: 0.0625rem solid #ddd;
  color: #006400;
  text-align: left;
}

.contain-section .right .search-bar {
  background-color: #FFEFD6;
  padding: 0.625rem 1rem;
  border-radius: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  box-shadow: 0 0 0 0.1875rem #096B50 inset;
  width: 80%;
  margin: 0 auto;
}

.contain-section .right .search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #0A4D3C;
  font-weight: bold;
  font-size: 1rem;
}

.contain-section .right .search-bar input::placeholder {
  color: #0A4D3C;
}

.contain-section .right .search-bar button {
  background: none;
  border: none;
  cursor: pointer;
}

.contain-section .right .search-bar button img {
  height: 1.5rem;
  width: 1.5rem;
}

/* Hiệu ứng chung */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(3rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate {
  opacity: 0;
  transition: all 0.6s ease-out;
}

/* Khi phần tử xuất hiện */
.animate.visible {
  opacity: 1;
  animation: fadeIn 1s ease-out forwards;
}

/* Tùy chọn từng phần tử */
.left .intro-block.visible {
  animation: slideInLeft 1s ease-out forwards;
}

.left .content.visible {
  animation: fadeIn 1s ease-out forwards;
}

.right .main-img.visible {
  animation: slideInRight 1s ease-out forwards;
}

.right .desc-text.visible {
  animation: fadeIn 1s ease-out forwards;
}

@media (max-width: 600px) {
  .contain-section {
    flex-direction: column;
    width: 100%;
    margin: 5rem auto 0 auto;
  }

  .contain-section .left,
  .contain-section .right {
    flex: none;
    width: 100%;
  }

  .contain-section .left .intro-block h1 {
    font-size: 2.5rem;
  }

  .contain-section .left .intro-block p,
  .contain-section .right .desc-text {
    font-size: 1.1rem;
  }

  .contain-section .left h3 {
    display: none;
  }

  .contain-section .left .ingredient-box .ingredient-table {
    font-size: 1.1rem;
    background-size: 4rem auto;
  }

  .contain-section .left .ingredient-box .ingredient-table td {
    padding: 0.5rem;
  }

  .contain-section .left img.desc-img {
    border-radius: 0.75rem;
  }

  .contain-section .right img.main-img {
    border-radius: 0;
  }

  .contain-section .right .quote-line {
    width: 80%;
    margin: 1rem auto;
    border-top-width: 0.1rem;
  }
}

/* Tablet (min-width: 601px đến 900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .contain-section {
    width: 85%;
    flex-direction: row;
  }

  .contain-section .left .intro-block h1 {
    font-size: 3rem;
  }

  .contain-section .left .intro-block p,
  .contain-section .right .desc-text {
    font-size: 1.3rem;
  }

  .contain-section .left h3 {
    font-size: 1.7rem;
  }

  .contain-section .left .ingredient-box .ingredient-table {
    font-size: 1.3rem;
    background-size: 5rem auto;
  }

  .contain-section .left .ingredient-box .ingredient-table td {
    padding: 0.7rem;
  }
}

/* Laptop (min-width: 901px đến 1200px) */
@media (min-width: 901px) and (max-width: 1200px) {
  .contain-section {
    width: 75%;
    flex-direction: row;
  }

  .contain-section .left .intro-block h1 {
    font-size: 3.5rem;
  }

  .contain-section .left .intro-block p,
  .contain-section .right .desc-text {
    font-size: 1.4rem;
  }

  .contain-section .left h3 {
    font-size: 1.8rem;
  }

  .contain-section .left .ingredient-box .ingredient-table {
    font-size: 1.4rem;
    background-size: 6rem auto;
  }

  .contain-section .left .ingredient-box .ingredient-table td {
    padding: 0.75rem;
  }
}

/* P3 */
.hero-section {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  width: 100%;
  background-image: url("../IMG/Trung/NgheAn/Dấu ấn làng nghề.jpg");
  background-position: center;
  background-size: cover;
  margin-top: 3rem;
}

.quote-line {
  border: none;
  border-top: 0.125rem solid red;
  margin: 1.5rem auto;
  width: 60%;
}

.wrapper {
  position: relative;
  z-index: 2;
  margin-top: -10%;
  padding-top: 10%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wrapper .overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  /* đúng bằng width của card */
  height: 100px;
  /* chiều cao overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* nếu không cần tương tác */
  color: #fff3d5;
  text-shadow: 2px 2px 4px #000;
}

.wrapper .text {
  color: #fff3d5;
  text-align: center;
  text-shadow: 2px 2px 4px #000;
}

.wrapper .text h3 {
  font-size: 2rem;
  letter-spacing: 2px;
}

.wrapper .text h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
}

.wrapper .text-content .nghe {
  color: #ffeabf;
}

.wrapper .card {
  background-color: #FCB92C;
  border: 0.15rem solid #0A4D3C;
  outline: 0.1rem solid #0A4D3C;
  outline-offset: -0.6rem;
  padding: 1.5rem;
  width: 70%;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wrapper .card .card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.wrapper .card .card-content .text-content {
  flex: 3;
}

.wrapper .card .card-content .image-content {
  flex: 2;
}

.wrapper .card .card-content .image-content img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0.75rem
}

.wrapper .card .card-content .text-content .subtitle .dots {
  color: #0A4D3C;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.wrapper .card .card-content .text-content .subtitle .highlight {
  font-weight: bold;
  color: #0A4D3C;
  font-size: 2rem;
  margin-bottom: 0.375rem;
}

.wrapper .card .card-content .text-content .title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 0.625rem;
  color: #0A4D3C;
}

.wrapper .card .card-content .text-content .desc {
  font-size: 1.5rem;
  color: #0A4D3C;
  line-height: 1.5;
  margin-bottom: 0.625rem;
}

.wrapper .card .card-content .text-content .note {
  margin-top: 0.75rem;
}

.wrapper .card .card-content .text-content .button-group {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.wrapper .card .card-content .text-content .button-group .btn {
  border: 0.125rem solid #0A4D3C;
  outline: 0.0625rem solid #ddd;
  outline-offset: -0.25rem;
  font-weight: bold;
  padding: 0.5rem 0.875rem;
  margin-top: 1.5rem;
  cursor: pointer;
  border-radius: 0;
  font-size: 1rem;
}

.wrapper .card .card-content .text-content .button-group .green {
  background-color: #0A4D3C;
  color: white;
}

.wrapper .card .card-content .text-content .button-group .yellow {
  background-color: #FCB92C;
  color: #0A4D3C;
  outline: 0.0625rem solid #0A4D3C;
}

/* Nút chung */
.wrapper .card .card-content .text-content .button-group .btn {
  border: 0.125rem solid #0A4D3C;
  outline: 0.0625rem solid #ddd;
  outline-offset: -0.25rem;
  font-weight: bold;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
}

/* Hover: đổ bóng, nổi lên */
.wrapper .card .card-content .text-content .button-group .btn:hover {
  box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Active: ấn xuống */
.wrapper .card .card-content .text-content .button-group .btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* Nút xanh */
.wrapper .card .card-content .text-content .button-group .green {
  background-color: #0A4D3C;
  color: white;
}

/* Hover nút xanh: sáng màu lên */
.wrapper .card .card-content .text-content .button-group .green:hover {
  background-color: #146f58;
}

/* Nút vàng */
.wrapper .card .card-content .text-content .button-group .yellow {
  background-color: #FCB92C;
  color: #0A4D3C;
  outline: 1px solid #0A4D3C;
}

/* Hover nút vàng: vàng đậm hơn */
.wrapper .card .card-content .text-content .button-group .yellow:hover {
  background-color: #e0a500;
  color: white;
}
