/* Global Animations */
html {
  scroll-behavior: smooth;
}

/* Transition for all interactive elements */
a, button, .btn, .card {
  transition: all 0.3s ease-in-out;
}

/* Hover Scale Utility */
.hover-scale:hover {
  transform: scale(1.03);
}

/* Card Hover Effect - Global */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* Button Hover Effect - Global */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link {
  font-size: 1.1rem;
  /* Adjust as needed (1rem = 16px by default) */
  font-weight: 500;
  /* Optional: makes it a bit bolder */
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
}

.navbar-top {
  background-color: #035642;
  /* light green */
  font-size: 14px;
}

.navbar-main {
  background-color: #035642;
  /* Bootstrap green */
}

.navbar-main .nav-link,
.navbar-main .navbar-brand {
  color: white;
}

.navbar-main .nav-link:hover {
  color: #ffc107;
}

.whatsapp-btn {
  background-color: #212529;
  color: white;
  border-radius: 25px;
  padding: 5px 15px;
}

.whatsapp-btn:hover {
  background-color: #343a40;
}

.bg-footer {
  background: #022515;
}

.bg-f2 {
  background: rgb(46, 49, 46);
}

.bgtn {
  background: #078d4e
}

body {
  overflow-x: hidden;
}

.sidebar {
  background-color: #343a40;
  color: white;
  min-height: 100vh;
}

/* Matching Admin Dashboard Sidebar Styles */
/* Matching Admin Dashboard Sidebar Styles */
.sidebar .nav-link {
  font-weight: 500;
  color: #fff !important;
  /* Force white to match Admin */
  padding: 10px 15px;
  border-radius: 5px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sidebar .nav-link i {
  margin-right: 10px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffc107 !important;
}

/* Legacy support if 'a' tag used without nav-link class */
.sidebar a:not(.nav-link) {
  color: #adb5bd;
  padding: 10px 20px;
  display: block;
}

.sidebar-logo {
  font-size: 1.5rem;
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid #495057;
  background-color: #212529;
}

@media (min-width: 768px) {
  #sidebarMenu {
    display: block !important;
  }
}

#editor {
  background-color: white;
  height: 200px;
}

.hover-shadow:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  transition: 0.3s ease;
}

.hero {
  background: url('https://images.unsplash.com/photo-1581090700227-1e8e93ff6a8e') no-repeat center center/cover;
  color: white;
  padding: 100px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.course-card:hover {
  transform: scale(1.02);
  transition: 0.3s;
}

.footer {
  background: #343a40;
  color: white;
  padding: 40px 0;
}

.nav-link-lg {
  font-size: 1.1rem;
  /* or 18px */
  font-weight: 500;
}

.sidebar {
  height: 100vh;
  overflow-y: auto;
  background: #f8f9fa;
}

.content {
  padding: 20px;
}

.unit-btn {
  cursor: pointer;
  padding: 8px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 5px;
}

.unit-btn:hover {
  background-color: #e9ecef;
}

.course-title {
  font-size: 1.2rem;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 5px;
}

/* Tab Nav Styling */
.nav-tabs .nav-link {
  font-weight: 500;
  color: #0d6efd;
  border: 1px solid transparent;
  border-radius: 0.375rem 0.375rem 0 0;
}

.nav-tabs .nav-link.active {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd #0d6efd #fff;
}

/* Tab Pane Styling */
.tab-content>.tab-pane {
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 0 0 0.375rem 0.375rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  min-height: 400px;
}

/* Video and PDF viewer container */
#content-video,
#pdf-frame {
  border-radius: 0.5rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Course title heading */
#content-title {
  font-weight: bold;
  color: #343a40;
  margin-bottom: 1rem;
}

/* Description box scroll */
#content-description {
  font-size: 1rem;
  color: #212529;
  background-color: #f8f9fa;
}

/* Responsive iframe for PDF */
#pdf-viewer iframe {
  border-radius: 0.5rem;
}

#editor-container {
  height: 200px;
  background: #fff;
}

.mentor-card img {
  border: 3px solid #ddd;
}

.profile-card {
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
}

.profile-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.social-icons a {
  margin: 0 8px;
  font-size: 20px;
}

.course-card {
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.course-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Custom Admin Panel Layout Adjustments */
@media (min-width: 992px) {
  #sidebarMenu {
    width: 280px !important;
    flex: 0 0 auto !important;
    max-width: 280px !important;
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
  }

  #sidebarMenu~main {
    margin-left: 280px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }
}