/* ===== GLOBAL STYLES ===== */
body {
  font-family: 'Poppins', sans-serif;
  background: #f9fafc;
  color: #2c2c2c;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  transition: background 0.3s ease;
}

.container {
  flex: 1;
  padding-bottom: 40px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(90deg, #6c63ff, #ff7597);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: #fff !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: #ffe9f3 !important;
}

.navbar-nav .nav-link {
  color: #fdfdfd !important;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 10px;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: #ffdee9;
  transition: width 0.3s;
}

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

.navbar-nav .nav-link:hover {
  color: #ffe9f3 !important;
  transform: translateY(-2px);
}

/* ===== SEARCH BAR ===== */
form.d-flex input[type="text"] {
  border-radius: 50px;
  padding-left: 20px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

form.d-flex input[type="text"]:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.25);
}

form.d-flex button {
  border-radius: 50px;
  padding: 5px 22px;
  transition: all 0.3s ease;
  background: #ff7597;
  color: #fff;
  border: none;
}

form.d-flex button:hover {
  background: #6c63ff;
  color: #fff;
  transform: scale(1.05);
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff, #f2f4ff);
  flex: 1;
  position: relative;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(108, 99, 255, 0.08);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card-title {
  color: #6c63ff;
  font-weight: 700;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.card-text {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn-outline-primary {
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
  border: 2px solid #6c63ff;
  color: #6c63ff;
}

.btn-outline-primary:hover {
  background-color: #6c63ff;
  color: #fff;
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(90deg, #6c63ff, #ff7597);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

footer p {
  margin: 0;
}

/* ===== HEADINGS ===== */
h2,
h3,
h4,
h5 {
  color: #6c63ff;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* ===== COURSE DETAIL PAGE STYLES */
.course-detail-container.container,
body .container:has(.course-detail-container) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Override container for course detail page */
.course-detail-container {
  max-width: 1400px;
  margin: -20px auto 0;
  padding: 20px 15px;
  background: #f8f9fd !important;
}

/* Course Header - Purple Gradient */
.course-detail-container .course-header {
  background: linear-gradient(90deg, #7c3aed 0%, #c026d3 100%);
  border-radius: 20px;
  padding: 40px 35px;
  margin-bottom: 25px;
  color: white;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
}

.course-detail-container .breadcrumb-text {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.course-detail-container .course-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white !important;
  line-height: 1.2;
}

.course-detail-container .course-university {
  font-size: 1.15rem;
  opacity: 0.95;
  margin: 0;
  font-weight: 400;
}

/* Info Cards - WHITE BACKGROUND WITH BORDERS */
.course-detail-container .info-card {
  background: #ffffff !important;
  border-radius: 20px;
  padding: 35px 30px;
  height: 100%;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb !important;
}

.course-detail-container .info-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-3px);
  border-color: #d1d5db !important;
}

/* Section Title  */
.course-detail-container .section-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #6366f1 !important;
  margin-bottom: 20px !important;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0 !important;
}

.course-detail-container .section-title i {
  font-size: 26px;
  color: #6366f1 !important;
}

/* Info Items */
.course-detail-container .info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f3f4f6;
  align-items: flex-start;
}

.course-detail-container .info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Icon Styling - Colored Background */
.course-detail-container .info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ddd6fe, #e9d5ff);
  border-radius: 14px;
  color: #7c3aed;
}

.course-detail-container .info-icon i {
  font-size: 24px;
  color: #7c3aed !important;
}

/* Info Content */
.course-detail-container .info-content {
  flex: 1;
}

.course-detail-container .info-content strong {
  display: block;
  font-size: 1rem;
  color: #1f2937 !important;
  margin-bottom: 10px;
  font-weight: 700;
}

.course-detail-container .info-content p {
  margin: 0;
  color: #6b7280 !important;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Special Elements */
.course-detail-container .fee-period {
  font-size: 0.85rem;
  color: #9ca3af !important;
  font-weight: 400;
}

.course-detail-container .ranking-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 0.85rem;
  color: #ffffff !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.course-detail-container .ranking-badge i {
  font-size: 14px;
  color: #ffffff !important;
}

/* Lists */
.course-detail-container .requirements-list,
.course-detail-container .facilities-list {
  margin: 10px 0 0 0;
  padding-left: 0;
  list-style: none;
  color: #6b7280;
  font-size: 0.92rem;
}

.course-detail-container .requirements-list li,
.course-detail-container .facilities-list li {
  padding: 6px 0;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-detail-container .requirements-list li i,
.course-detail-container .facilities-list li i {
  color: #6366f1 !important;
  font-size: 16px;
  flex-shrink: 0;
}

/* Student Tags */
.course-detail-container .student-tags {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.course-detail-container .tag {
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course-detail-container .tag-international {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white !important;
}

.course-detail-container .tag-international i {
  color: white !important;
}

.course-detail-container .tag-domestic {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white !important;
}

.course-detail-container .tag-domestic i {
  color: white !important;
}

/* AI Card - Dashed Border */
.course-detail-container .ai-card {
  background: linear-gradient(135deg, #f9fafb 0%, #ede9fe 100%) !important;
  border: 2px dashed #a78bfa !important;
}

.course-detail-container .ai-placeholder {
  text-align: center;
  padding: 50px 30px;
}

.course-detail-container .ai-icon-large {
  font-size: 90px;
  margin-bottom: 25px;
  opacity: 0.6;
  color: #8b5cf6;
}

.course-detail-container .ai-icon-large i {
  font-size: 90px;
  color: #8b5cf6 !important;
}

.course-detail-container .ai-placeholder h4 {
  font-size: 1.4rem;
  color: #6366f1 !important;
  margin-bottom: 12px;
  font-weight: 700;
}

.course-detail-container .ai-placeholder p {
  color: #6b7280 !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Course Description */
.course-detail-container .course-description {
  color: #4b5563 !important;
  line-height: 1.8;
  font-size: 1rem;
}

/* Action Buttons */
.course-detail-container .action-buttons {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.course-detail-container .btn-apply {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white !important;
  padding: 16px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.course-detail-container .btn-apply:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.45);
  color: white !important;
}

.course-detail-container .btn-apply i {
  color: white !important;
}

.course-detail-container .btn-view-university {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: white !important;
  padding: 16px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.course-detail-container .btn-view-university:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.45);
  color: white !important;
}

.course-detail-container .btn-view-university i {
  color: white !important;
}

.course-detail-container .btn-compare {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: white !important;
  padding: 16px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.course-detail-container .btn-compare:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(236, 72, 153, 0.45);
}

.course-detail-container .btn-compare i {
  color: white !important;
}

/* Responsive Design */
@media (max-width: 991px) {
  .course-detail-container .course-main-title {
    font-size: 2.2rem !important;
  }

  .course-detail-container .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .course-detail-container .btn-apply,
  .course-detail-container .btn-view-university,
  .course-detail-container .btn-compare {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .course-detail-container .course-header {
    padding: 30px 25px;
  }

  .course-detail-container .course-main-title {
    font-size: 1.8rem !important;
  }

  .course-detail-container .info-card {
    padding: 25px 20px;
    margin-bottom: 15px;
  }

  .course-detail-container .info-item {
    flex-direction: row;
    gap: 15px;
  }

  .course-detail-container .student-tags {
    flex-direction: row;
  }

  .course-detail-container .tag {
    display: flex;
    justify-content: center;
  }
}

/* ===== UNIVERISITY CARDS ===== */
.row .col-md-4 {
  display: flex;
}

/* ===== SUBTLE ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }

  form.d-flex {
    flex-direction: column;
    gap: 10px;
  }

  .card {
    margin-bottom: 20px;
  }
}

/* Hover effects for list items in search results */
.list-group-item.list-hover {
  border: none;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.list-group-item.list-hover:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #f7f4ff, #fff2f7);
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.15);
}

.list-group-item.list-hover a {
  color: #333;
  transition: color 0.2s;
}

.list-group-item.list-hover:hover a {
  color: #6c63ff;
}

.text-gradient {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-accent {
  background-color: #6a11cb !important;
}

.list-group-item {
  border: none;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease-in-out;
}

.list-group-item:hover {
  transform: scale(1.02);
  background-color: #f8f9fa;
}

.badge.bg-accent {
  color: white;
  font-weight: 500;
}

/* =====================================================
   STUDENT PROFILE MULTI-STEP FORM DESIGN
   ===================================================== */

.as-student-form-card {
  background: #111827;
  border-radius: 24px;
  padding: 32px;
  margin: 24px auto 60px;
  max-width: 1150px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.as-student-form-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.as-student-form-header span {
  display: inline-block;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.as-student-form-header h2 {
  color: #ffffff !important;
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 8px;
}

.as-student-form-header p {
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
}

/* Two-column field layout */
.as-student-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
}

/* Each field wrapper */
.as-field-block {
  min-width: 0;
}

/* Make textarea/file fields wider where needed */
.as-wide-field {
  grid-column: span 2;
}

.as-field-label {
  display: block;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Main input/select/file/textarea style */
.as-form-control {
  width: 100%;
  min-height: 48px;
  background: #1f2937 !important;
  color: #ffffff !important;
  border: 1px solid #374151 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 15px;
  outline: none;
  transition: 0.18s ease;
}

.as-form-control::placeholder {
  color: #9ca3af;
}

.as-form-control:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18) !important;
  background: #111827 !important;
}

.as-select {
  cursor: pointer;
}

.as-textarea {
  min-height: 120px;
  resize: vertical;
}

.as-file {
  padding: 10px !important;
  background: #1f2937 !important;
}

.as-file::file-selector-button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  margin-right: 12px;
  cursor: pointer;
  font-weight: 700;
}

.as-file::file-selector-button:hover {
  background: #1d4ed8;
}

/* Checkbox fields */
.as-checkbox-block {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 14px;
  padding: 14px;
}

.as-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  font-weight: 700;
  cursor: pointer;
}

.as-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

/* Help text and errors */
.as-field-help {
  display: block;
  margin-top: 6px;
  color: #9ca3af;
  font-size: 12px;
}

.as-field-error {
  margin-top: 7px;
  background: rgba(239, 68, 68, 0.13);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.as-form-alert {
  background: rgba(239, 68, 68, 0.13);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.as-form-alert p {
  margin: 0;
}

/* Form action buttons */
.as-student-form-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.as-btn-dark,
.as-btn-light {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.as-btn-dark {
  background: #2563eb;
  color: white;
}

.as-btn-dark:hover {
  background: #1d4ed8;
  color: white;
}

.as-btn-light {
  background: #f8fafc;
  color: #111827;
  border: 1px solid #cbd5e1;
}

.as-btn-light:hover {
  background: #e5e7eb;
  color: #111827;
}

/* =====================================================
   STUDENT PROFILE PROGRESS BAR / STEPS
   ===================================================== */

.student-progress-card {
  max-width: 1150px;
  margin: 24px auto 0;
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
  border: 1px solid #e5e7eb;
}

.student-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.student-kicker {
  display: inline-block;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.student-progress-top h1 {
  color: #111827 !important;
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 6px;
}

.student-progress-top p {
  color: #64748b;
  margin: 0;
}

.student-step-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 900;
  white-space: nowrap;
}

.student-progress-bar {
  height: 11px;
  width: 100%;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 22px 0;
}

.student-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: 999px;
}

.student-step-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.student-step-tabs a {
  white-space: nowrap;
  text-decoration: none;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
}

.student-step-tabs a.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.student-step-tabs a.done {
  background: #dcfce7;
  color: #047857;
  border-color: #86efac;
}

/* Responsive */
@media (max-width: 800px) {
  .as-student-form-card {
    padding: 24px;
    border-radius: 20px;
  }

  .as-student-form-grid {
    grid-template-columns: 1fr;
  }

  .as-wide-field {
    grid-column: span 1;
  }

  .as-student-form-actions {
    flex-direction: column;
  }

  .as-btn-dark,
  .as-btn-light {
    width: 100%;
  }

  .student-progress-card {
    padding: 22px;
  }

  .student-progress-top h1 {
    font-size: 25px;
  }
}

/* =====================================================
   STUDENT DASHBOARD NEW LAYOUT
   ===================================================== */

.student-dashboard-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.student-dashboard-hero {
  background: linear-gradient(135deg, #111827, #1d4ed8, #7c3aed);
  color: white;
  border-radius: 28px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: center;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
  margin-bottom: 24px;
}

.dashboard-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #e0f2fe;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.student-dashboard-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 900;
  color: white !important;
}

.student-dashboard-hero p {
  margin: 0;
  max-width: 720px;
  color: #dbeafe;
  line-height: 1.7;
}

.dashboard-progress-box {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  padding: 22px;
}

.dashboard-progress-box strong {
  display: block;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: white;
}

.dashboard-progress-box span {
  display: block;
  margin-top: 8px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 600;
}

.dashboard-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  margin-top: 18px;
  overflow: hidden;
}

.dashboard-progress-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 999px;
}

.dashboard-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-mini-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-mini-card span {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dashboard-mini-card strong {
  color: #111827;
  font-size: 17px;
  font-weight: 850;
}

.status-complete {
  color: #047857 !important;
}

.status-pending {
  color: #b45309 !important;
}

.dashboard-main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.dashboard-left-panel,
.dashboard-side-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.dashboard-left-panel {
  padding: 24px;
}

.dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-panel-header h2 {
  margin: 0 0 6px;
  color: #111827 !important;
  font-size: 24px;
  font-weight: 900;
}

.dashboard-panel-header p {
  margin: 0;
  color: #64748b;
}

.dashboard-outline-btn,
.dashboard-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-outline-btn {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: white;
}

.dashboard-outline-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.dashboard-primary-btn {
  width: 100%;
  background: #2563eb;
  color: white;
  margin-top: 12px;
}

.dashboard-primary-btn:hover {
  background: #1d4ed8;
  color: white;
}

.student-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.student-section-card {
  display: flex;
  gap: 15px;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  transition: 0.2s ease;
}

.student-section-card:hover {
  transform: translateY(-3px);
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.section-number {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.section-content {
  min-width: 0;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.section-title-row h3 {
  margin: 0;
  color: #111827 !important;
  font-size: 16px;
  font-weight: 850;
}

.section-content p {
  margin: 0;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.55;
}

.section-status {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
}

.section-status.done {
  background: #dcfce7;
  color: #047857;
}

.section-status.pending {
  background: #fef3c7;
  color: #b45309;
}

.dashboard-right-panel {
  display: grid;
  gap: 18px;
}

.dashboard-side-card {
  padding: 22px;
}

.dashboard-side-card h3 {
  margin: 0 0 10px;
  color: #111827 !important;
  font-size: 19px;
  font-weight: 900;
}

.dashboard-side-card p {
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.dashboard-quick-links {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dashboard-quick-links a {
  display: block;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1d4ed8;
  padding: 11px 13px;
  border-radius: 12px;
  font-weight: 750;
}

.dashboard-quick-links a:hover {
  background: #eff6ff;
}

.dashboard-quick-links .danger-link {
  color: #dc2626;
}

@media (max-width: 980px) {
  .student-dashboard-hero,
  .dashboard-main-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-row {
    grid-template-columns: 1fr;
  }

  .student-section-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .student-dashboard-page {
    padding: 20px 14px 40px;
  }

  .student-dashboard-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .student-dashboard-hero h1 {
    font-size: 27px;
  }

  .dashboard-panel-header {
    flex-direction: column;
  }

  .dashboard-outline-btn {
    width: 100%;
  }
}

/* =====================================================
   FORM COLOR FIX - MATCH ACADEMICS.SOLUTION THEME

/* =====================================================
   FORM COLOR FIX - MATCH ACADEMICS.SOLUTION THEME
   Paste at very bottom of static/css/style.css
   ===================================================== */

.as-student-form-card {
  background: #ffffff !important;
  border: 1px solid #e9d5ff !important;
  box-shadow: 0 18px 45px rgba(108, 99, 255, 0.14) !important;
}

.as-student-form-header {
  border-bottom: 1px solid #ede9fe !important;
}

.as-student-form-header span {
  color: #6c63ff !important;
  background: #f3efff !important;
  border: 1px solid #ddd6fe !important;
}

.as-student-form-header h2 {
  color: #312e81 !important;
}

.as-student-form-header p {
  color: #64748b !important;
}

.as-field-label {
  color: #334155 !important;
}

.as-form-control {
  background: #f8fafc !important;
  color: #111827 !important;
  border: 1px solid #d8b4fe !important;
}

.as-form-control:focus {
  background: #ffffff !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16) !important;
}

.as-form-control::placeholder {
  color: #94a3b8 !important;
}

.as-file {
  background: #f8fafc !important;
}

.as-file::file-selector-button {
  background: linear-gradient(90deg, #6c63ff, #ff7597) !important;
  color: #ffffff !important;
}

.as-btn-dark {
  background: linear-gradient(90deg, #6c63ff, #ff7597) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(108, 99, 255, 0.22);
}

.as-btn-dark:hover {
  background: linear-gradient(90deg, #5b54e8, #ef5f89) !important;
  color: #ffffff !important;
}

.as-btn-light {
  background: #ffffff !important;
  color: #6c63ff !important;
  border: 1px solid #c4b5fd !important;
}

.as-btn-light:hover {
  background: #f5f3ff !important;
  color: #4f46e5 !important;
}

.as-checkbox-block {
  background: #f8fafc !important;
  border: 1px solid #ddd6fe !important;
}

.as-checkbox-label {
  color: #334155 !important;
}

.as-field-help {
  color: #64748b !important;
}

/* =====================================================
   STUDENT SUMMARY PAGE
   ===================================================== */

.student-summary-page {
  max-width: 1150px;
  margin: 0 auto 60px;
}

.student-summary-card {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: 24px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 18px 45px rgba(108, 99, 255, 0.12);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid #ede9fe;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.student-summary-card h2 {
  color: #312e81 !important;
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.summary-grid div {
  background: #f8fafc;
  border: 1px solid #e9d5ff;
  border-radius: 14px;
  padding: 13px 15px;
  color: #334155;
}

.summary-grid strong {
  color: #111827;
}

.summary-wide {
  grid-column: span 2;
}

.summary-empty,
.summary-warning {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 14px;
  border-radius: 14px;
}

.summary-success {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 14px;
  border-radius: 14px;
}

@media (max-width: 700px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-wide {
    grid-column: span 1;
  }
}
/* =====================================================
   XBOX/NITRO STYLE COLOUR PALETTE OVERRIDE
   Applies to navbar, dashboard hero, progress, numbers,
   and Continue Form button only.
   ===================================================== */

:root {
  --xbox-magenta: #8A1B76;
  --xbox-purple: #4B1D95;
  --xbox-indigo: #21168A;
  --xbox-blue: #2563EB;
  --xbox-soft: #EEF2FF;
}

/* Navbar */
.navbar {
  background: linear-gradient(
    90deg,
    var(--xbox-magenta) 0%,
    var(--xbox-purple) 45%,
    var(--xbox-indigo) 100%
  ) !important;
}

/* Student dashboard welcome box */
.student-dashboard-hero {
  background: linear-gradient(
    135deg,
    var(--xbox-indigo) 0%,
    var(--xbox-blue) 55%,
    var(--xbox-purple) 100%
  ) !important;
}

/* Dashboard percentage/progress box */
.dashboard-progress-box {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

/* Dashboard progress fill */
.dashboard-progress-fill {
  background: linear-gradient(
    90deg,
    #22C55E,
    #4ADE80
  ) !important;
}

/* Student dashboard section numbers */
.section-number {
  background: linear-gradient(
    135deg,
    var(--xbox-blue),
    var(--xbox-purple)
  ) !important;
  color: #ffffff !important;
}

/* Step tabs active number */
.student-step-tabs a.active {
  background: linear-gradient(
    135deg,
    var(--xbox-blue),
    var(--xbox-purple)
  ) !important;
  color: #ffffff !important;
  border-color: var(--xbox-purple) !important;
}

/* Step badge */
.student-step-badge {
  background: var(--xbox-soft) !important;
  color: var(--xbox-indigo) !important;
  border-color: #c7d2fe !important;
}

/* Continue Form button on dashboard only */
.dashboard-primary-btn {
  background: linear-gradient(
    90deg,
    var(--xbox-blue),
    var(--xbox-purple)
  ) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.dashboard-primary-btn:hover {
  background: linear-gradient(
    90deg,
    var(--xbox-purple),
    var(--xbox-indigo)
  ) !important;
  color: #ffffff !important;
}
/* =====================================================
   ADMIN APPLICATION PORTAL
   ===================================================== */

.admin-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 70px;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-header h1 {
  color: #111827;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 6px;
}

.admin-header p {
  color: #64748b;
  margin: 0;
}

.admin-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.admin-card h2 {
  color: #4f46e5;
  font-size: 20px;
  font-weight: 850;
  margin-bottom: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: #f1f5f9;
  color: #334155;
  text-align: left;
  padding: 12px;
  font-weight: 800;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-submitted {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-reviewing {
  background: #fef3c7;
  color: #b45309;
}

.status-contacted {
  background: #dcfce7;
  color: #047857;
}

.status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 13px;
}

.admin-btn:hover {
  background: #1d4ed8;
  color: #ffffff !important;
}

.admin-btn.success {
  background: #16a34a;
}

.admin-btn.success:hover {
  background: #15803d;
}

.admin-btn.danger {
  background: #dc2626;
}

.admin-btn.danger:hover {
  background: #b91c1c;
}

.admin-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-alert {
  background: #cffafe;
  color: #155e75;
  border: 1px solid #67e8f9;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
}

.summary-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  color: #334155;
}

.summary-grid strong {
  color: #111827;
}

.summary-grid .full {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid .full {
    grid-column: span 1;
  }
}
/* =====================================================
   ADMIN / ADVISOR PORTAL DESIGN
   Retains existing student dashboard and profile colours.
   ===================================================== */

.admin-hero {
  background: linear-gradient(135deg, var(--xbox-indigo), var(--xbox-blue), var(--xbox-purple));
  color: white;
  border-radius: 26px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.24);
  margin-bottom: 24px;
}

.admin-hero span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 12px;
}

.admin-hero h1 {
  color: white !important;
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 900;
}

.admin-hero p {
  color: #dbeafe;
  margin: 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.admin-stat-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.admin-stat-card strong {
  display: block;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
  margin-top: 6px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.admin-card-header h2 {
  margin: 0 0 5px;
}

.admin-card-header p {
  color: #64748b;
  margin: 0;
}

.admin-empty,
.admin-empty-section {
  color: #64748b;
  text-align: center;
  padding: 22px;
}

.admin-status-form {
  display: grid;
  gap: 12px;
}

.admin-status-form label {
  font-weight: 800;
  color: #334155;
}

.admin-status-form select,
.admin-status-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 13px;
  background: #f8fafc;
}

.status-pending_documents {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #dcfce7;
  color: #047857;
}

.status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.muted-text {
  color: #94a3b8;
}

.admin-primary-btn {
  background: #ffffff;
  color: var(--xbox-indigo) !important;
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-primary-btn:hover {
  background: var(--xbox-soft);
  color: var(--xbox-indigo) !important;
}

@media (max-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}


/* =====================================================
   COURSE DETAIL HEADER LOGO 
   ===================================================== */

.course-detail-container .course-header-with-logo {
  display: flex;
  align-items: center;
  gap: 24px;
}

.course-detail-container .course-logo-box {
  width: 105px;
  height: 105px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.course-detail-container .course-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.course-detail-container .course-logo-placeholder {
  font-size: 42px;
  font-weight: 800;
  color: #7c3aed;
}

.course-detail-container .course-header-title-area {
  flex: 1;
  min-width: 0;
}

.course-detail-container .course-header-title-area .breadcrumb-text {
  margin-bottom: 12px;
}

.course-detail-container .course-header-title-area .course-main-title {
  font-size: 2.35rem !important;
  margin-bottom: 12px;
  color: #ffffff !important;
}

.course-detail-container .course-header-title-area .course-university {
  margin-bottom: 0;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .course-detail-container .course-header-with-logo {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-detail-container .course-logo-box {
    width: 85px;
    height: 85px;
  }

  .course-detail-container .course-header-title-area .course-main-title {
    font-size: 1.8rem !important;
  }
}

/* =====================================================
   FINAL COURSE DETAIL PAGE FORCE FIX
   Keeps original layout + logo inside purple header
   ===================================================== */

main.container:has(.course-detail-container) {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.course-detail-container {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 20px 0 50px !important;
  background: #f8f9fd !important;
}

/* Purple header restored */
.course-detail-container > .course-header {
  background: linear-gradient(90deg, #7c3aed 0%, #c026d3 100%) !important;
  border-radius: 20px !important;
  padding: 32px 35px !important;
  margin-bottom: 25px !important;
  color: #ffffff !important;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3) !important;
}

/* Logo + title row */
.course-detail-container .course-header-with-logo {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

.course-detail-container .course-logo-box {
  width: 105px !important;
  height: 105px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16) !important;
}

.course-detail-container .course-logo-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.course-detail-container .course-header-title-area {
  flex: 1 !important;
  min-width: 0 !important;
}

.course-detail-container .breadcrumb-text {
  font-size: 12px !important;
  opacity: 0.95 !important;
  margin-bottom: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.course-detail-container .course-main-title {
  font-size: 2.35rem !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.course-detail-container .course-university {
  font-size: 1rem !important;
  margin: 0 !important;
  color: #ffffff !important;
}

/* Restore card layout */
.course-detail-container .row.g-4 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
}

.course-detail-container .col-lg-4 {
  display: flex !important;
}

.course-detail-container .info-card {
  background: #ffffff !important;
  border-radius: 14px !important;
  padding: 26px 24px !important;
  height: 100% !important;
  width: 100% !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e5e7eb !important;
}

.course-detail-container .section-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #6366f1 !important;
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #e5e7eb !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.course-detail-container .section-title i {
  color: #6366f1 !important;
  font-size: 22px !important;
}

.course-detail-container .info-item {
  display: flex !important;
  gap: 16px !important;
  padding: 16px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  align-items: flex-start !important;
}

.course-detail-container .info-item:last-child {
  border-bottom: none !important;
}

.course-detail-container .info-icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  background: #eee8ff !important;
  color: #7c3aed !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.course-detail-container .info-icon i {
  color: #7c3aed !important;
  font-size: 18px !important;
}

.course-detail-container .info-content strong {
  display: block !important;
  font-size: 13px !important;
  color: #111827 !important;
  margin-bottom: 6px !important;
  font-weight: 700 !important;
}

.course-detail-container .info-content p,
.course-detail-container .requirements-list li,
.course-detail-container .facilities-list li {
  font-size: 13px !important;
  color: #4b5563 !important;
  line-height: 1.6 !important;
}

.course-detail-container .requirements-list,
.course-detail-container .facilities-list {
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

/* AI card */
.course-detail-container .ai-card {
  background: #f8f7ff !important;
  border: 1px dashed #a78bfa !important;
}

.course-detail-container .ai-placeholder {
  min-height: 360px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Description card */
.course-detail-container .row.mt-4 .info-card {
  margin-top: 10px !important;
}

/* Buttons */
.course-detail-container .action-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 26px !important;
}

.course-detail-container .action-buttons .btn {
  border-radius: 50px !important;
  padding: 12px 30px !important;
  font-weight: 700 !important;
  border: none !important;
  color: #ffffff !important;
}

.course-detail-container .btn-apply {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
}

.course-detail-container .btn-view-university {
  background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
}

.course-detail-container .btn-compare {
  background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .course-detail-container > .course-header {
    padding: 25px !important;
  }

  .course-detail-container .course-header-with-logo {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .course-detail-container .course-logo-box {
    width: 85px !important;
    height: 85px !important;
  }

  .course-detail-container .course-main-title {
    font-size: 1.8rem !important;
  }
}

/* =====================================================
   FEATURED UNIVERSITIES - FINAL ALIGNMENT FIX
   ===================================================== */

.featured-university-row {
  align-items: stretch;
}

.featured-university-row .col-md-4 {
  display: flex;
  margin-bottom: 24px;
}

/* Main card */
.featured-university-card {
  width: 100%;
  height: 330px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7ff !important;
  display: flex;
  flex-direction: column;
}

/* Logo box - same height for every card */
.featured-university-logo-area {
  width: 100%;
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

/* Actual logo image */
.featured-university-logo {
  max-width: 88%;
  max-height: 90px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

/* Card body */
.featured-university-body {
  flex: 1;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Title aligned */
.featured-university-title {
  min-height: 44px;
  font-size: 15px !important;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #4f46e5 !important;
  font-weight: 800;
}

/* Text aligned */
.featured-university-text {
  font-size: 12px !important;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #111827 !important;
}

.featured-university-text a {
  font-size: 12px;
}

/* Button pushed to bottom */
.featured-view-btn {
  margin-top: auto;
  font-size: 12px;
  padding: 5px 12px;
}

/* Placeholder if logo missing */
.featured-university-logo-placeholder {
  width: 100%;
  height: 100%;
  background: #f5f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 42px;
  font-weight: bold;
}

/* Backup fix if any featured card still uses card-img-top */
.featured-university-card > img.card-img-top {
  width: 100%;
  height: 135px !important;
  min-height: 135px !important;
  max-height: 135px !important;
  object-fit: contain !important;
  padding: 18px !important;
  background: #ffffff !important;
}