/* style_index.css */

 /* VARS & RESET */
 :root {
 --primary: #047857;
 --primary-dark: #064e3b;
 --secondary: #34d399;
 --accent: #fcd34d;
 --bg-light: #f0fdf4;
 --bg-dark: #064e3b;
 --bg-card: #ffffff;
 --text-dark: #1f2937;
 --text-light: #f0fdf4;
 --text-muted: #7f8c8d;
 --shadow-subtle: 0 4px 10px rgba(0, 0, 0, 0.1);
 --shadow-strong: 0 8px 20px rgba(0, 0, 0, 0.2);
 --border-radius: 12px;
 }

 body, html { margin: 0; padding: 0; font-family: 'Poppins', sans-serif; background: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
 .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
 h1, h2, h3 { color: var(--primary-dark); font-weight: 600; margin: 0; }
 a { text-decoration: none; color: var(--primary); transition: color 0.3s; }
 a:hover { color: var(--secondary); }

 /* UTILITIES */
 .flex-center { display: flex; align-items: center; justify-content: center; }
 .btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 12px 24px;
 border-radius: 50px;
 font-weight: 600;
 transition: transform 0.3s, box-shadow 0.3s;
 }
 .btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
 .btn-primary { background-color: var(--primary); color: white; }
 .btn-secondary { background-color: var(--secondary); color: white; }

 /* HEADER & NAV */
 .header-main { background: var(--bg-dark); box-shadow: var(--shadow-subtle); position: sticky; top: 0; z-index: 100; }
 .header-content { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
 .logo { 
     display: flex; 
     align-items: center; 
     gap: 10px; 
     cursor: pointer;
     transition: opacity 0.3s;
 }
 .logo:hover {
    opacity: 0.8;
  }
 .logo img { height: 48px; border-radius: 8px; box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
 .logo h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--text-light); }
 .main-nav { display: flex; gap: 20px; }
 .nav-link { color: var(--text-light); font-weight: 500; padding: 10px 0; position: relative; }
 .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--secondary); transition: all 0.3s ease; transform: translateX(-50%); }
 .nav-link:hover::after { width: 100%; }
 .nav-toggle { display: none; cursor: pointer; font-size: 24px; color: var(--text-light); }

 /* HERO & FEATURES */
 .hero { background: linear-gradient(135deg, var(--primary), var(--bg-dark)); color: white; text-align: center; padding: 80px 20px; }
 .hero h1 { color: white; font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 10px; font-weight: 700; letter-spacing: 1px; }
 .hero p { font-size: clamp(0.9rem, 2vw, 1.2rem); max-width: 900px; margin: 0 auto 30px; color: rgba(255, 255, 255, 0.8); }

 .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 0;
  padding-top: 50px;
  position: relative;
  z-index: 1;
 }

 .feature-card {
 background: var(--bg-card);
 padding: 30px;
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-subtle);
 text-align: center;
 transition: transform 0.4s ease, box-shadow 0.4s ease;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 }
 .feature-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-strong); }
 .feature-card .icon { font-size: 40px; color: var(--primary); margin-bottom: 15px; }
 .feature-card h3 { font-size: 1.2rem; }
 .feature-card p { font-size: 0.9rem; color: var(--text-muted); }
 .feature-card .btn { margin-top: 15px; }

 /* --- GALERI SLIDER (Tidak Berubah) --- */
 .gallery-container-wrapper {
  background: var(--bg-light);
  padding: 20px 0 0 0;
 }

 .gallery-slider {
  position: relative;
  width: 98.5%;
  height: 450px;
  overflow: hidden;
  border: 3px solid var(--primary-dark);
  box-shadow: var(--shadow-strong);
 }

 .slider-wrapper { display: flex; height: 100%; transition: transform 0.5s ease-in-out; }
 .slider-wrapper img { min-width: 100%; height: 100%; object-fit: cover; }
 .prev-btn, .next-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5);
  color: white; border: none; padding: 15px; cursor: pointer; z-index: 10;
  transition: background 0.3s; font-size: 1.5rem; line-height: 1; border-radius: 0;
 }
 .prev-btn:hover, .next-btn:hover { background: var(--primary); }
 .prev-btn { left: 0; }
 .next-btn { right: 0; }
 /* --- AKHIR GALERI SLIDER --- */


 /* CONTENT & ASIDE */
 .main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin: 40px 0; }
 .content-section { background: var(--bg-card); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--shadow-subtle); }
 .card-title { font-family: 'Playfair Display', serif; margin-bottom: 20px; border-bottom: 2px solid var(--primary); padding-bottom: 10px; color: var(--primary); }
 .blog-list { list-style: none; padding: 0; margin: 0; }
 .blog-item { padding: 15px 0; border-bottom: 1px dashed #ddd; }
 .blog-item:last-child { border-bottom: none; }
 .blog-item h4 { margin: 0; font-size: 1rem; color: var(--primary-dark); }
 .blog-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

 /* Gaya kursor untuk link pengumuman */
 .announcement-link { cursor: pointer; transition: color 0.3s; }
 .announcement-link:hover { color: var(--secondary); }

 /* --- MODAL STYLE (BARU) --- */
 .modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.7); 
  padding-top: 60px;
 }

 .modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%; 
  max-width: 700px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: animatetop 0.4s;
 }

 @keyframes animatetop {
  from {top: -300px; opacity: 0} 
  to {top: 0; opacity: 1}
 }

 .close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
 }

 .close-btn:hover,
 .close-btn:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
 }

 #modalTitle {
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin-top: 0;
 }
 #modalDate {
  margin-bottom: 20px;
  font-size: 0.9rem;
 }
 #modalContent p { /* Styling konten agar terbaca */
  margin-bottom: 15px;
  line-height: 1.7;
 }
 /* --- AKHIR MODAL STYLE --- */

 /* BLOG CARDS (Tidak Berubah) */
 .blog-cards-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2rem;
 padding: 3rem 0;
 }
 .card {
 background: #fff; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-subtle);
 transition: transform 0.4s ease, box-shadow 0.4s ease; display: flex; flex-direction: column;
 }
 .card:hover { transform: translateY(-12px); box-shadow: var(--shadow-strong); }
 .card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s ease; }
 .card:hover img { transform: scale(1.05); }
 .card-image-wrapper { position: relative; }
 .card-caption {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 0.5rem;
  background: rgba(0, 0, 0, 0.5); color: white; text-align: center; font-size: 0.8rem;
  transition: opacity 0.3s ease; opacity: 0;
 }
 .card:hover .card-caption { opacity: 1; }
 .card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
 .card-content h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin: 0 0 0.5rem; color: var(--primary); line-height: 1.3; }
 .read-more-title { color: var(--primary-dark); }
 .read-more-title:hover { color: var(--secondary); }
 .date { font-size: 0.85rem; color: #7f8c8d; margin-bottom: 1rem; font-weight: 500; }
 .excerpt { font-size: 0.95rem; line-height: 1.6; color: #555; flex-grow: 1; }
 .read-more {
 display: inline-block; margin-top: 1.5rem; color: var(--primary); text-decoration: none;
 font-weight: 600; transition: color 0.3s ease; align-self: flex-start; padding: 0.5rem 0;
 }
 .read-more:hover { color: var(--secondary); text-decoration: underline; }

 /* FOOTER (Tidak Berubah) */
 footer { text-align: center; padding: 15px 20px; color: white; background: var(--bg-dark); }
 footer a { color: var(--secondary); }
 footer p { color: rgba(255, 255, 255, 0.7); }

 /* MOBILE MENU & RESPONSIVE FIXES (Tidak Berubah) */
 @media (max-width: 768px) {
  .header-content { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 20px; }
  .logo { margin: 0; }
  .logo h3 { font-size: 1.2rem; }
  .main-nav {
  display: none; flex-direction: column; width: 100%; text-align: center; padding-top: 10px;
  position: absolute; top: 60px; left: 0; background: var(--bg-dark); box-shadow: var(--shadow-subtle);
  }
  .main-nav.active { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 50px 20px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .gallery-container-wrapper { padding: 0 0 0 0; }
  .gallery-slider { height: 300px; }
  .prev-btn, .next-btn { padding: 10px; font-size: 1.2rem; }
  .feature-grid { margin-top: 0; padding-top: 30px; gap: 15px; }
  .main-grid { grid-template-columns: 1fr; gap: 20px; margin: 20px 0; }
  .content-section { padding: 20px; max-width: 90%; margin: 0 auto; }
  .blog-cards-grid { padding: 0; gap: 20px; }
  .card-content { padding: 1rem; }
  .card-content h3 { font-size: 1.4rem; }
  footer { padding: 10px 20px; }
 }