/* Font-Family */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f2f2f2;
  color: #333;
}

.container-news {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-news {
  margin-top: 100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.news {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-title h2 {
  font-size: 36px;
  margin-bottom: 30px;
  position: relative;
}

.news-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: #ad974f;
  border-radius: 2px;
}

.news-content .boxs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.box-news {
  max-width: 500px;
  width: 100%;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.box-image {
  overflow: hidden;
  position: relative;
}

.box-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.box:hover .box-image img {
  transform: scale(1.05);
}


.box-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #ad974f;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
  z-index: 1;
  text-transform: uppercase;
}


.box-title h3 {
  font-size: 20px;
  margin: 15px 15px 5px;
  color: #ad974f;
  transition: color 0.3s ease;
}

.box-title h3:hover {
  color: #6f6131;
}

.box-text p {
  font-size: 16px;
  margin: 0 15px 15px;
  color: #555;
  line-height: 1.5;
}


.read-more {
  margin: 0 15px 20px;
  align-self: flex-start;
  padding: 8px 16px;
  background-color: #ad974f;
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #6f6131;
}

/* News-Page */

.container-newspage {
  /* margin-top: 100px; */
  max-width:900px;
  width: 100%;
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-newspage{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-page-title,.news-page-image,.news-page-text{
  margin-bottom: 30px;
}



.news-page-image {
  max-width: 700px;
  width: 100%;
}

.news-page-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-page-text{
  max-width: 700px;
  width: 100%;
}

.back-button {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background-color: #a78d4f;
  color: white;
  border-radius: 8px;
  text-decoration: none;
}




/* Responsive */

@media (max-width:1040px) {}

@media (max-width:960px) {
  .container-newspage{
    max-width: 800px;
    width: 100%;
  }
}

@media (max-width: 930px) {
  .box-news {
    max-width: 400px;
    width: 100%;
    height: 400pxd;
  }
}
@media (max-width: 850px) {
  .container-newspage{
    max-width: 700px;
    width: 100%;
  }
  
}
@media (max-width: 750px) {
  .container-newspage{
    max-width: 600px;
    width: 100%;
  }
  
}

@media (max-width: 650px) {
  .container-newspage{
    max-width: 500px;
    width: 100%;
  }

  .news-page-title h1 {
    font-size: 28px;
  }
  
}

@media (max-width: 550px) {
  .container-newspage{
    max-width: 400px;
    width: 100%;
  }
  
}

@media (max-width: 450px) {
  .container-newspage{
    max-width: 350px;
    width: 100%;
  }
  
}

@media (max-width:350px){
  .container-newspage{
    max-width: 300px;
    width: 100%;
  }
  
}




@media (max-width:400px) {
  .news-page-title h1 {
    font-size: 24px;
  }
}

@media (max-width:430px) {
  .box-news {
    max-width: 350px;
    width: 100%;
  }
}

@media (max-width:330px) {
  .news-page-title h1 {
    font-size: 20px;
  }

  .box-news{
    max-width: 300px;
    width: 100%;
  }

}