/* Reset dan Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* Navbar */
.navbar {
  background-color: #19423c;
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: top 0.3s ease;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-menu li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #f2ab04;
  font-weight: 600;
  position: relative;
}

.nav-menu li a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f2ab04;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 80px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 2;
}

.hero-text {
  position: absolute;
  bottom: 160px;
  left: 190px;
  color: white;
  z-index: 3;
  text-align: left;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 80px;
  font-weight: 300;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 314px;
}

/* Blog Section */
.blog-section {
 padding: 4rem 10rem;
  z-index: 5;
  width: 100%;
    margin-top: -50px;
  position: relative;
  border-top-left-radius: 45px;
  border-top-right-radius: 45px;
  background-color: #ffffff;
  color: #333;
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 600;
}

.blog-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-card {
  background: white;
  width: 220px;
  height: 320px;
  padding: 16px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.blog-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.blog-card h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 13px;
  line-height: 1.5;
  overflow-y: auto;
  max-height: 90px;
  padding-right: 6px;
  transition: all 0.3s ease;
}

/* Scrollbar halus untuk teks panjang */
.blog-card p::-webkit-scrollbar {
  width: 4px;
}
.blog-card p::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* Hover effect */
.blog-card:hover {
  width: 300px;
  height: 400px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

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

.blog-card:hover p {
  max-height: 200px;
}



/* Footer */
.footer {
  background-color: #1e1b1b;
  color: white;
  height: 450px;
  padding: 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer h4 {
  margin-bottom: 0.8rem;
}
.footer p {
  color: white; /* atau warna lain sesuai tema kamu */
  text-decoration: none;
}
.footer p:hover {
  text-decoration: underline; /* opsional */
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
