    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Myriad Pro', sans-serif;
      background-color: #f9f9f9;
    }

    header {
      background-color: white;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      padding: 10px 20px;
    }

    .logo img {
      height: 70px;
    }

    .menu-toggle {
      display: none;
      font-size: 28px;
      cursor: pointer;
    }

    .nav-links {
        list-style: none;
        display: flex;
        gap: 15px;
        align-items: center;
      }
      
      .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
        padding: 8px 12px;
        display: inline-block;
      }
      
      /* Atur dropdown utama */
      .dropdown {
        position: relative;
      }
      
      .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        flex-direction: column;
        min-width: 180px;
      }
      
      /* Hover aktifkan dropdown utama */
      .dropdown:hover .dropdown-content {
        display: flex;
      }
      
      /* Submenu seperti 'Pesantren' */
      .dropdown-sub {
        position: relative;
      }
      
      /* Ini akan muncul di samping kanan */
      .dropdown-sub-content {
        display: none;
        position: absolute;
        top: 0;
        left: 100%;
        z-index: 100;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        flex-direction: column;
        min-width: 180px;
      }
      
      /* Hover aktifkan submenu */
      .dropdown-sub:hover .dropdown-sub-content {
        display: flex;
      }
      
      /* Gaya link di dropdown */
      .dropdown-content a,
      .dropdown-sub-content a {
        padding: 10px 16px;
        text-decoration: none;
        color: hsl(0, 0%, 100%);
        display: block;
        font-weight: 500;
      }
      
      .dropdown-content a:hover,
      .dropdown-sub-content a:hover {
        background-color: #e8f5e9;
      }
      
      /* Login menu */
      .login-menu {
        position: relative;
      }
      
      .login-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 10px;
        z-index: 100;
      }
      
      .login-menu:hover .login-dropdown {
        display: block;
      }
      

    .login-menu:hover .login-dropdown {
      display: block;
    }

    .login-box {
      width: 250px;
    }

    .login-box h4 {
      margin-bottom: 10px;
    }

    .form-group {
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .form-group input {
      width: 100%;
      padding: 8px;
    }

    .login-btn {
      width: 100%;
      padding: 10px;
      background-color: #94bf23;
      color: white;
      border: none;
      cursor: pointer;
    }

    .forgot-pw {
      font-size: 12px;
      display: block;
      margin-top: 5px;
      text-align: right;
      color: #555;
    }
    .slider {
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
      }
      
      .slide {
        display: none;
        width: 100%;
        height: auto;
      }
      
      .slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
      }
      
      .slide iframe {
        width: 100%;
        height: 600px;
        border: none;
      }
      
      @media (max-width: 768px) {
        .slider {
          height: 150px; /* Lebih kecil di mobile */
        }
      
        .slide img,
        .slide iframe {
          height: 100%;
          object-fit: cover;
        }
      }
      

    iframe {
      width: 100%;
      height: 450px;
      border: none;
    }

    /* === Responsive === */
    @media (max-width: 768px) {
      .menu-toggle {
        display: block;
        margin-left: auto;
      }

      .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        padding: 10px 0;
      }

      .nav-links.active {
        display: flex;
      }

      .nav-links li {
        width: 100%;
        padding: 10px;
        border-bottom: 1px solid #ccc;
      }

      .nav-links .dropdown-content,
      .nav-links .dropdown-sub-content {
        position: relative;
      }

      iframe {
        height: auto;
        aspect-ratio: 4/3;
      }
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
      }
    
      .info-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 25px;
        text-align: center;
        border-radius: 10px;
        text-decoration: none;
        color: white;
        transition: transform 0.2s ease;
      }
    
      .info-box:hover {
        transform: scale(1.03);
      }
    
      .info-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
      }
    
      .info-box h3 {
        font-size: 1.1rem;
        font-weight: bold;
        text-decoration: underline;
      }
      body {
        margin: 0;
        font-family: 'Montserrat', sans-serif;
        background-color: #f7f7f7;
      }
      
  /* === Berita Utama + Grid === */
.news-section {
    padding: 40px 40px;
  }
  
  .news-card {
    display: flex;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: none;
    margin: 0 auto 40px;
  }
  
  .news-image {
    flex: 1.2;
  }
  
  .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .news-content {
    flex: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .news-title {
    color: #2e7d32;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .news-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
  }
  
  .news-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
  }
  
  .news-link {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
  }
  
  .news-link:hover {
    text-decoration: underline;
  }
  
  /* === Grid Berita Bawah === */
  .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 0 40px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }
  
  .grid-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
  }
  
  .grid-card:hover {
    transform: translateY(-4px);
  }
  
  .grid-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .grid-content {
    padding: 20px;
  }
  
  .grid-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 10px;
  }
  
  .grid-content p {
    color: #555;
    font-size: 15px;
  }
  
  /* Responsive Layout Grid */
  @media (max-width: 768px) {
    .news-card {
      flex-direction: column;
    }
  
    .news-content {
      padding: 20px;
    }
  
    .news-grid {
      grid-template-columns: 1fr;
      padding: 0 20px;
    }
      
}  

/*section 3*/
.news-section {
    padding: 40px 40px;
  }
  
  .news-card {
    display: flex;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
    margin: 0 auto 40px;
  }
  
  .news-content {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .news-title {
    color: #2e7d32;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
  }
  
  .news-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
  }
  
  .news-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
  }
  
  .news-link {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
  }
  
  .news-link:hover {
    text-decoration: underline;
  }
  
  .news-image {
    flex: 1;
  }
  
  .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .news-card {
      flex-direction: column;
    }
  
    .news-content {
      padding: 20px;
    }
  
    .news-image img {
      height: 250px;
    }
  }
  
  .berita-lain {
    padding: 40px;
    background-color: #f9f9f9;
  }
  
  .berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
  }
  
  .berita-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
  }
  
  .berita-card:hover {
    transform: translateY(-4px);
  }
  
  .berita-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .berita-info {
    padding: 20px;
  }
  
  .berita-info h3 {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
  }
  
  .berita-info p {
    font-size: 15px;
    color: #555;
  }
  
  .berita-button-wrapper {
    text-align: center;
  }
  
  .berita-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4a5c3f;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }
  
  .berita-button:hover {
    background-color: #3b4d34;
  }
  
  /* Responsif */
  @media (max-width: 768px) {
    .berita-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .footer {
    background: linear-gradient(to right, #0f5c0f, #58d14e);
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-size: 16px;
    font-weight: 400;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }

  /* bagian BERITA*/
  .main-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  padding: 0 40px;
}

.news-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.news-item:hover {
  transform: translateY(-4px);
}

.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-item h2 {
  font-size: 18px;
  padding: 16px;
  color: #2e7d32;
}

.news-item p {
  padding: 0 16px 16px;
  color: #555;
  font-size: 15px;
}

.news-item a {
  padding: 0 16px 16px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.news-item a:hover {
  text-decoration: underline;
}

.trending {
  padding: 20px 40px;
  background-color: #f0f0f0;
}

.trending h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.trending-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

