body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  text-align: start; /* Default for LTR */
  line-height: 1.6;
}

header {
  background-color: #8BC34A; /* Warna dari logo */
  color: white;
  padding: 30px 20px;
}
.arabic-text {
  direction: rtl;
  text-align: justify;
  font-family: 'Amiri', serif;
}
.header-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* Memungkinkan wrapping jika perlu */
  justify-content: center; /* Pusatkan jika space terbatas */
}

.logo {
  width: 170px;
  height: auto;
  border-radius: 8px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  margin-top: 5px;
  font-size: 1rem;
  opacity: 0.95;
}

section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

.image-container {
  text-align: center;
  margin-bottom: 30px;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 10px;
  color: #689F38;
}

ul {
  padding-left: 20px;
}

footer {
  background-color: #558B2F;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

* Image Gallery Styles */
.activity-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 40px 0;
}

.activity-item {
  position: relative;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.tilted-image {
  border-radius: 15px;
  transform: rotate(3deg);
  box-shadow: 8px 8px 15px rgba(0,0,0,0.2);
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 3px solid white;
  transition: all 0.3s ease;
}

.activity-item:nth-child(even) .tilted-image {
  transform: rotate(-3deg);
}

.activity-item:hover .tilted-image {
  transform: rotate(0) scale(1.05);
  box-shadow: 12px 12px 20px rgba(0,0,0,0.25);
  z-index: 2;
}

.image-caption {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(86, 139, 47, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
}

.activity-item:hover .image-caption {
  opacity: 1;
  bottom: -25px;
}

/* Responsive Images */
@media (max-width: 768px) {
  .activity-gallery {
    gap: 40px;
  }
  
  .tilted-image {
    transform: rotate(2deg) !important;
    height: 160px;
  }
  
  .activity-item:nth-child(even) .tilted-image {
    transform: rotate(-2deg) !important;
  }
}

/* Masonry Grid Gallery */
.masonry-gallery {
  column-count: 3;
  column-gap: 2rem;
  margin: 40px 0;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  transition: transform 0.3s ease;
}

.creative-tilt {
  border-radius: 15px;
  transform: rotate(3deg);
  box-shadow: 8px 8px 15px rgba(0,0,0,0.2);
  width: 100%;
  height: auto;
  border: 3px solid white;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.masonry-item:nth-child(3n+1) .creative-tilt {
  transform: rotate(-2deg);
}

.masonry-item:nth-child(5n+1) .creative-tilt {
  transform: rotate(4deg);
}

.masonry-item:hover .creative-tilt {
  transform: rotate(0) scale(1.08);
  box-shadow: 15px 15px 30px rgba(0,0,0,0.3);
  z-index: 2;
}

.hover-caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, #558B2F, #8BC34A);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  text-align: center;
  max-width: 80%;
}

.masonry-item:hover .hover-caption {
  opacity: 1;
  bottom: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-gallery {
    column-count: 1.5;
  }
  
  .creative-tilt {
    transform: rotate(1deg) !important;
  }
}

/* Loading Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.masonry-item {
  animation: fadeIn 0.6s ease forwards;
}



/* Carousel Styles */
.activity-carousel {
  position: relative;
  padding: 0 40px;
}

.carousel-item {
  padding: 15px;
  perspective: 1000px;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transform-style: preserve-3d;

}

.tilted-image {
  transform: rotate(3deg) scale(1.1);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 8px 8px 15px rgba(0,0,0,0.2);
}

.image-wrapper:hover .tilted-image {
  transform: rotate(0) scale(1);
}

.image-caption {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(86, 139, 47, 0.9);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  width: max-content;
}

.image-wrapper:hover .image-caption {
  opacity: 1;
  bottom: 20px;
}

/* Owl Carousel Overrides */
.owl-nav button {
  background: #8BC34A !important;
  color: white !important;
  font-size: 2rem !important;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.owl-nav .owl-prev { left: -50px; }
.owl-nav .owl-next { right: -50px; }

.owl-dots {
  text-align: center;
  margin-top: 20px;
}

.owl-dot span {
  background: #8BC34A !important;
  margin: 5px;
}


/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* Increased z-index */
  backdrop-filter: blur(5px);
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  border: 3px solid #8BC34A;
  border-radius: 15px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  transform: translateZ(0); /* Force hardware acceleration */
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .lightbox {
    padding: 15px;
  }
  
  .lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-width: 2px;
  }
}

/* Add close button styling */
.lightbox::after {
  content: '×';
  position: fixed;
  top: 25px;
  right: 25px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 100000;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.lightbox::after:hover {
  transform: scale(1.2);
}

/* Ensure footer stays below lightbox */
footer {
  position: relative;
  z-index: 1; /* Explicit lower z-index than lightbox */
}

@media (max-width: 480px) {
  .lightbox::after {
    top: 10px;
    right: 10px;
    font-size: 2rem;
  }
}


.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #8BC34A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

.quran-enterance {
  width: 150px;
  opacity: 0;
  animation: quranFloat 2s ease-in-out forwards;
}

.loading-text {
  color: white;
  margin-top: 20px;
  font-size: 1.2rem;
  font-family: 'Amiri', serif;
  opacity: 0;
  animation: textFade 2s ease-in forwards;
  animation-delay: 0.5s;
}

@keyframes quranFloat {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes textFade {
  0% { opacity: 0; }
  100% { opacity: 0.9; }
}

.bismillah {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}



/* Mobile First Styles */
@media (max-width: 768px) {
  header {
    padding: 20px 15px;
  }

  .header-container {
    gap: 15px;
  }

  .logo {
    width: 120px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-top: 30px;
  }

  /* Carousel Mobile Adjustments */
  .activity-carousel {
    padding: 0 15px;
  }

  .tilted-image {
    height: 180px;
    transform: rotate(2deg) scale(1.05);
  }

  .owl-nav button {
    width: 35px;
    height: 35px;
    font-size: 1.5rem !important;
  }

  .owl-nav .owl-prev { left: -10px; }
  .owl-nav .owl-next { right: -10px; }

  /* Lightbox Mobile Fix */
  .lightbox-image {
    max-width: 95%;
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .header-container {
    gap: 10px;
  }
  
  .logo {
    width: 80px;
  }
  
  header h1 {
    font-size: 1.1rem;
  }
  
  header p {
    font-size: 0.7rem;
  }
}
  .loading-text {
    font-size: 1rem;
  }

  .quran-enterance {
    width: 100px;
  }

  .tilted-image {
    height: 150px;
  }

  .image-caption {
    font-size: 0.8rem;
    padding: 6px 15px;
  }
  
  footer {
    padding: 15px;
    font-size: 0.8rem;
  }
}

/* Touch Optimization */
button, .owl-nav button {
  touch-action: manipulation;
}

/* Prevent Zoom on Input */
input, select, textarea {
  font-size: 16px;
}

/* Add to your existing style.css */
@media (max-width: 768px) {
  /* Mobile Header Styles */
  header {
    padding: 15px;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }


  .logo {
    width: 140px; /* Adjust logo size for mobile */
    margin-bottom: 10px;
  }

  /* Center alignment for all content */
  section {
    text-align: justify;
    padding: 30px 15px;
  }

  .section-title {
    text-align: center !important;
  }

  /* Carousel Mobile Adjustments */
  .activity-carousel {
    padding: 0 10px;
  }

  .tilted-image {
    height: 200px;
  }

  /* Center footer text */
  footer {
    padding: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 120px;
  }
  
  .tilted-image {
    height: 160px;
  }
  
  /* Force justify text on small screens */
  section p, section li {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Section Dividers */
.section-divider {
  position: relative;
  margin: 50px 0;
  text-align: center;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px solid #8BC34A;
  z-index: 1;
}

.section-divider i {
  position: relative;
  z-index: 2;
  background: #f9f9f9;
  padding: 0 20px;
  font-style: normal;
  color: #558B2F;
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
}

/* For Arabic text divider */
.arabic-divider {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  header {
    padding: 20px 15px;
  }

  .header-container {
    flex-direction: row; /* Pertahankan tata letak horizontal */
    gap: 15px;
    justify-content: center;
    text-align: left; /* Teks rata kiri */
  }

  .logo {
    width: 100px; /* Ukuran logo lebih kecil */
  }

  header h1 {
    font-size: 1.3rem; /* Ukuran font lebih kecil */
    line-height: 1.2;
  }

  header p {
    font-size: 0.8rem;
    margin-top: 3px;
  }
}
  .section-divider {
    margin: 40px 0;
  }
  
  .section-divider i {
    font-size: 1.2rem;
    padding: 0 15px;
  }
  
  .arabic-divider {
    font-size: 1.5rem;
  }
}

.section-divider i {
  transition: transform 0.3s ease;
}

.section-divider:hover i {
  transform: scale(1.1);
  color: #8BC34A;
}

/* Schedule Poster Styles */
.schedule-poster-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: linear-gradient(145deg, #f0f4e3, #ffffff);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(86, 139, 47, 0.15);
  transition: transform 0.3s ease;
}

.animated-poster {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.poster-image {
  max-width: 720px;
  /* Existing properties */
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.poster-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(86, 139, 47, 0.9), transparent);
  color: white;
  padding: 30px 20px 15px;
  text-align: center;
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.schedule-poster-container:hover .poster-caption {
  opacity: 1;
}

.schedule-poster-container:hover .poster-image {
  transform: scale(1.03);
}

/* Decorative Elements */
.animated-poster::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 45%,
    rgba(139, 195, 74, 0.1) 50%,
    transparent 55%);
  z-index: 1;
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .schedule-poster-container {
    margin: 30px 15px;
    padding: 15px;
  }
  
  .poster-caption {
    font-size: 1.2rem;
    padding: 20px 15px 10px;
  }
}

/* Tambahkan ini ke style.css */
.image-wrapper {
  transform: rotate(3deg);
  overflow: visible;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 25px;
  background: #fff;
  box-shadow: 8px 8px 15px rgba(0,0,0,0.2);
  border-radius: 15px;
}

.image-wrapper:nth-child(even) {
  transform: rotate(-3deg);
}

.tilted-image {
  transform: rotate(-3deg) scale(1.15);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 15px;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.image-wrapper:nth-child(even) .tilted-image {
  transform: rotate(3deg) scale(1.15);
}

/* Hover effect */
.image-wrapper:hover {
  transform: rotate(0) scale(1.05);
  z-index: 2;
}

.image-wrapper:hover .tilted-image {
  transform: rotate(0) scale(1);
  filter: brightness(1.05);
}

/* Untuk carousel item */
.carousel-item {
  padding: 1px;
  perspective: 1000px;
}

/* Penyesuaian untuk tampilan mobile */
@media (max-width: 768px) {
  .image-wrapper {
    transform: rotate(2deg);
    margin: 15px;
  }
  
  .image-wrapper:nth-child(even) {
    transform: rotate(-2deg);
  }
  
  .tilted-image {
    transform: rotate(-2deg) scale(1.1);
    height: 200px;
  }
  
  .image-wrapper:nth-child(even) .tilted-image {
    transform: rotate(2deg) scale(1.1);
  }
}

/* Navbar Styles */
.main-nav {
  background: #8BC34A;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 50px;
  transition: transform 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-active {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.nav-mobile-menu {
  display: none;
  cursor: pointer;
}

.nav-mobile-menu .bar {
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.4s;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    flex-direction: column;
    background: #8BC34A;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 20px 0;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-mobile-menu {
    display: block;
  }
  
  .nav-mobile-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .nav-mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-mobile-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Page Transition */
.page {
  display: none;
  animation: fadeIn 0.5s ease;
}

.page.active {
  display: block;
}

.nav-active {
  background: rgba(255,255,255,0.2);
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: white;
  border-radius: 2px;
  animation: navUnderline 0.3s ease;
}

@keyframes navUnderline {
  from { width: 0% }
  to { width: 60% }
}

/* Untuk halaman aktif di mobile */
@media (max-width: 768px) {
  .nav-active {
    background: #558B2F;
  }
  
  .nav-active::after {
    display: none;
  }
}


/* Grid Gallery */
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem;
  padding: 0 15px;
  max-width: 900px;
  margin: 0 auto;
}

.masonry-item {
  position: relative;
  break-inside: avoid;
  transition: transform 0.3s ease;
}

.creative-tilt {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.masonry-item:hover .creative-tilt {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hover-caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(86, 139, 47, 0.9);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.masonry-item:hover .hover-caption {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .masonry-gallery {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  
  .creative-tilt {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .creative-tilt {
    height: 200px;
  }
  
  .hover-caption {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}


/* About Section */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.program-card {
  background: #f8fff0;
  padding: 25px;
  border-radius: 15px;
  border: 2px solid #8BC34A;
  transition: transform 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(139, 195, 74, 0.2);
}

.program-card h3 {
  color: #558B2F;
  margin: 0 0 15px 0;
  font-family: 'Amiri', serif;
}

.schedule-note {
  background: #e8f5e9;
  padding: 20px;
  border-radius: 12px;
  margin-top: 25px;
  border-left: 4px solid #8BC34A;
}

.schedule-note p {
  margin: 10px 0;
  line-height: 1.8;
  color: #2e5420;
}

@media (max-width: 768px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
  
  .program-card {
    padding: 20px;
  }
  
  .schedule-note {
    padding: 15px;
  }
}

/* Blog Section Styles */
.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 30px;
}

.blog-post {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.post-image {
  height: 250px;
  overflow: hidden;
}

.post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post:hover .post-thumbnail {
  transform: scale(1.05);
}

.post-content {
  padding: 25px;
  flex: 1;
}

.post-content h3 {
  color: #2e5420;
  margin-top: 0;
  font-size: 1.4rem;
}

.post-date {
  color: #689F38;
  font-size: 0.9rem;
  display: block;
  margin: 10px 0;
}

.post-excerpt {
  color: #555;
  line-height: 1.7;
  margin: 15px 0;
}

.read-more {
  color: #8BC34A;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 15px;
}

.read-more:hover {
  color: #558B2F;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .post-image {
    height: 200px;
  }
  
  .post-content {
    padding: 20px;
  }
  
  .post-content h3 {
    font-size: 1.2rem;
  }
}

/* Blog Modifikasi */
.post-content {
  padding: 20px;
  background: white;
  margin-top: -15px;
  position: relative;
  z-index: 1;
  border-radius: 0 0 15px 15px;
}

.post-content h3 {
  color: #558B2F;
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  margin: 10px 0;
}

.post-date {
  color: #8BC34A;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.post-excerpt {
  color: #666;
  line-height: 1.7;
  font-size: 0.95rem;
}

.read-more {
  color: #8BC34A;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #558B2F;
}

/* Override masonry gallery untuk blog */
.blog-section .masonry-gallery {
  column-count: 2;
  column-gap: 2rem;
  padding: 0 20px;
}

.blog-section .masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .blog-section .masonry-gallery {
    column-count: 1;
  }
}

/*admin
/* Edit Post Styles */
.admin-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin: 10px 0 5px;
    color: #558B2F;
    font-weight: bold;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form textarea {
    height: 300px;
    resize: vertical;
}


/*blog php
/* Blog Page Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination .btn {
    margin: 5px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    grid-column: 1 / -1;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}