/* ===== Root ===== */
:root {
  --bg: #fff;
  --shadow: rgb(50, 52, 59);
  --muted: rgb(83, 83, 83);
  --dark: rgb(48, 55, 62);
  --orange: #ef6434;
  --line: rgba(35, 38, 45, 0.14);
  --max: 1290px;
  --border: rgb(239, 102, 55);
  --focus: rgb(239, 104, 57);
  --error: rgb(220, 50, 50);
  --icon: rgb(239, 100, 52);
  --button: rgb(48, 55, 62);
  --button-text: rgb(252, 252, 249);
  --search-border: rgb(195, 91, 55);
  --galery-button: rgba(237, 237, 237, 0.9);
  --bottom-controls: rgb(155, 155, 155);
}

body {
  background: var(--bg);
  color: var(--muted);
}

.fs-16 {
  font-size: 16px !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-5 {
  margin-top: 5rem !important;
}

.mt-3 {
  margin-top: 3rem !important;
}

.mv-3 {
  margin: 3rem 0 !important;
}

/* ===== main ===== */
.main .container {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .main .container {
    display: grid;
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }
}

/* ===== Side ===== */
.side-item {
  margin-bottom: 2rem;
}

.side .title {
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.content {
  padding: 0;
  list-style: none;
}

/* Searchbar */
.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 0 55px 0 16px;
  border: 1px solid var(--line);
  outline: none;
  transition: border-color 0.35s ease;
}

.search-input-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
}

.search-input-button svg {
  display: block;
  width: 18px;
  height: 18px;
}

.search-input-button:hover {
  color: var(--orange);
}

.side h2 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 700;
}

.search-input-wrapper input:hover,
.search-input-wrapper input:focus-within {
  border-color: var(--search-border);
}

/* Categories */
.categories .content li {
  margin-bottom: 6px;
}

.categories .item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.5s ease;
}

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

/* Articles */
.articles .content .link-container {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 2rem;
}

.articles img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.articles .link {
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.5s ease;
}

.articles .link:hover {
  color: var(--orange);
}

/* ===== Bottom nav ===== */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bottom-nav.single {
  justify-content: flex-end;
}

.bottom-nav.single.last {
  justify-content: flex-start;
}

.bottom-nav-name {
  display: flex;
  align-items: center;
  gap: 1rem;

  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--bottom-controls);
}

.bottom-control {
  width: 45%;
}

.bottom-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bottom-link.prev {
  flex-direction: row-reverse;
  text-align: left;
}

.bottom-link.next {
  flex-direction: row;
  text-align: right;
}

.prev .bottom-nav-name {
  justify-content: flex-start;
}

.next .bottom-nav-name {
  justify-content: flex-end;
}

.bottom-link h6 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 6px 0;
  color: var(--dark);
  transition: color 0.5s ease;
}

.bottom-link:hover h6 {
  color: var(--orange);
}

.bottom-control img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .bottom-nav {
    align-items: flex-start;
  }

  .bottom-control img {
    display: none;
  }
}

/* ===== main-content ===== */
.section.main {
  padding-top: 100px;
  padding-bottom: 2rem;
}

.card h2 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark);
}

.card h4 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark);
  margin: 0 0 1rem;
}

.card p {
  font-weight: 300;
}

.card strong {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.cards .bottom-text {
  font-style: italic;
}

.cards .pic-bottom {
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  margin: 6px 0;
}

.cards .bottom-text-inner {
  font-style: normal;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
}

.cards .p-inner-link {
  transition: color 0.5s ease;
}

.cards .p-inner-link:hover {
  color: var(--orange);
}

.divider-inner {
  width: 100%;
  height: 1px;
  background-color: var(--line);
  margin: 0;
}

video {
  width: 100%;
  height: auto;
  display: block;
}
