/* =========================
   Base Reset (Bootstrap-ish)
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
}

/* =========================
   Container
   ========================= */
.container {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* =========================
   Header
   ========================= */
.rtm-core-header {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
}

.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

/* =========================
   Logo
   ========================= */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 40px;
  width: auto;
}

.logo h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}

/* =========================
   Navigation
   ========================= */
.rtm-core-navmenu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.rtm-core-navmenu .menu > li {
  position: relative;
}

.rtm-core-navmenu .menu a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #212529;
  font-weight: 500;
  border-radius: 0.375rem;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out;
}

.rtm-core-navmenu .menu a:hover,
.rtm-core-navmenu .menu .current-menu-item > a {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1);
}

/* =========================
   Dropdown (optional)
   ========================= */
.rtm-core-navmenu .menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem;
}

/* =========================
   Archive Layout
   ========================= */
.site-main {
  padding: 2rem 0;
}

.site-main > .container h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

/* =========================
   Grid Wrapper
   ========================= */
.site-main {
  display: block;
}

.site-main article {
  margin-bottom: 2rem;
}

/* Grid system */
@media (min-width: 992px) {
  .site-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .site-main > .container {
    grid-column: 1 / -1; /* judul archive full width */
  }

  .site-main article {
    margin-bottom: 0;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .site-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .site-main > .container {
    grid-column: 1 / -1;
  }
}

/* =========================
   Archive Card Style
   ========================= */
.site-main article {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.site-main article:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.site-main article .container {
  padding: 1.25rem;
}

/* =========================
   Entry Header
   ========================= */
.entry-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.entry-title a {
  color: #212529;
  text-decoration: none;
}

.entry-title a:hover {
  color: #0d6efd;
}

.entry-header a {
  font-size: 0.875rem;
  color: #6c757d;
  text-decoration: none;
}

/* =========================
   Entry Content
   ========================= */
.entry-content {
  font-size: 0.95rem;
  color: #495057;
  margin: 0.75rem 0 1rem;
}

/* =========================
   Footer
   ========================= */
.entry-footer .read-more {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0d6efd;
  border: 1px solid #0d6efd;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.entry-footer .read-more:hover {
  background-color: #0d6efd;
  color: #fff;
}
