* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f7f9fc;
  color: #333;
  overflow-x: hidden;
  height: 100%;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #354a5f;
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  gap: 20px;
}

.contact-info a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.social-icons a {
  color: white;
  font-size: 18px;
  margin-left: 20px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ff8c00;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 10px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ff8c00;
}

/* Submenu */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1d4e89;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  width: 200px;
}

nav ul li:hover > ul {
  display: block;
}

nav ul li ul li a {
  padding: 12px 20px;
  font-size: 14px;
  background-color: transparent;
}

nav ul li ul li a:hover {
  background-color: #ff8c00;
}

/* Hero Section */
.swiper-container {
  width: 100%;
  height: 500px;
  margin-top: 0px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: url('https://tms2.navr.my.id/background2.jpg') no-repeat center center fixed;
  background-size: cover !important;
  background-color: transparent;
  color: white;
  text-align: center;
  font-size: 2rem;
  position: relative;
  padding: 0px;
}

.slide-background1 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px; 
  width:100%;
  background: url('https://tms2.navr.my.id/background1.jpg') no-repeat center center fixed;
  background-size: cover !important;
  background-color: transparent;
  color: white;
  text-align: center;
  font-size: 2rem;
  position: relative;
  padding: 0px;
}

.swiper-button-next, .swiper-button-prev {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 120%;
  padding: 30px;
}

/* Content Sections */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  color: #1d4e89;
  margin-bottom: 20px;
}

.section p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.tabs button {
  background-color: #f7f9fc;
  color: #1d4e89;
  padding: 12px 25px;
  font-size: 16px;
  border: transparent;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.tabs button:hover {
  background-color: transparent;
  transform: scale(1.1);
}

.tabs button.active-tab {
  font-weight: bold;
  color: #ff8c00;
  transform: scale(1.1);
}

.tab-content {
  display: none;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #333;
}

.tab-content.active {
  display: block;
}

.recent-updates {
  display: flex;
  justify-content: space-between;
  gap: 0px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.recent-update {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 32%;
  transition: transform 0.3s ease;
  text-align: center;
}

.recent-update:hover {
  transform: translateY(-10px);
}

.recent-update img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.recent-update h3 {
  margin-top: 20px;
  font-size: 1.5rem;
  color: #1d4e89;
}

.recent-update p {
  font-size: 1rem;
  color: #555;
  margin-top: 10px;
}

/* Modern Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 16px;
  border: 2px solid transparent;
  border-radius: 5px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-icon {
  margin-right: 10px;
}

/* Footer */
footer {
  background-color: #354a5f;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

footer .social-icons a {
  font-size: 20px;
  margin: 0 15px;
  transition: color 0.3s;
}

footer .social-icons a:hover {
  color: #ff8c00;
}

footer .contact-info a {
  color: white;
  font-size: 16px;
  margin: 10px 0;
  text-decoration: none;
  transition: color 0.3s;
}

footer .contact-info a:hover {
  color: #ff8c00;
}

/* Chat Widget */
#chat-widget, #chat-widget-entry {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#chat-widget {
  display: none;
  width: 120px;
}

#chat-widget-entry {
  display: none;
  width: 300px;
}

#chat-widget-entry button {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
}

#close-chat {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  font-size: 12px;
  color: #ff6347;
  cursor: pointer;
  padding: 5px;
  font-weight: bold;
  transition: color 0.3s ease;
}

#close-chat:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #ff4500;
}

.user-message { text-align: right; margin-bottom: 10px; }
.bot-message { text-align: left; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .recent-updates { flex-direction: column; align-items: center; }
  .recent-update { width: 80%; margin-bottom: 30px; }
}
