/* ==========================================================================
   campusmitra.css - Styles for WakinSoftwares Learning Management System Page
   ========================================================================== */

:root {
  --badge-bg: #eef2ff;
  --feature-card-shadow: 0 10px 30px rgba(0, 51, 153, 0.05);
}

/* ---- Custom Grid (5 Columns on Desktop) ---- */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* ---- Breadcrumbs ---- */
.breadcrumb-container {
  padding-top: 100px; /* Offset for fixed navbar */
  padding-bottom: 10px;
  background-color: #f8fafc;
}

.breadcrumb {
  margin-bottom: 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* ---- Hero Section ---- */
.lms-hero-section {
  padding: 10px 0 60px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.badge-solution {
  background-color: var(--badge-bg);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.lms-hero-section .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.lms-hero-section .hero-desc {
  color: var(--primary);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}

.lms-hero-section .hero-desc-detail {
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-demo {
  padding: 0.8rem 2.2rem;
  font-weight: 600;
  border-radius: 50px;
}

.btn-pricing {
  padding: 0.8rem 2.2rem;
  font-weight: 600;
  border-radius: 50px;
}

/* Hero Features Grid */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 2.5rem;
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: var(--badge-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.hero-feature-item .feature-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-feature-item .feature-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.hero-feature-item .feature-text span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.hero-illustration-wrapper {
  position: relative;
  width: 100%;
  margin-left: 0;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.lms-dashboard-mockup {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 51, 153, 0.12), 0 10px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lms-dashboard-mockup:hover {
  transform: translateY(-4px) rotateY(-1deg);
  box-shadow: 0 35px 70px rgba(0, 51, 153, 0.16), 0 12px 24px rgba(0, 0, 0, 0.05);
}

.mockup-header {
  background-color: #f8fafc;
  padding: 10px 18px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 31px);
}

.mockup-sidebar {
  width: 175px;
  min-width: 175px;
  background-color: #ffffff;
  border-right: 1px solid #f1f5f9;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
}

.sidebar-logo i {
  font-size: 1.1rem;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-menu li {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar-menu li.active {
  background-color: #f0f5ff;
  color: var(--primary);
}

.sidebar-menu li:hover:not(.active) {
  background-color: #f8fafc;
  color: #0f172a;
}

.mockup-content {
  flex: 1;
  background-color: #f8fafc;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.mockup-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.content-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-text h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.welcome-text span {
  font-size: 0.68rem;
  color: #64748b;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.topbar-actions i {
  cursor: pointer;
  transition: color 0.2s;
}

.topbar-actions i:hover {
  color: var(--primary);
}

.admin-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  padding: 2px 10px 2px 2px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
}

.avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.admin-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f172a;
}

.mockup-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #f1f5f9;
}

.stat-label {
  font-size: 0.62rem;
  color: #64748b;
  display: block;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.trend-up {
  font-size: 0.58rem;
  color: #22c55e;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.mockup-split-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.split-col {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.split-col h6 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
}

.activity-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.72rem;
}

.activity-icon.blue { background-color: #eff6ff; color: #3b82f6; }
.activity-icon.purple { background-color: #faf5ff; color: #a855f7; }
.activity-icon.green { background-color: #ecfdf5; color: #10b981; }
.activity-icon.orange { background-color: #fff7ed; color: #f97316; }

.activity-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.activity-info strong {
  color: #334155;
  font-weight: 600;
  font-size: 0.68rem;
}

.activity-info span {
  color: #64748b;
  font-size: 0.6rem;
}

.activity-time {
  color: #94a3b8;
  font-size: 0.58rem;
}

.progress-chart-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-svg-chart {
  width: 100%;
  height: auto;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 0.55rem;
  color: #94a3b8;
}

.top-courses-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.course-progress-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
}

.course-meta span {
  color: #475569;
  font-weight: 500;
}

.course-meta strong {
  color: #0f172a;
  font-weight: 600;
}

.progress-bar-bg {
  height: 5px;
  background-color: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 10px;
}



/* ---- Features Section ---- */
.lms-features-section {
  background-color: #ffffff;
  padding: 50px 0;
}

.lms-section-header {
  margin-bottom: 3.5rem;
}

.lms-section-tag {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.lms-features-section .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.lms-features-section .section-subtitle {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 2.25rem 1.25rem;
  height: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--feature-card-shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 51, 153, 0.15);
  box-shadow: 0 15px 35px rgba(0, 51, 153, 0.08);
}

.feature-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-color: #f0f5ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-card-desc {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---- Why Choose & Perfect For Section ---- */
.lms-why-section {
  padding: 50px 0;
  background-color: #f8fafc;
}

.why-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
}

.why-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0;
}

.why-checklist li i {
  color: var(--primary);
  font-size: 1.2rem;
}

.why-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-brochure {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0;
}

.btn-brochure:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.why-illustration-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.lms-girl-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
  animation: floatLmsWhy 3.5s ease-in-out infinite alternate;
}

@keyframes floatLmsWhy {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.perfect-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.perfect-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.perfect-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 51, 153, 0.08);
  transform: translateY(-2px);
}

.perfect-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  background-color: #f0f5ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.perfect-card-text {
  display: flex;
  flex-direction: column;
}

.perfect-card-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.perfect-card-text p {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---- Responsive CSS ---- */
@media (max-width: 991.98px) {
  .breadcrumb-container {
    padding-top: 85px;
  }
  
  .lms-hero-section {
    text-align: center;
    padding-bottom: 40px;
  }
  
  .lms-hero-section .hero-desc-detail {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 550px;
    margin: 2rem auto 0;
  }
  
  .hero-illustration-wrapper {
    margin-top: 2.5rem;
    max-width: 640px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }



  
  .lms-why-section {
    text-align: center;
  }
  
  .why-checklist {
    max-width: 320px;
    margin: 0 auto 2rem;
    text-align: left;
  }
  
  .why-buttons {
    justify-content: center;
    margin-bottom: 3rem;
  }
  
  .why-illustration-wrapper {
    max-width: 320px;
    margin: 0 auto 3rem;
  }
  
  .perfect-cards-stack {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .hero-illustration-wrapper {
    width: 100%;
    margin-left: 0;
    max-width: none;
  }

  .lms-dashboard-mockup {
    height: 420px;
  }



  .mockup-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .stat-card {
    padding: 6px 8px;
  }

  .stat-value {
    font-size: 0.78rem;
    font-weight: 700;
  }

  .trend-up {
    font-size: 0.5rem;
  }

  .mockup-split-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .split-col {
    padding: 10px;
  }

  .progress-svg-chart {
    height: 60px;
  }
}

/* ---- Medium Screens (Laptops) ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .mockup-sidebar {
    width: 140px;
    min-width: 140px;
  }
  .sidebar-logo span {
    font-size: 0.65rem;
  }
  .mockup-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .mockup-split-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lms-dashboard-mockup {
    height: 480px;
  }
}

/* ---- Small Screens (Tablets / Portrait Mobiles) ---- */
@media (max-width: 767.98px) {
  .mockup-body {
    position: relative;
  }

  .mockup-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 175px;
    min-width: 175px;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 18px 12px;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  
  .mockup-sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }
  
  .mockup-sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-logo .logo-text,
  .sidebar-menu .menu-text {
    display: inline !important;
  }
  
  .sidebar-logo {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .sidebar-logo i {
    font-size: 1.1rem;
  }

  .sidebar-menu {
    width: 100%;
    align-items: flex-start;
    gap: 4px;
  }

  .sidebar-menu li {
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 8px 12px;
    border-radius: 8px;
  }
  
  .sidebar-menu li i {
    font-size: 0.8rem;
    margin-right: 8px;
  }
}

@media (max-width: 479.98px) {
  .hero-features-grid {
    grid-template-columns: 1fr;
  }
}
