.main {
  padding-top: 100px; /* adjust depending on your header height */
}

.header {
  background-color: #1655ba;
}


h1.myh1 {
  font-weight: 900;
}

p.norm {
  all: unset;           /* removes all inherited and UA styles */
  display: block;       /* re-enable block behavior */
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  text-transform: none;    
  font-weight: 400;  
  margin-bottom: 15px;         
}



/*-----------------------------------------------------------------------------*/
/*---------------------------SIDE BAR -----------------------------------------*/
/*-----------------------------------------------------------------------------*/

/* Sidebar Base */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #172f74; /* deep blue tone */
  color: #fff;
  transition: left 0.3s ease;
  z-index: 999;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  padding-top: 70px; /* offset for header */
}

/* Sidebar visible state */
.sidebar.active {
  left: 0;
}

/* Header inside sidebar */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h5 {
  margin: 0;
  font-size: 18px;
  color: #ffe279;
}

/* Menu items */
.sidebar-menu li {
  padding: 10px 20px;
}

.sidebar-menu li a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: 0.3s;
}

.sidebar-menu li a:hover {
  color: #10100f !important;
  transform: translateX(5px);
}

.sidebar-menu {
  font-size: 0.95rem;
}

/* Toggle Button */
.sidebar-toggle {
  position: fixed;
  top: 25px;
  left: 15px;
  z-index: 1000;
  background-color: #172f74;
  border: none;
  color: white;
  border-radius: 6px;
  padding: 8px 12px;
}

.sidebar-toggle:hover {
  background-color: #ffe279;
  color: #172f74;
}

/* ✅ Mobile Adjustments */
@media (max-width: 768px) {
  .sidebar {
    width: 220px; /* Slightly wider for touch comfort */
    padding-top: 80px; /* Ensures menu doesn’t overlap header */
  }

  .sidebar-toggle {
    top: 20px;
    left: 10px;
    transform: none; /* Keep button aligned nicely with logo */
    padding: 6px 10px;
  }

  .main {
    padding-top: 50px; /* Reduced but never negative */
  }
}

/*-----------------------------------------------------------------------------*/
/*--------------------------- LESSON ITEM -------------------------------------*/
/*-----------------------------------------------------------------------------*/

.lesson-item .btn {
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 0.8rem;
  transition: all 0.2s ease-in-out;
}

.lesson-item .btn:hover {
  background-color: #f6c45f !important;
  color: white;
}

.lesson-item .fw-semibold {
  color: #dbe1e8;
  letter-spacing: 0.5px;
}

/*-----------------------------------------------------------------------------*/
/*--------------------------- CARD OUTLINE -------------------------------------*/
/*-----------------------------------------------------------------------------*/

/* =========================
       MODERN CARD DESIGN
  ==========================*/

 .card-course {
  border: none;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

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

/* Image styling */
.card-course img {
  margin:auto;
  object-fit: contain;
  height: auto;
  max-height: 230px;
  border-bottom: 1px solid #eee;
}

/* Body */
.card-course .card-body {
  padding: 18px 20px;
}

/* Title */
.card-course .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 0.7rem;
}

/* Text mini label */
.card-course .text-mini {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #6c757d;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

/* Buttons */
.card-course .btn {
  border-radius: 50px;
  font-size: 0.85rem;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.card-course .btn:hover {
  transform: scale(1.05);
}

/* Gradient hover strip */
.card-course::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* FIXED: apply hover effect to .card-course, not .card */
.card-course:hover::before {
  opacity: 1;
}

/*-----------------------------------------------------------------------------*/
/*--------------------------- TOP GROUP BG-------------------------------------*/
/*-----------------------------------------------------------------------------*/
.bg-cobra {
  background: #61ff81 !important; 
  background: linear-gradient(135deg, #98ff61, #26d729) !important; 
  color: #1c1c1c !important;
}

.bg-eagle{
  background: #FF6F61 !important; /* Coral Red */
  background: linear-gradient(135deg, #FF6F61, #D7263D) !important; /* Gradient from Coral Red to Dark Red */
  color: #ffffff !important;
}

.bg-instructor{
  background: #faff61 !important; /* Coral Red */
  background: linear-gradient(135deg, #ffd261, #ced726) !important; /* Gradient from Coral Red to Dark Red */
  color: #0a256a !important;
  font-weight: 700 !important;
}


/*-----------------------------------------------------------------------------*/
/*--------------------------- VIDEO  ------------------------------------------*/
/*-----------------------------------------------------------------------------*/
.video-wrapper {
  border: 3px solid #303030; 
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note {
    background-color: #e7f3fe;
    border-left: 6px solid #2196F3;
    padding: 10px 15px;
    margin: 15px 0;
}

.sidebar {
  max-height: 100vh;       /* Full viewport height */
  overflow-y: auto;        /* Enable vertical scroll */
  scrollbar-width: thin;   /* Slim scrollbar (Firefox) */
  scrollbar-color: #ccc transparent;
}

/* Optional: make the scrollbar look cleaner */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

/* Slightly tighter spacing for compact look */
.sidebar-menu li {
  margin-bottom: 0.8rem;
}
.lesson-item .fw-semibold {
  font-size: 0.95rem;
}
.lesson-item .btn {
  padding: 2px 8px;
  font-size: 0.8rem;
}

.heroTitle, h1.heroTitle, .heroTitle * {
  text-decoration: none !important;
  font-size: 1.5rem !important;
}
/* QUICK ACCESS CARD */
.quick-access-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.07);
  border: 1px solid #e8ecf2;
  max-width: 400px;
  transition: transform .2s ease;
}

.quick-access-card:hover {
  transform: translateY(-3px);
}

.qa-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #0d47a1;
}

.qa-subtitle {
  font-size: 0.9rem;
  color: #6c7a91;
  margin-bottom: 18px;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qa-item {
  display: flex;
  gap: 10px;
  align-items: center;

  background: #f7faff;
  padding: 14px 16px;
  border-radius: 12px;

  text-decoration: none;
  color: #0a2a6c;
  font-weight: 500;
  border: 1px solid #e2e8f5;

  transition: background .2s, transform .2s, box-shadow .2s;
}

.qa-item i {
  font-size: 1.2rem;
  color: #1655ba;
}

.qa-item:hover {
  background: #e8f1ff;
  transform: translateX(4px);
  box-shadow: 0px 4px 12px rgba(22, 85, 186, 0.15);
}


/*-----------------------------------------------------------------------------*/
/*--------------------------- INSTRUCTOR PAGE  --------------------------------*/
/*-----------------------------------------------------------------------------*/


.research-timeline li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
}

.research-timeline .week {
  min-width: 70px;
  font-weight: 600;
  color: #0d6efd;
}



.info-panel {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.course-table th {
  font-weight: 600;
  font-size: 0.9rem;
}


.detail-anim {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.25s ease;
}

.collapse.show .detail-anim {
  max-height: 220px;
  opacity: 1;
}

.detail-box {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f1e4;
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.lesson-row {
  cursor: pointer;
}

.lesson-row > td {
  transition: background-color 0.2s ease;
}

.course-table tbody tr.lesson-row:hover > td {
  background-color: #6eb7ff;
  color: #ffffff;
}
.course-table th {
  vertical-align: middle !important;
  text-align: center;
}

.badge-pink {
  background-color: #eb3e94 !important;
  color: #ffffff !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.badge-pink:hover {
  background-color: #ffc6e3 !important;
  color: #313131 !important;
}


.tc{
  text-align: center !important;
}

.hb{
  background-color: #1655BA !important;
  color: white !important;
}

.pbl-img {
  display: block;
  max-width: 160px;
  width: 100%;
  height: auto;
  margin: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}


.pbl-demo-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pbl-demo-media {
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(13, 110, 253, 0.12);
}
.pbl-img-fit {
  object-fit: contain;
  background-color: #f8fafc;
}


.image-preview {
  position: relative;
  cursor: zoom-in;
}

.image-hover-hint {
  position: absolute;
  inset: 0;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 12px;
}

.image-preview:hover .image-hover-hint {
  opacity: 1;
}


.pbl-img-natural {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/*-----------------------------------------------------------------------------*/
/*--------------------------- LOGOUT BUTTON  --------------------------------*/
/*-----------------------------------------------------------------------------*/

.logout-btn {
  color: #282828 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
}

.logout-btn:focus,
.logout-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.logout-btn:hover {
  text-decoration: none !important;
}
