/* --- Global Font & Background --- */
body {
  background-color: #f8f9fa;
  font-family: 'Poppins', sans-serif;
  animation: fadeInPage 1s ease-in;
}

/* --- Fade-in Animation for Whole Page --- */
@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Navbar Gradient & Animation --- */
.navbar {
  background: linear-gradient(to right, #002B7F, #FF0000);
  padding: 8px 30px;
  animation: fadeDown 0.8s ease-in-out;
}

/* Navbar Fade-down Animation */
@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar Layout Fixing */
.navbar .container-fluid {
  display: flex;
  align-items: center; /* tengah menegak */
  justify-content: space-between;
}

.navbar-brand strong {
  color: #fff;
  font-size: 1.3rem;
}

/* --- Navbar Link Style --- */
.navbar-nav {
  margin-left: auto !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  font-size: 0.9rem !important;
}

.navbar-nav .nav-link:hover {
  color: #66B2FF !important; /* hover warna emas */
  transform: translateY(-2px);
}

/* --- Dropdown Menu --- */
.navbar-nav .dropdown-menu {
  background-color: #731f57;
  border: none;
  border-radius: 10px;
  animation: dropdownFade 0.3s ease-in-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: #fff;
  transition: background 0.3s;
}

.dropdown-item:hover {
  background-color: white;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  align-items: center;
  margin-left: 10px; 
  margin-right: 25px; 
}

.social-icons a {
  color: white;
  font-size: 22px; 
  margin-right: 15px; 
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.social-icons a:last-child {
  margin-right: 0;
}

.social-icons a.fb:hover,
.social-icons a.yt:hover {
  color: #74376c; 
  transform: scale(1.2);
}

/* --- Search Bar --- */
form[role="search"] input {
  border-radius: 20px;
}

form[role="search"] button {
  border-radius: 50%;
  background-color: white;
  color: red;
  border: none;
  transition: 0.3s;
}

form[role="search"] button:hover {
  background-color: white;
  color: #002B7F;
}

/* --- Card --- */
.card {
  border-radius: 15px;
}

.card p {
  font-size: 1rem;
}

/* --- Sticky Footer --- */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
}

/* --- Footer Gradient --- */
footer {
  background: linear-gradient(90deg, #004AAD, #D7263D);
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 16;
}