/* =========================================
GOOGLE FONT
========================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* =========================================
RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* =========================================
ROOT
========================================= */

:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --secondary: #0f172a;
  --white: #ffffff;
  --text: #334155;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --transition: 0.35s;
}

/* =========================================
CONTAINER
========================================= */

.container {
  width: min(1280px, 92%);
  margin: auto;
}

/* =========================================
HEADER
========================================= */

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(90deg, #06131e, #071827, #05111b);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================
LOGO
========================================= */

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  width: 240px;
  height: auto;
}

/* =========================================
NAVIGATION
========================================= */

nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav a {
  color: #dbe4ef;
  font-weight: 600;
  position: relative;
  transition: 0.3s;
  padding: 30px 0;
}

nav a:hover {
  color: var(--primary);
}

nav a.active {
  color: var(--primary);
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 100%;
  height: 3px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary), #4ade80);
}

/* =========================================
SEARCH BUTTON
========================================= */

.search-btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  transition: 0.3s;
}

.search-btn:hover {
  background: var(--primary);
  transform: rotate(8deg);
}

/* =========================================
HERO
========================================= */

.hero {
  padding: 15px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
  background:
    radial-gradient(circle at bottom, #0fd4c050 0%, transparent 35%),
    linear-gradient(135deg, #06131e, #081b2d, #06131e);
  border-radius: 28px;
  overflow: hidden;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* glow */

.hero-content::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: #22c55e30;
  filter: blur(140px);
  right: -150px;
  top: -150px;
}

.hero-content::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: #00ffff20;
  filter: blur(120px);
  bottom: -100px;
  left: 40%;
}

/* =========================================
HERO LEFT
========================================= */

.hero-left {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 50px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.category {
  color: #4ade80;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.hero h1 {
  color: #fff;
  font-size: 50px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 28px;
}

.description {
  color: #cbd5e1;
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 34px;
}

/* =========================================
AUTHOR
========================================= */

.author {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #dbe4ef;
  margin-bottom: 40px;
}

.author img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

/* =========================================
BUTTON
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #22c55e, #34d399);
  color: #fff;
  padding: 18px 34px;
  border-radius: 16px;
  font-weight: 700;
  transition: 0.35s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.45);
}

/* =========================================
HERO IMAGE
========================================= */

.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-right img {
  width: 100%;
  max-width: 620px;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 25px 45px rgba(0, 255, 255, 0.15));
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

/* =========================================
ARTICLE SECTION
========================================= */

.articles {
  padding: 20px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  position: relative;
  padding-bottom: 18px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  border-radius: 20px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* =========================================
FILTER
========================================= */

.section-title select {
  width: 170px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.section-title select:hover {
  border-color: var(--primary);
}

.section-title select:focus {
  outline: none;
  border-color: var(--primary);
}

/* =========================================
GRID
========================================= */

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* =========================================
CARD
========================================= */

.card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #edf2f7;
  transition: 0.35s;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
}

/* =========================================
IMAGE
========================================= */

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.5s;
}

.card:hover img {
  transform: scale(1.08);
}

/* =========================================
CONTENT
========================================= */

.card .content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* =========================================
TAG
========================================= */

.tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.tag.green {
  color: #16a34a;
}

.tag.blue {
  color: #2563eb;
}

.tag.orange {
  color: #ea580c;
}

.tag.cyan {
  color: #0284c7;
}

.tag.purple {
  color: #7c3aed;
}

.tag.pink {
  color: #db2777;
}

/* =========================================
TITLE
========================================= */

.card h3 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #0f172a;
  font-weight: 800;
  transition: 0.3s; /* Maksimal 2 baris */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover h3 {
  color: var(--primary);
}

/* =========================================
DESCRIPTION
========================================= */

.card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
  flex: 1; /* Maksimal 3 baris */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
META
========================================= */

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
  font-size: 12px;
  color: #64748b;
}

.meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/*.meta i {*/
/*color: #94a3b8;*/
/*}*/

/* =========================================
CARD HOVER EFFECT
========================================= */

.card {
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(34, 197, 94, 0.04));
  opacity: 0;
  transition: 0.35s;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

/* =========================================
IMAGE SHINE
========================================= */

.card .content {
  position: relative;
  z-index: 2;
}

.card img {
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80px;
  height: 100%;
  background: linear-gradient(
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-25deg);
}

.card:hover::after {
  animation: shine 0.9s;
}

@keyframes shine {
  100% {
    left: 150%;
  }
}
.card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #22c55e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.card a::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.card a:hover {
  color: #16a34a;
}

.card a:hover::after {
  transform: translateX(4px);
}
/* =========================================
CTA SECTION
========================================= */

.cta {
  padding: 30px 0;
}

.cta-box {
  background: linear-gradient(135deg, #07131d, #0b2134, #07131d);
  border-radius: 28px;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.cta-box::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  right: -120px;
  top: -120px;
  background: #22c55e30;
  filter: blur(120px);
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  left: -80px;
  bottom: -80px;
  background: #0ea5e930;
  filter: blur(120px);
}

.cta-box > * {
  position: relative;
  z-index: 2;
}

.cta-box .left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cta-box .icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, #22c55e, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  flex-shrink: 0;
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.35);
}

.cta-box h3 {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  color: #cbd5e1;
  font-size: 17px;
}

/* =========================================
FOOTER
========================================= */

footer {
  background: #07131d;
  color: #fff;
  padding: 30px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 35px;
}

.footer-logo img {
  width: 260px;
  height: auto;
}

.footer-menu {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.footer-menu a {
  color: #cbd5e1;
  transition: 0.3s;
  font-weight: 500;
}

.footer-menu a:hover {
  color: #22c55e;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 15px;
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 1200px) {
  .hero h1 {
    font-size: 50px;
  }
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card h3 {
    font-size: 25px;
  }
}

/* ========================================= */

@media (max-width: 992px) {
  header .container {
    height: 80px;
  }
  nav {
    gap: 22px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 35px;
  }
  .hero-left {
    order: 2;
  }
  .hero-right {
    order: 1;
  }
  .description {
    margin: auto auto 30px;
  }
  .author {
    justify-content: center;
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
  .cta-box .left {
    flex-direction: column;
  }
}

/* ========================================= */

@media (max-width: 768px) {
  header .container {
    height: 72px;
  }
  .logo h2 {
    font-size: 26px;
  }
  .logo span {
    display: none;
  }
  nav {
    display: none;
  }
  .hero {
    padding: 20px 0;
  }
  .hero-content {
    padding: 30px;
    border-radius: 22px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .description {
    font-size: 16px;
  }
  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-title h2 {
    font-size: 34px;
  }
  .section-title select {
    width: 100%;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .card img {
    height: 220px;
  }
  .card h3 {
    font-size: 24px;
  }
  .cta {
    padding: 20px 0;
  }
  .cta-box {
    padding: 35px 25px;
  }
  .cta-box h3 {
    font-size: 28px;
  }
  .footer-logo {
    flex-direction: column;
    text-align: center;
  }
  .footer-menu {
    justify-content: center;
  }
  .copyright {
    text-align: center;
  }
}

/* ========================================= */

@media (max-width: 480px) {
  .container {
    width: 94%;
  }
  .hero h1 {
    font-size: 32px;
  }
  .badge {
    font-size: 11px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .card .content {
    padding: 20px;
  }
  .card h3 {
    font-size: 22px;
  }
  .cta-box .icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
  .cta-box h3 {
    font-size: 24px;
  }
  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}

/* =========================================
SIMPLE FADE ANIMATION
========================================= */

.hero,
.articles,
.cta,
footer {
  animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
SCROLLBAR
========================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #edf2f7;
}

::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}

::selection {
  background: #22c55e;
  color: #fff;
}
/* Scroll Animation */

.card,
.hero,
.cta {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s;
}

.show {
  opacity: 1 !important;
  transform: translateY(0);
}

/* Sticky Header */

header.sticky {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

/* Back To Top */

.back-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s;
  z-index: 999;
}

.back-top.active {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-5px);
}

/* Lazy Image */

img {
  opacity: 0;
  transition: opacity 0.6s;
}

img.loaded {
  opacity: 1;
}

/* =========================================
PAGINATION
========================================= */

.pagination-section {
  padding: 20px 0 70px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.35s;
}

/* Nomor Halaman */

.page-number {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.page-number:hover {
  transform: translateY(-4px);
  border-color: #22c55e;
  color: #22c55e;
  box-shadow: 0 15px 30px rgba(34, 197, 94, 0.18);
}

/* Halaman Aktif */

.page-number.active {
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  border: none;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

/* Tombol Next Prev */

.page-btn {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.page-btn:hover {
  background: #22c55e;
  transform: translateY(-4px);
}

/* Disabled */

.page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Titik */

.dots {
  width: auto !important;
  padding: 0 8px;
  color: #94a3b8;
  font-size: 22px;
}

/* Responsive */

@media (max-width: 768px) {
  .pagination {
    gap: 10px;
  }
  .pagination a,
  .pagination span {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 8px;
  }
  .pagination a,
  .pagination span {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }
}

/* =========================================
BREADCRUMB
========================================= */

.breadcrumb {
  padding: 25px 0 10px;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #64748b;
}

.breadcrumb a {
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb i {
  font-size: 12px;
}

/* =========================================
SINGLE POST
========================================= */

.single-post {
  padding: 15px 0 40px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

/* =========================================
ARTICLE
========================================= */

.article {
  min-width: 0;
}

.article h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
  margin: 18px 0 20px;
}

.article .excerpt {
  font-size: 20px;
  color: #64748b;
  margin-bottom: 30px;
}

/* =========================================
AUTHOR META
========================================= */

.article .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin-bottom: 30px;
  border: none;
}

.article .author {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
}
.author-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f2f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-icon i {
  font-size: 36px;
  color: var(--primary);
}
.author strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
}

.author span {
  color: #64748b;
  font-size: 13px;
}

/* =========================================
SHARE
========================================= */

.share {
  display: flex;
  gap: 10px;
}

.share a {
  width: 42px;
  height: 42px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f1f5f9;
  transition: 0.3s;
}

.share a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* =========================================
FEATURED IMAGE
========================================= */

.featured-image {
  width: 100%;
  border-radius: 22px;
  margin: 35px 0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* =========================================
POST CONTENT
========================================= */

.post-content {
  font-size: 18px;
  color: #334155;
}

.post-content > * {
  margin-bottom: 22px;
}

.post-content h2 {
  margin-top: 50px;
  margin-bottom: 18px;
  font-size: 34px;
  color: #0f172a;
}

.post-content h3 {
  margin-top: 35px;
  font-size: 26px;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  list-style: disc;
}

.post-content li {
  margin: 10px 0;
}

.post-content img {
  border-radius: 20px;
  margin: 35px auto;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.post-content blockquote {
  border-left: 5px solid var(--primary);
  padding: 18px 25px;
  margin: 30px 0;
  background: #f8fafc;
  border-radius: 0 14px 14px 0;
  font-style: italic;
}

.post-content pre {
  background: #08131d;
  color: #fff;
  border-radius: 18px;
  padding: 25px;
  overflow: auto;
  font-size: 15px;
  margin: 30px 0;
}

.post-content code {
  font-family: Consolas, monospace;
}

/* =========================================
SIDEBAR
========================================= */

.sidebar {
  position: sticky;
  top: 110px;
}

/* =========================================
WIDGET
========================================= */

.widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.widget h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

/* =========================================
TABLE OF CONTENT
========================================= */

.widget ul {
  list-style: none;
}

.widget li {
  margin-bottom: 12px;
}

.widget li:last-child {
  margin-bottom: 0;
}

.widget li a {
  color: #475569;
  transition: 0.3s;
}

.widget li a:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* =========================================
MINI POST
========================================= */

.mini-post {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.mini-post:last-child {
  margin-bottom: 0;
}

.mini-post img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.mini-post a {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  transition: 0.3s; /* Maksimal 3 baris */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-post a:hover {
  color: var(--primary);
}

/* =========================================
CTA WIDGET
========================================= */

.cta-widget {
  text-align: center;
  background: linear-gradient(135deg, #07131d, #0c2235);
  color: #fff;
}

.cta-widget img {
  width: 60%;
  margin: auto auto 18px;
}

.cta-widget h4 {
  font-size: 22px;
  margin-bottom: 12px;
}

.cta-widget p {
  color: #cbd5e1;
  margin-bottom: 25px;
}

/* =========================================
AUTHOR BOX
========================================= */

.author-box {
  margin-top: 60px;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 30px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.author-box img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box h3 {
  margin-bottom: 8px;
}

/* =========================================
FAQ
========================================= */

.faq {
  margin-top: 60px;
}

.faq h2 {
  margin-bottom: 20px;
}

.faq details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
}

.faq details p {
  padding: 0 22px 22px;
}

/* =========================================
RELATED
========================================= */

.related-post {
  margin-top: 70px;
}

.related-post h2 {
  margin-bottom: 30px;
}

.related-post .article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 1100px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .article h1 {
    font-size: 22px;
  }
  .article .excerpt {
    font-size: 17px;
  }
  .article .meta {
    gap: 10px;
  }
  .share {
    gap: 5px;
  }
  .author-icon {
    width: 38px;
    height: 38px;
  }
  .author-icon i {
    font-size: 24px;
  }
  .author strong {
    font-size: 13px;
  }
  .author span {
    font-size: 10px;
  }
  .post-content {
    font-size: 16px;
  }
  .post-content h2 {
    font-size: 28px;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================
SEARCH HERO
========================================= */

.search-hero {
  padding: 18px 0 25px;
}

.search-hero-box {
  display: grid;
  grid-template-columns: 1.1fr 420px;
  align-items: center;
  gap: 40px;
  padding: 45px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at right, #22c55e15 0%, transparent 40%),
    radial-gradient(circle at left, #0ea5e920 0%, transparent 35%),
    linear-gradient(135deg, #06131e, #081b2d, #06131e);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.search-hero-box::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  background: #22c55e20;
  filter: blur(120px);
}

.search-left,
.search-right {
  position: relative;
  z-index: 2;
}

.search-left h1 {
  color: #fff;
  font-size: 54px;
  line-height: 1.1;
  margin: 18px 0;
}

.search-left h1 span {
  color: #22c55e;
}

.search-left p {
  color: #cbd5e1;
  font-size: 18px;
}

.search-right {
  display: flex;
  justify-content: center;
}

.search-right img {
  width: 100%;
  max-width: 360px;
}

/* =========================================
SEARCH PAGE
========================================= */

.search-page {
  padding: 10px 0 50px;
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 35px;
  align-items: start;
}

/* =========================================
FILTER
========================================= */

.search-filter {
  display: flex;
  gap: 15px;
  margin-bottom: 28px;
}

.search-filter select {
  height: 50px;
  min-width: 190px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.search-filter select:hover {
  border-color: #22c55e;
}

.search-filter select:focus {
  outline: none;
  border-color: #22c55e;
}

/* =========================================
SEARCH CARD
========================================= */

.search-card {
  display: grid;
  grid-template-columns: 195px 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 22px;
  transition: 0.35s;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.search-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

.search-card > a {
  display: block;
}

.search-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: 0.5s;
}

.search-card:hover img {
  transform: scale(1.05);
}

.search-card .content {
  padding: 25px 28px 25px 0;
  display: flex;
  flex-direction: column;
}

.search-card h2 {
  font-size: 33px;
  line-height: 1.25;
  margin: 12px 0;
  font-weight: 800;
}

.search-card h2 a {
  color: #0f172a;
  transition: 0.3s;
}

.search-card h2 a:hover {
  color: #22c55e;
}

.search-card p {
  color: #64748b;
  font-size: 16px;
  margin-bottom: 18px;
}

.search-card .meta {
  margin-top: auto;
  border: none;
  padding: 0;
  justify-content: flex-start;
  gap: 25px;
  flex-wrap: wrap;
}

/* =========================================
SIDEBAR
========================================= */

.search-sidebar {
  position: sticky;
  top: 110px;
}

/* =========================================
SEARCH BOX
========================================= */

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  height: 50px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 0 18px;
  font-size: 15px;
}

.search-box input:focus {
  outline: none;
  border-color: #22c55e;
}

.search-box button {
  width: 50px;
  border: none;
  border-radius: 14px;
  background: #22c55e;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background: #16a34a;
}

/* =========================================
SIDEBAR CATEGORY
========================================= */

.search-sidebar .widget ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-sidebar .widget li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #475569;
  transition: 0.3s;
}

.search-sidebar .widget li a:hover {
  color: #22c55e;
}

.search-sidebar .widget li span {
  font-weight: 700;
  color: #22c55e;
}

/* =========================================
TAG CLOUD
========================================= */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  padding: 8px 14px;
  border-radius: 30px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
  transition: 0.3s;
}

.tag-cloud a:hover {
  background: #22c55e;
  color: #fff;
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 1200px) {
  .search-card {
    grid-template-columns: 280px 1fr;
  }
  .search-card h2 {
    font-size: 28px;
  }
}

@media (max-width: 992px) {
  .search-hero-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .search-layout {
    grid-template-columns: 1fr;
  }
  .search-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .search-filter {
    flex-direction: column;
  }
  .search-filter select {
    width: 100%;
  }
  .search-card {
    grid-template-columns: 1fr;
  }
  .search-card img {
    height: 230px;
  }
  .search-card .content {
    padding: 25px;
  }
  .search-card h2 {
    font-size: 28px;
  }
  .search-left h1 {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .search-hero-box {
    padding: 30px 25px;
  }
  .search-left h1 {
    font-size: 32px;
  }
  .search-left p {
    font-size: 15px;
  }
  .search-card h2 {
    font-size: 24px;
  }
  .search-card p {
    font-size: 15px;
  }
  .search-card .meta {
    gap: 12px;
  }
}

/* =========================================
404 PAGE
========================================= */

.error-page {
  padding: 20px 0;
}

.error-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 70px 40px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, #22c55e20 0%, transparent 35%),
    radial-gradient(circle at bottom, #0ea5e920 0%, transparent 30%),
    linear-gradient(135deg, #06131e, #081b2d, #06131e);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.error-box::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -180px;
  top: -180px;
  background: #22c55e30;
  filter: blur(150px);
}

.error-box::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -100px;
  bottom: -120px;
  background: #00ffff18;
  filter: blur(120px);
}

.error-box > * {
  position: relative;
  z-index: 2;
}

/* =========================================
IMAGE
========================================= */

.error-image {
  width: 100%;
  max-width: 380px;
  margin: auto;
  animation: float 5s ease-in-out infinite;
}

/* =========================================
404 NUMBER
========================================= */

.error-code {
  display: block;
  margin-top: -165px;
  font-size: clamp(90px, 11vw, 180px);
  line-height: 1;
  font-weight: 800;
  color: #22c55e;
  text-shadow:
    0 0 20px rgba(34, 197, 94, 0.45),
    0 0 60px rgba(34, 197, 94, 0.25);
}

/* =========================================
TITLE
========================================= */

.error-box h1 {
  margin: 20px auto 15px;
  max-width: 720px;
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
}

.error-box p {
  max-width: 620px;
  margin: auto;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

/* =========================================
SEARCH
========================================= */

.error-search {
  width: 100%;
  max-width: 620px;
  margin: 40px auto 30px;
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.error-search input {
  flex: 1;
  height: 60px;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0 22px;
  font-size: 15px;
}

.error-search input::placeholder {
  color: #94a3b8;
}

.error-search input:focus {
  outline: none;
}

.error-search button {
  width: 70px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  font-size: 18px;
  transition: 0.35s;
}

.error-search button:hover {
  filter: brightness(1.1);
}

/* =========================================
BUTTON
========================================= */

.error-action {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.error-action a {
  min-width: 220px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  transition: 0.35s;
}

.error-action .btn-primary {
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.3);
}

.error-action .btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(34, 197, 94, 0.4);
}

.error-action .btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.error-action .btn-secondary:hover {
  background: #22c55e;
  border-color: #22c55e;
}

/* =========================================
POPULAR POST
========================================= */

.error-related {
  padding: 55px 0 10px;
}

.error-related .section-title {
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

.error-related .section-title h2 {
  padding-bottom: 0;
}

.error-related .section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 768px) {
  .error-box {
    padding: 45px 25px;
  }
  .error-box h1 {
    font-size: 32px;
  }
  .error-box p {
    font-size: 16px;
  }
  .error-search {
    flex-direction: column;
    background: none;
    border: none;
    gap: 15px;
  }
  .error-search input {
    height: 56px;
    border-radius: 16px;
    background: #0f172a;
  }
  .error-search button {
    width: 100%;
    height: 56px;
    border-radius: 16px;
  }
  .error-action {
    flex-direction: column;
  }
  .error-action a {
    width: 100%;
  }
  .error-image {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .error-code {
    font-size: 80px;
  }
  .error-box h1 {
    font-size: 28px;
  }
}


/* ==========================
POST TAGS
========================== */

.post-tags{
    margin:50px 0;
    padding:25px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
}

.post-tags h3{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:20px;
    margin-bottom:18px;
    color:#0f172a;
}

.post-tags h3 i{
    color:#22c55e;
}

.tag-list{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.tag-list a{
    text-decoration:none;
    padding:10px 16px;
    border-radius:999px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    color:#334155;
    font-size:14px;
    font-weight:600;
    transition:.25s;
}

.tag-list a:hover{
    background:#22c55e;
    color:#fff;
    border-color:#22c55e;
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(34,197,94,.25);
}


.fa-fire {
    color: #ff6b35;
    background: linear-gradient(135deg, #ffd166, #ff8c42, #ff3d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fa-calendar,
.fa-calendar-days,
.fa-calendar-alt {
    color: #3b82f6;
    background: linear-gradient(135deg, #93c5fd, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

