/* ====================================================================
   BIONUL EDTECH PLATFORM - HOME PAGE STYLES
   css/home.css (Dedicated to index.html)
   ==================================================================== */

/* --- Student Greeting --- */
.student-greeting-section {
  padding: 14px 2px 18px 2px;
}

.student-greeting-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 4px;
}

.student-highlight-name {
  color: var(--primary);
}

.student-greeting-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Continue Learning Hero Card --- */
.hero-learn-card {
  background: var(--hero-card-gradient);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  color: #FFFFFF;
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.hero-learn-tag {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.hero-learn-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  line-height: 1.2;
}

.hero-learn-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 18px;
}

.hero-progress-wrapper {
  margin-bottom: 4px;
}

.hero-progress-bar-bg {
  width: 100%;
  max-width: 220px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.hero-progress-bar-fill {
  height: 100%;
  background-color: #FFFFFF;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.hero-progress-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-progress-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
}

.hero-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
  text-decoration: none;
}

.hero-arrow-btn:hover {
  transform: scale(1.08);
}

.hero-arrow-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-learn-illustration {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* --- Section Head with Link --- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.section-head-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.section-pill-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.section-pill-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-border);
}

/* --- Quick Access 4-Card Section --- */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.qa-card {
  background-color: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 10px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  gap: 4px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.qa-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.qa-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.qa-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.qa-card-live .qa-icon-wrapper { background-color: var(--pastel-red); color: var(--pastel-red-icon); }
.qa-card-notes .qa-icon-wrapper { background-color: var(--pastel-purple); color: var(--pastel-purple-icon); }
.qa-card-tests .qa-icon-wrapper { background-color: var(--pastel-yellow); color: var(--pastel-yellow-icon); }
.qa-card-schedule .qa-icon-wrapper { background-color: var(--pastel-green); color: var(--pastel-green-icon); }

.qa-card-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.qa-card-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* --- Next Live Lecture Card --- */
.live-featured-card {
  background-color: var(--live-card-bg);
  border: 1.5px solid var(--live-card-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.live-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background-color: var(--live-badge-bg);
  color: var(--live-badge-text);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.live-status-pill.live-now {
  background-color: #FEE2E2;
  color: #DC2626;
}

.live-schedule-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.live-lecture-heading {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 8px;
}

.live-instructor-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.live-instructor-text strong {
  color: var(--primary);
  font-weight: 700;
}

.live-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(91, 61, 245, 0.3);
  transition: all var(--transition-fast);
}

.live-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(91, 61, 245, 0.4);
}

.live-clock-graphic {
  width: 105px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Important Announcements Card --- */
.announcement-item-card {
  background-color: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.announcement-item-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.announcement-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: var(--pastel-red);
  color: var(--pastel-red-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.announcement-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.announcement-tag {
  display: inline-block;
  padding: 2px 8px;
  background-color: var(--pastel-red);
  color: var(--pastel-red-icon);
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.announcement-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.announcement-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement-time {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
}

.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #CBD5E1;
}

.dot.active {
  width: 18px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
}

/* --- Continue Learning Course Progress List --- */
.course-progress-card {
  background-color: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.course-progress-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.course-progress-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.course-subject-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #5B3DF5 0%, #4326D8 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-subject-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.course-subject-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-heading);
}

.course-chapter-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.course-progress-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.course-progress-indicator {
  text-align: right;
}

.course-progress-pct {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.mini-progress-track {
  width: 80px;
  height: 5px;
  background-color: var(--surface-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.course-play-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.course-progress-card:hover .course-play-circle-btn {
  transform: scale(1.08);
  background-color: var(--primary);
  color: #FFFFFF;
}

.course-play-circle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-left: 2px;
}
