/* ==========================================================================
   Susrut Medilearn Theme Stylesheet (main.css)
   ========================================================================== */

/* Global Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.py-section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-alt);
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, #3e7fbc 0%, #2d6aa2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-md);
}

/* Typography & Labels */
.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.section-tag.center {
  display: block;
  text-align: center;
}

.section-title {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.max-w-2xl {
  max-width: 680px;
}

.max-w-3xl {
  max-width: 760px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--text-white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(62, 127, 188, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(62, 127, 188, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 15px;
}

.btn-secondary:hover {
  background-color: rgba(62, 127, 188, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 15px;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.btn-text:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-main);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header-top {
  border-bottom: 1px solid var(--bg-alt);
  padding: 16px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-color);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.logo-text strong {
  color: var(--primary-color);
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-alt);
  border-radius: 50px;
  padding: 8px 18px;
  width: 340px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  border-color: rgba(62, 127, 188, 0.4);
  background-color: var(--bg-main);
  box-shadow: 0 0 0 3px rgba(62, 127, 188, 0.1);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
  margin-right: 10px;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--text-dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  background-color: var(--bg-alt);
  color: var(--primary-color);
  padding: 8px;
  border-radius: 50%;
  display: flex;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
}

.info-value {
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}

a.info-value:hover {
  color: var(--primary-color);
}

/* Sub-header Navigation */
.header-nav {
  background-color: var(--bg-nav);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bg-alt);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  padding: 16px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* ==========================================================================
   Hero Section Layout
   ========================================================================== */
.hero-section {
  padding: 80px 0 100px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, #f0f6fd 0%, #ffffff 60%);
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Interactive Category tabs */
.hero-tabs {
  display: flex;
  background-color: var(--bg-alt);
  border-radius: 50px;
  padding: 6px;
  margin-bottom: 24px;
  width: max-content;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.hero-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-tab-btn.active {
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(62, 127, 188, 0.2);
}

/* Filter Pills styling */
.hero-pills-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background-color: var(--bg-alt);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pill:hover, .pill.active {
  background-color: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
}

.pill-outline {
  background-color: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pill-tag {
  background-color: #f1f5f9;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

/* Hero Right Visuals */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-img-main {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}

.stat-card {
  position: absolute;
  bottom: 30px;
  right: -30px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.stat-icon {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 10px;
  border-radius: 12px;
  display: flex;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.cybersight-badge {
  position: absolute;
  top: 30px;
  left: -40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.badge-img {
  height: 24px;
  object-fit: contain;
}

/* ==========================================================================
   LMS Portal Section
   ========================================================================== */
.lms-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.lms-img-wrapper {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lms-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.lms-img-wrapper:hover .lms-img {
  transform: scale(1.03);
}

.lms-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.lms-tab-item {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.lms-tab-header {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.tab-index {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-light);
}

.lms-tab-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.lms-tab-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lms-tab-body p {
  padding-top: 10px;
  padding-left: 32px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Active tab state */
.lms-tab-item.active {
  border-color: var(--primary-color);
}

.lms-tab-item.active .lms-tab-header h3 {
  color: var(--primary-color);
}

.lms-tab-item.active .lms-tab-body {
  max-height: 120px;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.about-content .section-desc {
  margin-bottom: 20px;
}

.about-cta {
  margin-top: 30px;
}

.about-img-container {
  position: relative;
  width: 100%;
}

.about-img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-stats-bubble {
  position: absolute;
  bottom: -20px;
  left: 30px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bubble-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
}

.bubble-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   Popular Grid / Courses Components
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.course-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(62, 127, 188, 0.15);
}

.course-card-visual {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.course-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-card:hover .course-card-img {
  transform: scale(1.06);
}

.course-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary-color);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}

.course-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
}

.course-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--bg-alt);
  padding-top: 12px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.btn-card {
  display: block;
  text-align: center;
  width: 100%;
  background-color: var(--bg-alt);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 0;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.course-card:hover .btn-card {
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* ==========================================================================
   Reviews Testimonials Component
   ========================================================================== */
.reviews-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.reviews-wrapper {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.review-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
}

.review-stars {
  display: flex;
  gap: 4px;
  color: #ffb300;
  margin-bottom: 24px;
}

.review-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.author-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Carousel Buttons */
.reviews-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
  padding-right: 40px;
}

.reviews-nav-btn {
  background-color: var(--bg-card);
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.reviews-nav-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: scale(1.05);
}

/* ==========================================================================
   Catalog Page Layout & Filtering
   ========================================================================== */
.catalog-category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.cat-tab-btn {
  background-color: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 24px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.cat-tab-btn:hover {
  color: var(--primary-color);
}

.cat-tab-btn.active {
  color: var(--primary-color);
}

.cat-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.cat-tab-btn.active::after {
  width: 100%;
}

.catalog-filter-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.catalog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-block {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.sidebar-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.catalog-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.results-count {
  font-size: 14px;
  color: var(--text-muted);
}

.sort-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-selector label {
  font-size: 14px;
  color: var(--text-muted);
}

.sort-selector select {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 13px;
  color: var(--text-dark);
}

/* ==========================================================================
   Course Detail Page Layout
   ========================================================================== */
.breadcrumbs-container {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

.course-detail-hero {
  padding: 60px 0;
  background: radial-gradient(circle at 10% 20%, #f4f8fd 0%, #ffffff 70%);
  border-bottom: 1px solid #e2e8f0;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.detail-category-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.detail-course-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.detail-course-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.stars-icon-group {
  display: flex;
  gap: 2px;
  color: #ccc;
}

.star-icon.fill {
  color: #ffb300;
}

.reviews-count {
  font-size: 14px;
  color: var(--text-muted);
}

.detail-hero-actions {
  display: flex;
  gap: 16px;
}

.detail-info-box {
  padding: 24px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-icon {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 8px;
  border-radius: 8px;
  display: flex;
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-title-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
}

.info-val-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.sidebar-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-action-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background-color: var(--bg-alt);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.sidebar-action-btn:hover {
  background-color: #e2e8f0;
}

.sidebar-action-btn.highlight {
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(62, 127, 188, 0.2);
}

.sidebar-action-btn.highlight:hover {
  background-color: var(--primary-dark);
}

/* Detail Main Body Layout */
.detail-body-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

.content-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.content-block-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.content-block-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: -8px;
}

.content-block-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Accordion Syllabus */
.syllabus-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-card);
  overflow: hidden;
}

.accordion-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: var(--bg-alt);
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background-color: #e2e8f0;
}

.accordion-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.accordion-icon {
  display: flex;
  transition: transform 0.3s ease;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-body p {
  padding: 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Active accordion states */
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-body {
  max-height: 150px;
}

/* Detail Sidebar Tabs Reference Materials */
.ref-materials-card {
  padding: 24px;
}

.ref-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
}

.ref-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.ref-tab-btn {
  border: none;
  background: transparent;
  flex: 1;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.ref-tab-btn.active {
  color: var(--primary-color);
}

.ref-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.2s ease;
}

.ref-tab-btn.active::after {
  width: 100%;
}

.ref-content-pane {
  display: none;
}

.ref-content-pane.active {
  display: block;
}

.books-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.books-list li {
  display: flex;
  flex-direction: column;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 8px;
}

.book-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.book-author {
  font-size: 11px;
  color: var(--text-light);
}

.ref-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Assessments logbook items */
.ico-scoring-card {
  padding: 24px;
}

.ico-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ico-items li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ico-items li strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.ico-items li span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Feedback Rating Form */
.feedback-box {
  padding: 40px;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.rating-selection {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.rating-selection input {
  display: none;
}

.rating-selection label {
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rating-selection input:checked ~ label {
  color: #ffb300;
}

.form-group textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-sm);
  padding: 12px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(62, 127, 188, 0.15);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
  background-color: var(--text-dark);
  color: #94a3b8;
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #3e7fbc;
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  color: #ffffff;
}

.footer-logo .logo-text strong {
  color: #3e7fbc;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.footer-contact-details a {
  color: #3e7fbc;
  text-decoration: none;
}

.footer-contact-details a:hover {
  text-decoration: underline;
}

.contact-label {
  display: block;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .lms-grid, .about-grid, .detail-hero-grid, .detail-body-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-badge, .hero-tabs, .hero-pills-row, .hero-cta {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .detail-hero-actions {
    justify-content: center;
  }
  
  .detail-hero-sidebar {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .catalog-filter-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .py-section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 44px;
  }
  
  .header-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .header-left {
    flex-direction: column;
    width: 100%;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 12px 24px;
    gap: 12px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
