/* Majors Page Styles - Jinan University */

/* ===============================
   MAJORS SECTION
   =============================== */

.majors-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 0;
  min-height: 100vh;
}

/* ===============================
   PAGE HEADER
   =============================== */

.majors-page-title {
  color: rgb(49, 102, 103);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.majors-page-title i {
  color: #cd9933;
  margin-right: 1rem;
  font-size: 0.9em;
}

.majors-title-divider {
  height: 4px;
  background: linear-gradient(90deg, rgb(49, 102, 103) 0%, #cd9933 100%);
  border: none;
  margin: 2rem 0 3rem 0;
  border-radius: 2px;
}

.majors-title-divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===============================
   MAJORS CONTAINER
   =============================== */

.majors-accordion-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(49, 102, 103, 0.1);
}

/* ===============================
   FACULTY SECTIONS
   =============================== */

.faculty-section {
  border-bottom: 2px solid #f1f3f4;
}

.faculty-section:last-child {
  border-bottom: none;
}

.faculty-header {
  background: linear-gradient(135deg, rgb(49, 102, 103) 0%, #3a7a7c 100%);
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.faculty-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  background-size: 20px 20px;
}

.faculty-title {
  color: white;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.faculty-title i {
  color: #cd9933;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ===============================
   DEPARTMENTS
   =============================== */

.departments-container {
  padding: 0;
}

.department-card {
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.department-card:last-child {
  border-bottom: none;
}

.department-card:hover {
  background: #f8f9fa;
}

.department-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.25rem 2rem;
  border-left: 4px solid #cd9933;
  position: relative;
}

.department-name {
  color: rgb(49, 102, 103);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.department-name i {
  color: #cd9933;
  font-size: 1rem;
}

/* ===============================
   MAJORS LIST
   =============================== */

.majors-list {
  padding: 0;
}

.major-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.major-item:last-child {
  border-bottom: none;
}

.major-item:hover {
  background: linear-gradient(
    135deg,
    #f8f9fa 0%,
    rgba(49, 102, 103, 0.02) 100%
  );
  transform: translateX(5px);
}

.major-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgb(49, 102, 103) 0%, #cd9933 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.major-item:hover::before {
  transform: scaleY(1);
}

.major-content {
  flex: 1;
}

.major-name-section {
  margin-bottom: 0.5rem;
}

.major-link {
  color: rgb(49, 102, 103);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.major-link:hover {
  color: #cd9933;
  transform: translateX(3px);
}

.major-link i {
  font-size: 0.9rem;
  opacity: 0.7;
}

.major-name {
  color: #6b7280;
  font-weight: 500;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
}

.major-name i {
  color: #cd9933;
  opacity: 0.7;
  font-size: 0.9rem;
}

.degree-info {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.degree-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.degree-link:hover {
  color: rgb(49, 102, 103);
}

.degree-link i,
.degree-text i {
  color: #cd9933;
  opacity: 0.8;
}

.degree-text {
  display: inline-flex;
  align-items: center;
}

/* ===============================
   MAJOR BADGES
   =============================== */

.major-badge {
  margin-left: 1rem;
}

.major-badge .badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.major-badge .badge i {
  font-size: 0.7rem;
}

/* ===============================
   NO CONTENT MESSAGES
   =============================== */

.no-majors-message,
.no-departments-message {
  color: #6b7280;
  font-style: italic;
  padding: 2rem;
  text-align: center;
  background: #f8f9fa;
  margin: 1rem 2rem;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

.no-majors-message i,
.no-departments-message i {
  color: #cd9933;
  opacity: 0.7;
}

/* ===============================
   ALERTS
   =============================== */

.alert {
  border: none;
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.alert-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
  color: #374151;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #f8f9fa 100%);
  color: #374151;
}

.alert i {
  color: rgb(49, 102, 103);
}

.alert h4 {
  color: rgb(49, 102, 103);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 991.98px) {
  .majors-section {
    padding: 2rem 0;
  }

  .majors-page-title {
    font-size: 2rem;
    text-align: center;
  }

  .faculty-header {
    padding: 1.25rem 1.5rem;
  }

  .faculty-title {
    font-size: 1.5rem;
  }

  .department-header {
    padding: 1rem 1.5rem;
  }

  .major-item {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .major-badge {
    margin-left: 0;
    align-self: flex-end;
  }
}

@media (max-width: 575.98px) {
  .majors-section {
    padding: 1.5rem 0;
  }

  .majors-page-title {
    font-size: 1.75rem;
  }

  .faculty-header {
    padding: 1rem;
  }

  .faculty-title {
    font-size: 1.25rem;
  }

  .department-header {
    padding: 0.75rem 1rem;
  }

  .department-name {
    font-size: 1.1rem;
  }

  .major-item {
    padding: 0.75rem 1rem;
  }

  .major-link,
  .major-name {
    font-size: 1rem;
  }

  .alert {
    padding: 2rem 1rem;
  }
}

/* ===============================
   RTL SUPPORT
   =============================== */

[dir="rtl"] .majors-page-title i {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .faculty-title i {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .department-name i {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .major-link i,
[dir="rtl"] .major-name i {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .degree-link i,
[dir="rtl"] .degree-text i {
  margin-right: 0;
  margin-left: 0.25rem;
}

[dir="rtl"] .major-item:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .major-link:hover {
  transform: translateX(-3px);
}

[dir="rtl"] .department-header {
  border-left: none;
  border-right: 4px solid #cd9933;
}

[dir="rtl"] .major-item::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .major-badge {
  margin-left: 0;
  margin-right: 1rem;
}

@media (max-width: 991.98px) {
  [dir="rtl"] .major-badge {
    margin-right: 0;
  }
}

/* ===============================
   PRINT STYLES
   =============================== */

@media print {
  .majors-section {
    background: white;
    padding: 1rem 0;
  }

  .majors-accordion-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .faculty-header {
    background: #f5f5f5 !important;
    color: black !important;
  }

  .faculty-title {
    color: black !important;
    text-shadow: none !important;
  }

  .major-item:hover {
    background: white !important;
    transform: none !important;
  }

  .major-link {
    color: black !important;
  }
}
