
:root {
  --soft-orange: hsl(35, 77%, 62%);
  --soft-red: hsl(5, 85%, 63%);
  --off-white: hsl(36, 100%, 99%);
  --grayish-blue: hsl(233, 8%, 79%);
  --dark-grayish-blue: hsl(236, 13%, 42%);
  --very-dark-blue: hsl(240, 100%, 5%);
}


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

html[dir="rtl"] {
  direction: rtl;
}

body {
  font-family: 'Inter', 'Tahoma', sans-serif;
  background-color: var(--off-white);
  color: var(--very-dark-blue);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 1rem;
}


.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem;
  position: relative;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
}

.nav_list ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

html[dir="rtl"] .nav_list ul {
  padding-right: 0;
}

.nav_list a {
  color: var(--dark-grayish-blue);
  transition: color 0.3s ease;
  font-size: 1.05rem;
}

.nav_list a:hover {
  color: var(--soft-red);
}


.main-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.main-article {
  display: grid;
  gap: 2rem;
}

.main-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.text-button p {
  color: var(--dark-grayish-blue);
  margin-bottom: 2rem;
  text-align: start;
}

.btn {
  display: inline-block;
  background-color: var(--soft-red);
  color: var(--off-white);
  padding: 0.8rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
  width: max-content;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--very-dark-blue);
}

.sidebar {
  background-color: var(--very-dark-blue);
  color: var(--off-white);
  padding: 2rem 1.5rem;
}

.sidebar h2 {
  color: var(--soft-orange);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.news-item {
  padding: 1.5rem 0;
}

.news-item:not(:last-child) {
  border-bottom: 1px solid var(--dark-grayish-blue);
}

.news-item a {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.news-item a:hover {
  color: var(--soft-orange);
}

.news-item p {
  color: var(--grayish-blue);
  font-size: 0.95rem;
  line-height: 1.7;
}


.bottom-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.bottom-article, .news-card {
  display: flex;
  gap: 1.5rem;
}

.bottom-article img, .news-card img {
  width: 100px;
  height: 130px;
  object-fit: cover;
}

.news-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-text span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--grayish-blue);
}

.news-text a {
  font-weight: 800;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.news-text a:hover {
  color: var(--soft-red);
}

.news-text p {
  color: var(--dark-grayish-blue);
  font-size: 0.95rem;
  line-height: 1.7;
}


.attribution {
  font-size: 11px;
  text-align: center;
  padding: 1rem;
  color: var(--dark-grayish-blue);
}

.attribution a {
  color: var(--soft-red);
}


@media (max-width: 768px) {
  body {
    padding: 0 1rem;
  }

  .header {
    padding: 1.5rem 0;
  }

  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
  }

  html[dir="rtl"] .menu-btn {
    margin-left: 0;
    margin-right: auto;
  }

  .menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--very-dark-blue);
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .nav_list {
    position: absolute;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--off-white);
    padding: 6rem 2rem;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  html[dir="rtl"] .nav_list {
    right: auto;
    left: -100%;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav_list.active {
    right: 0;
  }

  html[dir="rtl"] .nav_list.active {
    right: auto;
    left: 0;
  }

  .nav_list ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav_list a {
    font-size: 1.2rem;
    color: var(--very-dark-blue);
    font-weight: 500;
  }

  .menu-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .main-section {
    grid-template-columns: 1fr;
  }

  .main-content {
    grid-template-columns: 1fr;
  }

  .main-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .main-image {
    height: 250px;
  }

  .sidebar {
    margin-top: 2rem;
  }

  .bottom-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bottom-article, .news-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bottom-article img, .news-card img {
    width: 100%;
    height: auto;
  }

  .news-text {
    align-items: center;
  }

  body.menu-open {
    overflow: hidden;
    height: 100vh;
  }
}


@media (min-width: 769px) {
  .menu-btn {
    display: none;
  }

  .nav_list {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    transition: none;
  }

  .nav_list ul {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
  }

  .nav_list a {
    color: var(--dark-grayish-blue);
  }

  .nav_list a:hover {
    color: var(--soft-orange);
  }
}
