/* =========================
   STYLE.CSS FINAL FIX
   (Tanpa ubah tampilan)
========================= */

:root {
  --primary: #004a00;
  --bg-color: #f0f4f8;
  --text-color: #333;
  --accent: #ffb703;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* ===================== */
/* NAVBAR */
/* ===================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: var(--shadow);
}

.navbar-logo img {
  height: 55px;
  transition: 0.3s;
}

.navbar-nav {
  display: flex;
  gap: 1rem;
}

.navbar-nav a {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0 1rem;
}

.navbar-nav a:hover {
  color: var(--accent);
}

.navbar-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-icon a {
  color: var(--primary);
}

.navbar-icon a:hover {
  color: var(--accent);
}

#menu {
  background: none;
  border: none;
  display: none;
  cursor: pointer;
}

#menu i {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* Mobile Navbar Menu */
@media (max-width: 768px) {
  #menu {
    display: inline-block;
  }

  .navbar-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    background: #fff;
    flex-direction: column;
    width: 250px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
  }

  .navbar-nav.active {
    right: 0;
  }

  .navbar-nav a {
    color: var(--primary);
    margin: 1rem 0;
  }
}

/* === CTA GRADIENT HIJAU === */
.cta,
.about-link {
  background: linear-gradient(90deg, #2e7d32, #66bb6a);
  color: white !important;
  border: none;
  transition: 0.3s ease;
}

.cta:hover,
.about-link:hover {
  background: linear-gradient(90deg, #66bb6a, #2e7d32);
  color: #123524 !important;
  transform: translateY(-3px);
}



/* ===================== */
/* YAYASAN LOGO */
/* ===================== */
/* =====================
   FIX: LOGO YAYASAN
===================== */
.yayasan-logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.yayasan-logo-section img {
  width: 60%;         /* ukuran default lebih besar */
  max-width: 600px;   /* naik dari 280px agar besar di desktop */
  height: auto;
  transition: transform 0.3s ease;
}

.yayasan-logo-section img:hover {
  transform: scale(1.03);
}

/* Responsif */
@media (max-width: 992px) {
  .yayasan-logo-section img {
    width: 75%;
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  .yayasan-logo-section img {
    width: 90%;
    max-width: 320px;
  }
}


/* =====================
   FIX: BAGIAN TRILOGI
===================== */
.trilogy-section {
  background-color: #f9fafb;
  padding: 5rem 7%;
  text-align: center;
}

.trilogy-section h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2.5rem;
}

.motto-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.motto-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 300px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.motto-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Tablet */
@media (max-width: 992px) {
  .motto-row {
    gap: 1.5rem;
  }
  .motto-card {
    width: 45%;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .motto-card {
    width: 100%;
  }
  .motto-card img {
    height: 180px;
  }
  .trilogy-section h1 {
    font-size: 2rem;
  }
}


/* ===================== */
/* PROFIL SLIDER */
/* ===================== */
.profile-section {
  background-color: #fff;
  padding: 5rem 7%;
  text-align: center;
  margin-bottom: 2rem;
}

.profile-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slideshow-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: 1rem 1rem 0 0;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slides img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content {
  padding: 2rem;
}

/* === Styling teks Profil Section === */
.profile-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #123524;
  margin-bottom: 0.5rem;
}

.profile-content h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #3E7B27;
  margin-bottom: 1rem;
}

.profile-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

.profile-content .about-link {
  margin-top: 1.4rem;
  padding: 0.7rem 1.4rem;
}

/* ===================== */
/* TESTIMONI SLIDER */
/* ===================== */
.testimony-section {
  background: #f9f9f9;
  padding: 4rem 1rem;
  text-align: center;
}

.slider-container {
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  transition: transform 1s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 0 0.5rem;
}

/* === TESTIMONI LEBIH RAPI === */
.testimony-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #123524;
}

.slider-container {
  max-width: 800px;
  margin: auto;
}

.testimonial-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  text-align: center;
}

.testimonial-card p {
  font-size: 1.2rem;
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
}

.testimonial-card h4 {
  font-size: 1.1rem;
  color: #3E7B27;
  font-weight: 700;
}


/* ===================== */
/* BERITA */
/* ===================== */
.news-section {
  background: #f9f9f9;
  padding: 4rem 1rem;
  text-align: center;
}

.news-section h2{
   text-align: center;
   padding-bottom: 1rem;
}

.news-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.3s;
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-content {
  padding: 1rem;
}

.news-content h3 {
  color: var(--primary);
}

.news-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

/* ===================== */
/* GALERI */
/* ===================== */
.gallery-section {
  padding: 4rem 1rem;
}

.gallery {
  column-count: 4;
  column-gap: 1rem;
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #123524;
}


.gallery-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.03);
}

/* ===================== */
/* FOOTER */
/* ===================== */
.main-footer {
  background-color: var(--primary);
  color: #fff;
  padding: 4rem 7%;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  height: 80px;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

/* Tablet */
@media (max-width: 992px) {
  html { font-size: 90%; }

  .yayasan-logo-section img { max-width: 320px; }
  .gallery { column-count: 2; }
}

/* Mobile */
@media (max-width: 576px) {
  html { font-size: 80%; }
  .navbar-logo img { width: 120px; height: auto; }
  .yayasan-logo-section img { width: 95%; max-width: 340px; }
  .slideshow-container { height: 260px; }
  .gallery { column-count: 1; }
}

/* === Fix Logo Navbar di Mobile === */
.navbar-logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 576px) {
  .navbar-logo img {
    height: 45px;
    width: auto;
  }
}

/* === Fix Hero Text di Mobile === */
.hero h2 {
  font-size: 2.8rem;
}
.hero h3 {
  font-size: 2.2rem;
}
.hero p {
  font-size: 1.3rem;
}
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero h3 {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* === Sosial Media Icons Navbar & Footer === */
.navbar-icon a i,
.footer-socials a i {
  color: #EFE3C2;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.navbar-icon a:hover i,
.footer-socials a:hover i {
  color: #85A947;
  text-shadow: 0 0 8px rgba(133, 169, 71, 0.7);
  transform: scale(1.2);
}

/* Biar footer lebih lega di mobile */
@media (max-width: 576px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
