/* Global Styles for Dashboard */
body {
  background-color: #f4f6f9;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* Dashboard Card */
.dashboard-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 20px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 51, 102, 0.1);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 51, 102, 0.2);
  background-color: #e9f2fb;
}

.dashboard-card h5 {
  color: #003366;
  font-weight: 600;
  font-size: 1.2rem;
}

.dashboard-card i {
  color: #003366;
  margin-bottom: 15px;
}

/* Hover effect for dashboard cards */
.dashboard-card:hover h5 {
  color: #003366;
}

/* Admin Header */
.admin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-header h2 {
  color: #003366;
  font-size: 2rem;
  font-weight: bold;
  margin: 2rem;
}

.admin-header a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  font-size: 1.2rem;
}

.admin-header a:hover {
  color: #3f3fd4;
  text-decoration: underline;
}

/* Dashboard Main Section */
.dashboard-container {
  margin-top: 2rem;
}

.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.dashboard-cards .card {
  width: 100%;
  max-width: 250px;
  flex: 1;
  margin-bottom: 2rem;
  border-radius: 10px;
}

.hero-slide {
  position: relative;
  height: 50vh;
  background-size: cover;
  background-position: center;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 70, 126, 0.9), rgba(0, 153, 204, 0.4));
  z-index: 1;
}

.carousel-caption {
  position: relative;
  z-index: 2;
}

.carousel-caption h1,
.carousel-caption p {
  color: #fff;
}

.carousel-caption .btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  text-transform: uppercase;
}

.animate-slide {
  animation: fadeInUp 1s ease-out;
}

.animate-btn {
  animation: bounceInUp 1.5s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  60% {
    opacity: 1;
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Courses Section */
#courses {
  background-color: #f9f9f9;
}

.section-title {
  font-size: 2.5rem;
  color: #003366;
  font-weight: bold;
}

.section-description {
  font-size: 1.1rem;
  color: #666;
}

.course-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.course-card i {
  color: #00467e;
}

.course-card h5 {
  font-weight: bold;
  color: #333;
  margin: 20px 0;
}

.course-card p {
  color: #777;
  margin-bottom: 20px;
}

.course-card .btn {
  padding: 10px 25px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.course-card .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.course-card .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  .course-card i {
    font-size: 2.5rem;
  }
}

/* Feature cards */
.cardcontainer {
  display: grid;
}

.feature-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card i {
  color: #007bff;
}

.feature-card h5 {
  font-weight: bold;
  color: #333;
}

.feature-card p {
  color: #777;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
  .feature-card i {
    font-size: 2.5rem;
  }
}
/* Highlight the active link */
.navbar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}




/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  .dashboard-cards {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-card {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .dashboard-card {
    width: 100%;
  }

  .admin-header h2 {
    font-size: 1.5rem;
  }

  .admin-footer {
    font-size: 0.9rem;
  }
}
@media (min-width: 768px) {
  .fixed-bottom-desktop {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1030;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 60px; /* Prevent content hidden by mobile nav */
  }
}

