/* ─── CSS Variables ─── */
:root {
  --orange      : #ff6b00;
  --orange-dark : #e85d00;
  --navy        : #071d49;
  --gray        : #5d6678;
  --bg          : #f5f7fb;
  --white       : #fff;
  --border      : #e5e7eb;
  --radius-sm   : 8px;
  --radius-md   : 10px;
  --radius-lg   : 14px;
  --radius-xl   : 16px;
  --shadow-sm   : 0 2px 14px rgba(0,0,0,.06);
  --shadow-md   : 0 6px 24px rgba(0,0,0,.1);
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

/* ─── Header ─── */
#header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,.04);
  z-index: 999;
}

.sitename {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.2;
}

.sitename small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: .4px;
}

.navmenu ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navmenu a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  transition: color .2s;
}

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

.navmenu a.active {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

.btn-contact {
  background: var(--orange);
  color: var(--white) !important;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  font-family: 'Montserrat', sans-serif;
  transition: background .3s, transform .3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-contact:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ─── Hero ─── */
.blog-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  min-height: 420px;
  
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.4);
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}

/* ─── Hero Badge, Title, Desc ─── */
.blog-cat-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  padding: 5px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 16px;
}

.blog-hero-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 580px;
}

.blog-hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 22px;
}

/* ─── Blog Section ─── */
.blog-section {
  padding: 60px 0 80px;
  background: var(--bg);
}

.blog-featured {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  min-height: 520px;
  box-shadow: var(--shadow-md);
}

.blog-featured img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.blog-featured:hover  img {
  transform: scale(1.04);
}

.blog-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,29,73,.93) 55%, rgba(7,29,73,.15));
}

.blog-featured-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px;
}

.blog-featured-meta {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin: 10px 0;
  display: flex;
  gap: 14px;
  align-items: center;
}

.blog-featured-meta i {
  color: var(--orange);
}

.blog-featured-body h3 {
  font-size: 21px;
  font-weight: 900;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-featured-body p {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ─── Badge ─── */
.badge-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.badge-featured-pill {
  background: var(--orange);
  color: var(--white);
}

.badge-cat-pill {
  background: rgba(255,255,255,.18);
  color: var(--white);
  margin-left: 6px;
}

.badge-cat-solid {
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

/* ─── Read Link ─── */
.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: color .2s, gap .2s, border-color .2s;
  font-family: 'Montserrat', sans-serif;
}

.blog-read-link-white {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 2px;
}

.blog-read-link-white:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.blog-read-link-orange {
  color: var(--orange);
}

.blog-read-link-orange:hover {
  gap: 10px;
}

/* ─── Blog Card ─── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}

.blog-card-img {
  position: relative;
  height: 130px;
  overflow: hidden;
  background: #e8edf5;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

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

.card-overlay-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}

.card-date-badge {
  background: rgba(30,30,30,.7);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-date-badge i {
  font-size: 10px;
  color: var(--orange);
}

.blog-card-body {
  padding: 10px 12px 1px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 8px;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Sidebar ─── */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  margin-bottom: 6px;
}

.sidebar-line {
  width: 28px;
  height: 3px;
  background: var(--orange);
  border-radius: 10px;
  margin-bottom: 16px;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f0f2f5;
  text-decoration: none;
  transition: color .2s;
  cursor: pointer;
}

.sidebar-cat-item:last-child {
  border-bottom: none;
}

.sidebar-cat-item:hover .cat-name {
  color: var(--orange);
}

.cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: #fff1e7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 13px;
  flex-shrink: 0;
}

.cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
}

.cat-count {
  background: var(--bg);
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.sidebar-pop-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f5;
}

.sidebar-pop-item:last-child {
  border-bottom: none;
}

.sidebar-pop-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: #e8edf5;
}

.sidebar-pop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-pop-date {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-pop-date i {
  font-size: 11px;
  color: var(--orange);
}

.sidebar-pop-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  transition: color .2s;
}

.sidebar-pop-title:hover {
  color: var(--orange);
}

.btn-lihat-semua {
  display: block;
  text-align: center;
  padding: 11px;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-md);
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: background .3s, color .3s;
  margin-top: 14px;
}

.btn-lihat-semua:hover {
  background: var(--orange);
  color: var(--white);
}


/* ─── Pagination ─── */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ─── Modal Kategori ─── */
.cat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(7,29,73,.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.cat-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cat-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: translateY(16px);
  transition: transform .25s;
}

.cat-modal-backdrop.is-open .cat-modal {
  transform: translateY(0);
}

.cat-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #f0f2f5;
  flex-shrink: 0;
}

.cat-modal-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
}

.cat-modal-sub {
  font-size: 12px;
  color: var(--gray);
  margin-top: 3px;
}

.cat-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f0f2f5;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.cat-modal-close:hover {
  background: var(--orange);
  color: var(--white);
}

.cat-modal-body {
  overflow-y: auto;
  padding: 8px 24px 20px;
}

.cat-modal-item {
  border-bottom: 1px solid #f0f2f5;
  padding: 11px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-modal-item:last-child {
  border-bottom: none;
}

.cat-modal-item:hover .cat-name {
  color: var(--orange);
}


/* ─── Responsive ─── */
@media (max-width: 991px) {
  .blog-hero-title {
    font-size: 28px;
  }
  .blog-hero-img {
    display: none;
  }
}

@media (max-width: 767px) {
  .blog-hero-title {
    font-size: 24px;
  }
  .filter-search-wrap {
    display: none;
  }
}

@media (max-width: 576px) {
  .sidebar-card {
    padding: 20px;
  }
  .sidebar-title {
    font-size: 16px;
  }
}