/* Reset dan Variabel */
:root {
  --primary-color: #1e5128;
  --primary-light: #2d7a3d;
  --primary-dark: #0f3a17;
  --secondary-color: #f8c05a;
  --secondary-light: #ffd78a;
  --secondary-dark: #e6a732;
  --accent-color: #4caf50;
  --text-color: #333;
  --text-light: #666;
  --light-text: #fff;
  --dark-bg: #0a2614;
  --light-bg: #f9f9f9;
  --off-white: #f5f5f5;
  --border-radius: 10px;
  --border-radius-lg: 20px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Amiri', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
  font-family: var(--font-primary);
  overflow-x: hidden;
}

/* Utilitas */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-text);
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(30, 81, 40, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transition: var(--transition);
  z-index: -1;
  border-radius: 50px;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 81, 40, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(248, 192, 90, 0.3);
}

.btn-secondary::before {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-top: -40px;
  margin-bottom: 60px;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pattern-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23045a30' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

/* Header dan Navigasi */
header {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

/* header.scrolled {
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
} */

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo i {
  font-size: 28px;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-secondary);
  margin: 0;
  line-height: 1.2;
  margin-top: 4px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 5px 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transition: var(--transition);
  border-radius: 2px;
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 24px;
  cursor: pointer;
}

/* Page Header */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1920x600/?children,education') no-repeat center center/cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  position: relative;
  margin-top: 65px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 81, 40, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
  font-family: var(--font-secondary);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
}

.breadcrumb a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb .separator {
  color: var(--secondary-color);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  margin-top: -40px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: var(--light-text);
  border: 2px solid transparent;
  border-radius: 50px;
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--light-text);
  border-color: var(--primary-color);
}

.filter-btn:hover {
  background-color: var(--primary-light);
  color: var(--light-text);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark-bg));
  color: var(--light-text);
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
  border-radius: 2px;
}

.footer-about p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a i {
  color: var(--secondary-color);
}

.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-text);
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  color: var(--primary-dark);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(30, 81, 40, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transform: translateY(-5px);
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-text);
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(30, 81, 40, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Media Queries */
@media (max-width: 992px) {
  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 50px;
  }
  .page-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--light-text);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav.active {
    max-height: 300px;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .btn {
    font-size: 0.9rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .section-title::after {
    bottom: -12px;
  }

  .section-subtitle {
    margin-top: -25px;
    margin-bottom: 40px;
    font-size: 1rem;
    max-width: 800px;
  }

  .page-header {
    margin-top: 60px;
  }

  .page-header h1 {
    font-size: 1.2rem;
  }

  .page-header a,
  .page-header span {
    font-size: 0.9rem;
  }

  .gallery-filters {
    margin-top: -20px;
  }

  .filter-btn {
    font-size: 0.7rem;
  }

  .btn {
    font-size: 0.8rem;
    font-weight: 600;
  }

  .footer-section h3 {
    font-size: 1.3rem;
  }

  .footer-about p {
    font-size: 0.9rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .copyright p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-title::after {
    bottom: -10px;
    height: 3px;
    width: 60px;
  }

  .section-subtitle {
    margin-top: -15px;
    margin-bottom: 30px;
    font-size: 0.95rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}

/* 2 kartu buku per baris di layar kecil */
@media (max-width: 768px) {
  /* Grid 2 kolom khusus kontainer buku */
  .events-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 8px;
  }

  /* Kartu */
  .event-card {
    width: 100%;
    margin: 0;
    padding: 10px;
    border-radius: 10px;
  }

  /* Gambar */
  .event-image {
    width: 100%;
    aspect-ratio: 3 / 4;      /* tinggi proporsional */
    overflow: hidden;
    border-radius: 8px;
  }
  .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Konten */
  .event-content {
    padding: 8px 4px 0;
  }
  .event-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 6px 0 4px;
  }
  .event-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  /* Footer & ikon */
  .event-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
  }
  .event-location,
  .event-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
  .event-location i,
  .event-time i {
    font-size: 0.9rem;
  }
  .event-location span,
  .event-time span {
    font-size: 0.78rem;
  }
}


