:root {
  --primary: #2e7d5a;
  --soft: #dfeee7;
  --bg: #f3f9f6;
  --text: #2f3e3a;
  --accent: #c7a24d;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(223, 238, 231, 0.95);
  border-bottom: 1px solid #cfe4da;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-style: italic;
}

.navbar .navbar-logo span {
  color: var(--accent);
}

.navbar .navbar-nav a {
  color: var(--text);
  font-size: 1.2rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--primary);
}

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(
      rgba(46, 125, 90, 0.25),
      rgba(46, 125, 90, 0.45)
    ),
    url("../img/header-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
}

.hero .content h1 {
  font-size: 4em;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.35);
}

.hero .content h1 span {
  color: var(--accent);
}

.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.6;
  color: #f5f5f5;
  max-width: 50rem;
}

/* CTA */
.hero .content .cta {
  margin-top: 1.8rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 30px;
  transition: 0.3s;
}

.hero .content .cta:hover {
  background-color: var(--accent);
}

/* ================= SECTION UMUM ================= */

.about,
.visi,
.misi,
.program,
.detail,
.contact {
  padding: 7.5rem 7% 2rem;
  background-color: var(--bg);
}

.about h2,
.visi h2,
.misi h2,
.program h2,
.detail h2,
.contact h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.about h2 span,
.visi h2 span,
.misi h2 span,
.program span,
.detail h2 span,
.contact h2 span {
  color: var(--primary);
}

/* ================= ABOUT ================= */

.about .row {
  display: flex;
  gap: 2.5rem;
}

.about .row img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ================= PROGRAM CARD ================= */

.prog-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 25px;
  margin: 1rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(46, 125, 90, 0.15);
  transition: 0.3s;
}

.prog-card:hover {
  transform: translateY(-6px);
}

.prog-card-title {
  color: var(--primary);
  margin-top: 1rem;
}

/* ================= CONTACT ================= */

.contact .row {
  margin-top: 2rem;
  background-color: var(--soft);
  border-radius: 18px;
  overflow: hidden;
}

.contact .row .map {
  width: 100%;
  height: 350px;
}

/* ================= FOOTER ================= */

footer {
  background-color: #2b6f52;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  color: #eef6f2;
}

footer a {
  color: var(--accent);
  font-weight: 600;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  .about .row {
    flex-wrap: wrap;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}
/* ================= CAROUSEL ================= */

.carousel-section {
  padding: 4rem 0;
  background-color: var(--soft);
  position: relative;
}

.carousel-container {
  max-width: 1100px;
  margin: auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(46, 125, 90, 0.25);
}

.carousel-slide {
  display: none;
  position: relative;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* caption */
.carousel-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(46, 125, 90, 0.75)
  );
  color: #fff;
}

.carousel-caption h3 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.carousel-caption p {
  font-size: 1.2rem;
}

/* tombol */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(46, 125, 90, 0.8);
  color: #fff;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
}

.carousel-btn:hover {
  background-color: var(--accent);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}
.profile-grid{
  display:grid;
  grid-template-columns: 1fr 2fr;
  gap:2rem;
  align-items:flex-start;
}

.profile-img{
  text-align:center;
}

.profile-img img{
  width:100%;
  max-width:320px;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,.15);
  margin-bottom:1rem;
}

.caption{
  font-size:.95rem;
  color:#555;
  font-style:italic;
}

.subsection h3{
  color:var(--accent);
  margin-top:1.5rem;
}
.about .content .btn-profil {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background-color: #6fcf97; /* hijau lembut */
  color: #ffffff !important;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.about .content .btn-profil:hover {
  background-color: #57b883;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(87, 184, 131, 0.35);
}
.video-row.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact .row {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

/* Kiri */
.contact-info {
  flex: 1 1 40%;
  background-color: #f3fbf6; /* hijau lembut */
  padding: 2rem;
  border-radius: 16px;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-info p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Kanan */
.contact .map {
  flex: 1 1 60%;
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  border-radius: 16px;
}

/* Teks atas */
.contact-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .contact .row {
    flex-direction: column;
  }

  .contact .map {
    min-height: 300px;
  }
}
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-logo img {
  max-width: 50px;
  height: auto;
}
