/* hero start */
.hero h1 {
  color: white;
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    url(../images/news/news-hero.png), rgb(53, 53, 53) 50% / cover no-repeat;
  padding: 170px 0;
  font-size: 65px;
  text-align: center;
}

/* hero end */

/* main start */
.currentNav {
  color: gray;
}

main {
  background-color: var(--cream);
}

.topNav-small {
  padding: 30px 0;
}

.topNav-small a {
  transition: 0.4s all ease-in-out;
}

.topNav-small a:hover {
  text-decoration: underline;
}

/*  */
.news-top {
  padding: 60px 0;
  gap: 30px;
  position: relative;
}

.news-top-left,
.news-top-right {
  width: 50%;
}

.news-top-left img {
  width: 100%;
}

/* right */
.news-top-right {
  gap: 30px;
}

.news-top-heading {
  color: var(--brown);
  font-size: 30px;
  font-weight: 400;
}

.news-top-date {
  color: #838383;
  font-size: 14px;
  font-weight: 400;
}

.news-top-description {
  color: #4c192a;
  font-family: Legan;
  font-size: 18px;
  font-weight: 400;
}

.news-top-btn {
  border: 1px solid var(--brown);
  border-radius: 4px;
  padding: 5px;
  width: 20%;
  text-align: center;
  transition: 0.4s all ease-in-out;
}

.news-top-btn:hover {
  background-color: var(--brown);
  color: white;
}

/* news bottom */
.news-bottom {
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px 0 70px 0;
}

.news-bottom-container {
  width: calc(100% / 3 - 20px);
  position: relative;
  transition: 0.4s all ease-in-out;
}

.news-bottom-container:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.newsLink-bottom {
  position: absolute;
  width: 100%;
  height: 100%;
}

.news-bottom-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-bottom-heading,
.news-bottom-date {
  color: #fafafd;
  font-size: 30px;
  font-weight: 400;
  position: absolute;
}

.news-bottom-heading {
  top: 10%;
  left: 5%;
}

.news-bottom-date {
  font-size: 18px;
  top: 80%;
  right: 5%;
}

/* main end */

/* footer start */
.footer-top-container {
  padding: 50px 0;
  background-color: var(--creamDark);
}

.footer-bottom-container {
  padding: 30px 0;
  background-color: var(--cream);
}

footer * {
  color: black;
}

footer a svg path {
  fill: black;
}

.footer-bold-txt {
  font-weight: bold;
}

p.footer-bold-txt {
  width: 60px;
  text-align: end;
  margin-right: 20px;
}

.footer-column-gaps {
  gap: 20px;
}

.address-length {
  width: 60%;
}

footer a {
  transition: 0.4s all ease-in-out;
}

footer a:hover {
  scale: 1.1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* footer end */

/* ------RESPONSIVE------ */

@media only screen and (min-width: 1440px) {
  .container {
    width: 1310px;
  }
}

@media only screen and (max-width: 1440px) {
  .container {
    width: 1190px;
  }
}

@media only screen and (max-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media only screen and (max-width: 1189px) {
  .container {
    max-width: 1000px;
  }

  /* header and nav */
  nav {
    gap: 40px;
  }

  .social-container {
    gap: 15px;
  }

  .search-box:hover > .search-input {
    width: 120px;
    padding: 1px 6px;
  }

  /* main */
  .news-bottom-heading,
  .news-bottom-date {
    font-size: 23px;
  }
}

@media only screen and (max-width: 1111px) {
  .container {
    max-width: 900px;
  }

  /* header and nav */
  nav {
    gap: 20px;
  }

  .social-container {
    gap: 5px;
  }

  /* search input */
  .search-box:hover > .search-input {
    width: 95px;
  }

  /* main */
  .news-bottom-heading,
  .news-bottom-date {
    font-size: 21px;
  }

  .news-bottom-heading,
  .news-bottom-date {
    font-size: 18px;
  }
}

@media only screen and (max-width: 1027px) {
  .container {
    max-width: 890px;
  }

  /* hero */
  .hero h1 {
    font-size: 58px;
  }

  /* news top */
  .news-top-right {
    gap: 13px;
  }
}

@media only screen and (max-width: 925px) {
  .container {
    max-width: 790px;
  }

  /* header and nav */
  .social-container {
    gap: 0;
  }

  nav {
    gap: 15px;
  }

  .navLink {
    font-size: 14px;
  }

  /* hero */
  .hero h1 {
    font-size: 53px;
  }

  /* main */
  .news-top-heading {
    font-size: 26px;
  }

  .news-top-description {
    font-size: 16px;
  }

  .news-bottom-container {
    width: calc(100% / 2 - 18px);
  }

  .news-bottom-heading {
    font-size: 25px;
    width: 70%;
  }

  .news-bottom-heading,
  .news-bottom-date {
    font-size: 20px;
  }
}

@media only screen and (max-width: 870px) {
  .container {
    max-width: 730px;
  }

  /* main news */
  .news-top {
    align-items: flex-start;
  }

  .news-top-btn {
    width: 35%;
  }

  /* footer */
  .address-length {
    width: 40%;
  }
}

@media only screen and (max-width: 768px) {
  .container {
    max-width: 610px;
  }

  /* TABLET MENU START */

  .mobile-close-icon {
    position: absolute;
    top: 23px;
    right: 5.5%;
    font-size: 40px;
  }

  .mobile-close-icon path {
    fill: var(--white);
  }

  .mobile-header {
    background-color: var(--black);
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 40px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    width: 60%;
    height: 100vh;
    display: flex;
  }

  .mobile-header .logo-container {
    width: fit-content;
  }

  .mobile-header nav {
    gap: 30px;
    opacity: 0;
    transition: 1.5s all ease-in-out;
  }

  .mobile-header nav .navLink {
    font-size: 24px;
  }

  .mobile-header nav .navLink:hover::after {
    width: 40%;
  }

  .mobile-header .social-container {
    display: flex;
    margin-bottom: 40px;
    opacity: 0;
    transition: 1.5s all ease-in-out;
  }

  .mobile-header .social-container a {
    width: 35px;
    height: 35px;
  }

  .mobile-header .social-container a .facebook {
    width: 10px;
    height: 20px;
  }

  .mobile-header .social-container a .instagram {
    width: 22px;
    height: 22px;
  }

  .mobile-header .social-container a .lang {
    width: 22px;
    height: 22px;
  }

  .mobile-header .social-container {
    gap: 10px;
  }

  .header-burger-icon {
    display: inline-block;
    position: absolute;
    top: 23px;
    right: 3%;
    font-size: 35px;
  }

  .header-burger-icon path {
    fill: white;
  }

  .container .search-box .search-btn {
    width: 38px;
    height: 38px;
  }

  .container .search-box:hover {
    height: 35px;
  }

  .container .search-box .search-input {
    font-size: 16px;
  }

  .search-box:hover > .search-input {
    padding: 1px 10px;
  }

  .container .search-box .search-btn svg {
    height: 1.2em;
  }

  header .container nav,
  .social-container {
    display: none;
  }

  header .container {
    justify-content: space-between;
  }

  header .container .search-box {
    margin-right: 70px;
  }

  /* tablet menu end */

  /* footer */
  .footer-top {
    gap: 40px;
  }

  .address-column {
    width: 45%;
  }
}

/* Mobile */
@media only screen and (max-width: 650px) {
  .container {
    max-width: 500px;
  }

  /* main news top */
  .news-top {
    flex-direction: column;
  }

  .news-top * {
    width: 100%;
  }

  .news-top-btn {
    width: 50%;
    align-self: center;
    padding: 10px 5px;
  }

  .news-top-right {
    gap: 25px;
  }

  /* news bottom */
  .news-bottom {
    flex-direction: column;
  }

  .news-bottom-container {
    width: 100%;
  }

  .news-bottom-container {
    height: 300px;
  }

  /* cards */
  .news-bottom-heading {
    font-size: 30px;
  }

  .news-bottom-date {
    font-size: 25px;
  }

  /* footer */
  .footer-top {
    flex-wrap: wrap;
  }

  .footer-social {
    flex-direction: row;
    align-items: baseline;
  }
}

/* MOBILE */
@media only screen and (max-width: 565px) {
  .container {
    max-width: 400px;
  }

  /* mobile header */
  .mobile-header {
    width: 100%;
  }

  /* hero */
  .hero h1 {
    font-size: 50px;
  }

  /* main */

  /* footer */
  .footer-top {
    flex-direction: column;
  }

  .footer-top * {
    width: 100%;
  }

  .footer-bold-txt {
    font-size: large;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .footer-bottom :nth-child(2) {
    order: 1;
  }

  .footer-bottom :first-child {
    order: 2;
  }

  .footer-bottom :last-child {
    order: 3;
  }
}

@media only screen and (max-width: 470px) {
  .container {
    max-width: 320px;
  }

  /* main card */
  .news-bottom-heading {
    font-size: 23px;
  }

  .news-bottom-date {
    font-size: 20px;
  }

  /* footer */
  p.footer-bold-txt {
    margin-right: 0;
    width: 50%;
    text-align: start;
  }

  .address-column div {
    gap: 10px;
  }
}

@media only screen and (max-width: 370px) {
  .container {
    max-width: 250px;
  }

  /* hero */
  .hero h1 {
    font-size: 38px;
  }

  /* main card */
  .news-bottom-heading {
    font-size: 18px;
  }

  /* mobile nav */
  #mobile-nav .navLink {
    font-size: 18px;
  }
}

@media only screen and (max-width: 300px) {
  .container {
    max-width: 200px;
  }

  /* main */
  .news-bottom-container {
    height: 255px;
  }

  .news-top-heading {
    text-align: center;
  }

  /* footer */
  .address-column div {
    gap: 0;
  }

  .footer-top {
    text-align: center;
  }

  p.footer-bold-txt {
    width: 50%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
