body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    display:flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f4f4f9;
    color: #333;
}
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
}
header img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    border-radius: 50%;
}
nav a {
    margin: 0 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.pengurus{
    font-weight : bold;
    color: #007bff;
}
/* Styles for submenu dropdown */
.dropdown-menu {
    background-color: #007bff; /* blue background */
}

.dropdown-item {
    color: black; /* black text */
}

.dropdown-item:hover {
    color: white; /* white text on hover */
    background-color: #0056b3; /* darker blue on hover */
    border-color: black;
}
/* CSS for Pengurus Carousel */
#pengurusCarousel {
background-color: #f8f9fa;
padding: 20px;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-item {
padding: 20px;
text-align: center;
}

.carousel-item img {
border: 2px solid #007bff; /* Border color */
transition: transform 0.3s; /* Smooth transition effect when hovering */
}

.carousel-item img:hover {
transform: scale(1.05); /* Enlarge image when hovered */
}

.carousel-item img {
border: 3px solid #007bff; /* Border biru */
border-radius: 0px; /* Sudut melengkung */
margin-bottom: 15px;
margin: 0 auto;
object-fit: cover !important; /* Pastikan gambar tidak terdistorsi */
width: 100px !important; /* Ukuran tetap */
height: 100px !important; /* Ukuran tetap */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Efek bayangan */
}
.carousel-item h3 {
font-size: 24px;
font-weight: 700;
color: #333;
margin-top: 15px; /* Jarak antara foto dan nama */
}

.carousel-item h5 {
font-size: 18px;
color: #6c757d;
margin-bottom: 15px;
}

.carousel-item p {
font-size: 16px;
color: #555;
line-height: 1.6;
text-align: justify;
max-width: 600px; /* Batas lebar paragraf */
margin: 0 auto; /* Rata tengah paragraf */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
background-color: #007bff;
border-radius: 50%;
padding: 10px;
}

.carousel-control-prev,
.carousel-control-next {
width: 5%;
}

.carousel-indicators li {
background-color: #007bff;
border-radius: 50%;
width: 10px;
height: 10px;
}

.carousel-indicators .active {
background-color: #0056b3;
}

footer {
    margin: 30px 0;
    color: #6c757d;
}


@media (max-width: 600px) {
    .periods {
        flex-direction: column;
        align-items: center;
    }
    .navbar-toggler {
        border: none;
        outline: none;
    }
    .navbar-toggler-icon {
        color: white;
    }
    .carousel-inner img {
height: 50vh; /* Sesuaikan tinggi banner untuk mobile */
    }
    .period-timer-container {
        margin-top: 15px;
    }
    .period-timer-container h3 {
        font-size: 1.4rem;
    }
    .timer-display {
        font-size: 1.2rem;
        padding: 10px 20px;
        gap: 10px;
        flex-wrap: wrap !important;
        overflow-x: hidden !important;
    }
    .time-box {
        min-width: 60px;
        padding: 8px 15px;
    }
    .time-value {
        font-size: 1.4rem;
    }
    .time-label {
        font-size: 0.85rem;
    }
}

/* Added styles for kementerian member cards scrolling */
.members {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}
.member-card {
  background-color: #2f4f6f;
  border-radius: 15px;
  padding: 1rem;
  width: 180px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.member-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  z-index: 10;
}
.member-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 0.75rem;
}
.member-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.member-role {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.period-timer-container {
  font-family: 'Montserrat', sans-serif;
  color: #007bff;
  text-align: center;
  margin-top: 20px;
}

.period-timer-container h3 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.timer-display {
  font-weight: 700;
  font-size: 1.5rem;
  background-color: #007bff;
  border: 2px solid #007bff;
  border-radius: 10px;
  padding: 15px 30px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
  user-select: none;
  gap: 15px;
  display: flex;
  justify-content: center;
}

.timer-display span {
  margin: 0 10px;
  min-width: 50px;
  display: inline-block;
}

.time-box {
  background-color: #e7f1ff;
  border: 2px solid #007bff;
  border-radius: 8px;
  padding: 10px 20px;
  min-width: 80px;
  text-align: center;
  font-weight: 700;
  color: #007bff;
  user-select: none;
}

.time-value {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.time-label {
  font-size: 1rem;
  font-weight: 600;
  color: #0056b3;
}
