/* ===== 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);
}

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

/* ===== 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;
  }
}

/* ===== Blogue ===== */
.blog-card {
  flex: 0 0 calc((100% - 40px) / 2);
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}

.blog-card:first-child {
  padding-top: 0;
}

.blog-card-image {
  display: block;
  width: 100%;
  overflow: hidden;
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-body {
  padding-top: 24px;
}

.blog-card h3 {
  margin: 0;
  font-weight: 500;
  font-size: 24px;
  color: var(--dark);
}

.blog-card h3 span {
  transition: color 0.3s ease;
}

.blog-card h3 span:hover {
  color: var(--orange);
}

.blog-card a {
  transition: color 0.3s ease;
}

.blog-card a:hover {
  color: var(--orange);
}

.blog-card p {
  font-size: 16px;
  font-weight: 300;
}

.blog-card a > span {
  color: var(--muted);
  border-bottom: 2px solid var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.blog-card a > span:hover {
  color: var(--orange);
}

/* ===== Pagination ===== */
.pagination-container {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 2rem 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.pagination li {
  width: 40px;
  height: 40px;
}

.pagination a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.pagination .page-number:hover,
.pagination .page-number.active {
  background-color: var(--orange);
  color: #fff;
}

/* ===== 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);
}

/* Gallery */
.gallery .image-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery .image-box a {
  position: relative;
  overflow: hidden;
  display: block;
}

.gallery .image-box img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery .image-box a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery .image-box a::after {
  content: "+";
  width: 42px;
  height: 42px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: #fff;
  font-size: 30px;
  line-height: 42px;
  text-align: center;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery .image-box a:hover::before,
.gallery .image-box a:hover::after {
  opacity: 1;
}

/* ===== Side Logo ===== */
.side-logo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120vh;
  padding: 65px 30px;
  background: url("../assets/blogue/blouge-bg.jpg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  text-align: center;
  color: #fff;
}

.side-logo h4 {
  font-size: 24px;
  font-weight: 600;
}

.side-logo h3 {
  font-size: 2rem;
  font-weight: 700;
}

.side-logo .text-link {
  background-color: var(--orange);
}

.side-logo .text-link:hover {
  background-color: #fff;
  color: var(--dark);
}
