/* =========================
   Reset and Base Styles
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* =========================
   Layout
   ========================= */
.page-layout {
  display: flex;
  min-height: 100vh;
}

.main-ar {
  width: 100%;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main-content {
  display: flex;
  height: 100%;
  justify-content: center;
  background: #fff;
}

.footer {
  bottom: 0;
  background: rgb(236, 236, 236);
  padding: 1em;
  text-align: center;
}

/* =========================
   Sidebar
   ========================= */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 350px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  background: linear-gradient(to bottom, transparent, rgb(223, 223, 223));
}

.up-navbar {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sidebar-icons {
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

.circle-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
}

/* =========================
   Navigation
   ========================= */
.nav-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  list-style-type: none;
}

.nav-down-li {
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-down-li:hover {
  background-color: rgb(210, 210, 210);
  transition: all 0.3s ease;
  opacity: 0.8;
}

.nav-hr {
  width: 50%;
  margin: 0 auto;
  border: none;
  height: 1px;
  background-color: #333;
}

.nav-li-hr {
  width: 20%;
  background-color: #333;
}

.pointer-icon {
  cursor: pointer;
}

/* =========================
   Header
   ========================= */
.header {
  width: 100%;
  padding: 1rem;
}

.header-title-text {
  font-size: 2rem;
}

/* =========================
   Article
   ========================= */
.article {
  width: 80%;
  background: linear-gradient(to bottom, transparent, rgb(223, 223, 223));
  padding: 3rem;
  font-size: 1.3rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 4rem;
}

.articles {
  display: flex;
  justify-content: center;
  padding: 3rem;
  flex-direction: column;
  align-items: center;
}

.articles-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.article-overview-category {
  padding: 4rem;
}

.article-overview {
  display: flex;
  flex-direction: column;
  background-color: rgb(239, 239, 239);
  padding: 1rem;
  width: 80%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.article-overview:hover {
  background-color: rgb(207, 207, 207);
  transition: all 0.3s ease;
}

.article-date-overview {
  font-size: 0.9rem;
  font-style: oblique;
}

/* =========================
   Pagination
   ========================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-family: system-ui, sans-serif;
  flex-wrap: wrap;
}

.page-link {
  display: inline-block;
  padding: 0.4em 0.7em;
  font-size: 0.9rem;
  color: #333;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.page-link:hover {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.page-info {
  padding: 0.4em 0.7em;
  font-size: 0.9rem;
  color: #555;
}

/* =========================
   Mobile Navbar
   ========================= */
.mobile-navbar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  height: 100px;
  background-color: rgb(185, 185, 185);
}

.hamburger {
  width: 40px;
  height: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center;
  display: block;
  position: relative;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
}

/* =========================
   Mobile Menu
   ========================= */
.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100%;
  background: rgb(198, 198, 198);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.5s ease;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.menu.open {
  right: 0;
}

.menu ul {
  list-style: none;
  text-align: center;
}

.menu li {
  margin: 1.5rem 0;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 3rem;
  transition: color 0.3s;
}

.menu li a:hover {
  color: rgb(62, 98, 42);
}

.menu-mobile-nav {
  cursor: pointer;
  margin: 1.5rem 0;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  color: #fff;
  text-decoration: none;
  font-size: 3rem;
  transition: color 0.3s;
}

.menu-mobile-nav:hover {
  color: rgb(62, 98, 42);
}

.mobile-nav-home {
  font-size: 3rem;
}

.mobile-nav-left {
  font-size: 2rem;
  color: rgb(234, 244, 228);
}

/* =========================
   Miscellaneous
   ========================= */
.font-bold {
  font-weight: bold;
}

.black-icon {
  color: black;
}

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

/* =========================
   Animations
   ========================= */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1300px) {
  .sidebar {
    display: none;
  }

  .mobile-navbar {
    display: flex;
  }

  .article {
    width: 100%;
    padding: 3rem;
    font-size: 2.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 4rem;
  }

  .header-title-text {
    font-size: 4rem;
  }

  .article-overview {
    width: 100%;
  }

  .article-date-overview {
    font-size: 2rem;
  }

  .article-overview-category {
    font-size: 4rem;
  }

  .article-overview-title {
    font-size: 3rem;
  }

  .article-overview-write {
    font-size: 2.5rem;
  }

  .articles {
    padding: 1rem;
  }

  .page-link {
    padding: 2rem 4rem;
    font-size: 3rem;
  }

  .page-info {
    font-size: 3rem;
  }
}
