/* Dubai Flag Color Palette */
:root {
  --dubai-red: #ce1126;
  --dubai-dark-red: #9e0b1e;
  --dubai-green: #00732f;
  --dubai-dark-green: #005a23;
  --dubai-black: #000000;
  --dubai-white: #ffffff;
  --dubai-dark-gray: #1a1a1a;
}

* {
  font-family: "Poppins", sans-serif;
}

.university-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.university-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.filter-section {
  height: fit-content;
  position: sticky;
  top: 20px;
}

.star-rating {
  color: #ffd700;
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
}

.active-filter {
  background-color: var(--dubai-red);
  color: white;
}

.compare-active {
  color: var(--dubai-red);
}

/* University Details Modal Styles */
.university-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.university-modal.active {
  opacity: 1;
  visibility: visible;
}

.university-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.university-modal .modal-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.university-modal.active .modal-container {
  transform: scale(1);
}

.university-modal .modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.university-modal .modal-close-btn:hover {
  background: var(--dubai-red);
  color: white;
  transform: rotate(90deg);
}

.university-modal .modal-content {
  padding: 40px;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

/* University Header Layout */
.university-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.university-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.university-logo {
  margin-bottom: 20px;
}

.university-logo img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.university-basic-info {
  text-align: center;
}

.university-basic-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dubai-red);
  margin-bottom: 8px;
}

.university-meta {
  color: #6b7280;
  font-size: 16px;
  margin-bottom: 15px;
}

.university-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--dubai-red);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
}

.university-details-section {
  margin-top: 10px;
}

.university-tabs {
  margin-bottom: 30px;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 25px;
}

.tab-button {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button.active {
  color: var(--dubai-red);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--dubai-red);
}

.tab-button:hover {
  color: var(--dubai-red);
}

.tab-content {
  min-height: 300px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

.overview-section {
  margin-bottom: 30px;
}

.overview-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid var(--dubai-red);
}

.stat-card-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.fact-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.fact-label {
  font-weight: 500;
  color: #374151;
}

.fact-value {
  color: #6b7280;
}

.program-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.program-category h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dubai-red);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.program-list {
  space-y: 12px;
}

.program-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.program-item:hover {
  background: #e5e7eb;
  transform: translateX(5px);
}

.program-name {
  font-weight: 500;
  color: #1f2937;
}

.program-duration {
  color: #6b7280;
  font-size: 14px;
}

.program-details-btn {
  padding: 6px 12px;
  background: var(--dubai-red);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.program-details-btn:hover {
  background: var(--dubai-dark-red);
}

.admission-details {
  space-y: 25px;
}

.admission-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dubai-red);
  margin-bottom: 10px;
}

.admission-section ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #6b7280;
}

.admission-section li {
  margin-bottom: 8px;
}

.campus-features {
  space-y: 25px;
}

.campus-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dubai-red);
  margin-bottom: 10px;
}

.campus-section ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #6b7280;
}

.campus-section li {
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding-top: 25px;
  border-top: 1px solid #e5e7eb;
  margin-top: 30px;
}

.btn-outline {
  background: transparent;
  color: var(--dubai-red);
  border: 1px solid var(--dubai-red);
}

.btn-outline:hover {
  background: var(--dubai-red);
  color: white;
  transform: translateY(-2px);
}

/* Enquiry Modal Styles */
.enquiry-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.enquiry-modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: auto;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 18px;
  color: #666;
}

.modal-close-btn:hover {
  background: var(--dubai-red);
  color: white;
  transform: rotate(90deg);
}

.modal-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  height: 100%;
  min-height: 600px;
}

.form-section {
  padding: 40px;
  background: white;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 600px;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
  flex-shrink: 0;
}

.form-header h2 {
  color: var(--dubai-red);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-header p {
  color: #6b7280;
  font-size: 16px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  flex-shrink: 0;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border: 3px solid #e5e7eb;
}

.step.active .step-number {
  background: var(--dubai-red);
  color: white;
  border-color: var(--dubai-red);
}

.step span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.step.active span {
  color: var(--dubai-red);
  font-weight: 600;
}

.form-content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.form-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 20px;
  max-height: 400px;
}

.form-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.form-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.form-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.form-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.form-step {
  display: none;
  padding-bottom: 10px;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step h3 {
  color: #1e293b;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group.full-width {
  grid-column: 1 / -1;
}

.input-group label {
  color: #374151;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.input-group input,
.input-group select,
.input-group textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
  color: #374151;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--dubai-red);
  box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.1);
}

.input-group textarea {
  resize: vertical;
  min-height: 80px;
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.input-group.error input,
.input-group.error select,
.input-group.error textarea {
  border-color: #ef4444;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0 0;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
  flex-shrink: 0;
  background: white;
  position: relative;
}

.btn-primary,
.btn-secondary,
.btn-submit {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-width: 120px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dubai-red), var(--dubai-dark-red));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dubai-dark-red), #8a0919);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(206, 17, 38, 0.3);
}

.btn-secondary {
  background: #f8fafc;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #475569;
}

.btn-submit {
  background: linear-gradient(
    135deg,
    var(--dubai-green),
    var(--dubai-dark-green)
  );
  color: white;
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--dubai-dark-green), #004a1c);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 115, 47, 0.3);
}

.image-section {
  background: linear-gradient(135deg, var(--dubai-red), var(--dubai-dark-red));
  position: relative;
  overflow: hidden;
}

.image-content {
  position: relative;
  height: 100%;
}

.side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(206, 17, 38, 0.9),
    rgba(158, 11, 30, 0.8)
  );
  color: white;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-overlay h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.image-overlay ul {
  list-style: none;
  padding: 0;
}

.image-overlay li {
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.image-overlay li:last-child {
  border-bottom: none;
}

.success-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  backdrop-filter: blur(5px);
}

.success-message.hidden {
  display: none;
}

.success-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon {
  font-size: 64px;
  color: var(--dubai-green);
  margin-bottom: 20px;
}

.success-content h3 {
  color: var(--dubai-red);
  font-size: 24px;
  margin-bottom: 10px;
}

.success-content p {
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
}

.success-content .btn-primary {
  background: linear-gradient(
    135deg,
    var(--dubai-green),
    var(--dubai-dark-green)
  );
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-content .btn-primary:hover {
  background: linear-gradient(135deg, var(--dubai-dark-green), #004a1c);
  transform: translateY(-2px);
}

/* Enquire Now Button */
.enquire-now-btn {
  background: linear-gradient(135deg, var(--dubai-red), var(--dubai-dark-red));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(206, 17, 38, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.enquire-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(206, 17, 38, 0.5);
}

@keyframes pulse {
  0% {
    box-shadow: 0 10px 25px rgba(206, 17, 38, 0.4);
  }
  50% {
    box-shadow: 0 10px 30px rgba(206, 17, 38, 0.7);
  }
  100% {
    box-shadow: 0 10px 25px rgba(206, 17, 38, 0.4);
  }
}

.btn-text {
  font-size: 16px;
}

.btn-icon {
  font-size: 18px;
}

/* Floating Icons */
.floating-icons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.whatsapp-icon {
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon img {
  width: 30px;
  height: 30px;
}

.uae-flag {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.uae-flag:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.uae-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header Styles */
.navbar-height {
  height: 80px;
}

.logo-container {
  height: 60px;
}

.logo-img {
  height: 100%;
  width: auto;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

.bounce-in {
  animation: bounceIn 1s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* University Card Animations */
.university-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for cards */
.university-card:nth-child(1) {
  animation-delay: 0.1s;
}
.university-card:nth-child(2) {
  animation-delay: 0.2s;
}
.university-card:nth-child(3) {
  animation-delay: 0.3s;
}
.university-card:nth-child(4) {
  animation-delay: 0.4s;
}
.university-card:nth-child(5) {
  animation-delay: 0.5s;
}
.university-card:nth-child(6) {
  animation-delay: 0.6s;
}
.university-card:nth-child(7) {
  animation-delay: 0.7s;
}
.university-card:nth-child(8) {
  animation-delay: 0.8s;
}
.university-card:nth-child(9) {
  animation-delay: 0.9s;
}
.university-card:nth-child(10) {
  animation-delay: 1s;
}

/* Hero Section Animation */
.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: heroTitleAnimation 1s ease 0.5s forwards;
}

@keyframes heroTitleAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: heroSubtitleAnimation 1s ease 0.8s forwards;
}

@keyframes heroSubtitleAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats {
  opacity: 0;
  transform: translateY(20px);
  animation: heroStatsAnimation 1s ease 1.1s forwards;
}

@keyframes heroStatsAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner Styles */
.banner-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.banner-slide.active {
  opacity: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(206, 17, 38, 0.8) 0%,
    rgba(158, 11, 30, 0.7) 100%
  );
  display: flex;
  align-items: center;
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  color: white;
  text-align: center;
}

/* Grid/List View Styles */
.grid-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
}

.list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-view .university-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.5rem;
  gap: 2rem;
}

.list-view .university-image {
  flex: 0 0 120px;
  height: 120px;
}

.list-view .university-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.list-view .university-main-info {
  flex: 0 0 280px;
  min-width: 280px;
}

.list-view .university-details {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 1rem;
}

.list-view .university-actions {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.list-view .university-details > div {
  text-align: center;
  padding: 0.5rem;
}

.list-view .university-details p:first-child {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.list-view .university-details p:last-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.active-view {
  background-color: var(--dubai-red) !important;
  color: white !important;
}

/* Filter Active State */
.filter-active {
  background-color: var(--dubai-red);
  color: white;
}

/* University Image in Grid Cards */
.university-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.university-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.university-card:hover .university-image img {
  transform: scale(1.05);
}

/* Responsive Design for University Modal */
@media (max-width: 768px) {
  .university-modal .modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .university-modal .modal-content {
    padding: 20px;
    max-height: calc(95vh - 40px);
  }

  .university-header {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .university-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .program-categories {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .list-view .university-card {
    flex-direction: column;
    text-align: center;
  }

  .list-view .university-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive design for enquiry modal */
@media (max-width: 768px) {
  .enquiry-modal {
    padding: 10px;
  }

  .modal-container {
    width: 100%;
    height: 90vh;
    max-height: 90vh;
  }

  .modal-content {
    grid-template-columns: 1fr;
    min-height: 500px;
  }

  .image-section {
    display: none;
  }

  .form-section {
    padding: 30px 20px;
    min-height: 500px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .progress-steps {
    margin-bottom: 20px;
  }

  .step span {
    font-size: 10px;
  }

  .form-scroll-container {
    max-height: 350px;
    margin-bottom: 15px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-submit {
    min-width: 110px;
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .modal-container {
    height: 95vh;
    max-height: 95vh;
    border-radius: 10px;
  }

  .form-section {
    padding: 20px 15px;
    min-height: 450px;
  }

  .form-header h2 {
    font-size: 24px;
  }

  .form-step h3 {
    font-size: 18px;
  }

  .form-scroll-container {
    max-height: 300px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-submit {
    min-width: 100px;
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-button {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-button:hover {
  background: #f3f4f6;
}

.page-button.active-page {
  background: var(--dubai-red);
  color: white;
  border-color: var(--dubai-red);
}

.pagination-arrow {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-arrow:hover:not(:disabled) {
  background: #f3f4f6;
}

.pagination-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tailwind CSS Custom Colors */
.dubai-red {
  color: var(--dubai-red);
}
.dubai-dark-red {
  color: var(--dubai-dark-red);
}
.dubai-green {
  color: var(--dubai-green);
}
.dubai-dark-green {
  color: var(--dubai-dark-green);
}
.dubai-black {
  color: var(--dubai-black);
}
.dubai-white {
  color: var(--dubai-white);
}

.bg-dubai-red {
  background-color: var(--dubai-red);
}
.bg-dubai-dark-red {
  background-color: var(--dubai-dark-red);
}
.bg-dubai-green {
  background-color: var(--dubai-green);
}
.bg-dubai-dark-green {
  background-color: var(--dubai-dark-green);
}
.bg-dubai-black {
  background-color: var(--dubai-black);
}
.bg-dubai-white {
  background-color: var(--dubai-white);
}

.border-dubai-red {
  border-color: var(--dubai-red);
}
.border-dubai-dark-red {
  border-color: var(--dubai-dark-red);
}
.border-dubai-green {
  border-color: var(--dubai-green);
}
.border-dubai-dark-green {
  border-color: var(--dubai-dark-green);
}
.border-dubai-black {
  border-color: var(--dubai-black);
}
.border-dubai-white {
  border-color: var(--dubai-white);
}

.text-dubai-red {
  color: var(--dubai-red);
}
.text-dubai-dark-red {
  color: var(--dubai-dark-red);
}
.text-dubai-green {
  color: var(--dubai-green);
}
.text-dubai-dark-green {
  color: var(--dubai-dark-green);
}
.text-dubai-black {
  color: var(--dubai-black);
}
.text-dubai-white {
  color: var(--dubai-white);
}

.hover\:text-dubai-red:hover {
  color: var(--dubai-red);
}
.hover\:text-dubai-dark-red:hover {
  color: var(--dubai-dark-red);
}
.hover\:text-dubai-green:hover {
  color: var(--dubai-green);
}
.hover\:text-dubai-dark-green:hover {
  color: var(--dubai-dark-green);
}

.bg-dubai-dark-gray {
  background-color: var(--dubai-dark-gray);
}
.border-dubai-dark-gray {
  border-color: var(--dubai-dark-gray);
}

/* modal Program */

/* Programs Tab Styles */
.programs-content h3 {
  color: var(--dubai-red);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.programs-degree-section {
  margin-bottom: 25px;
}

.programs-degree-section h4 {
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.degree-list {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.degree-item {
  background: #f8fafc;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.program-divider {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 20px 0;
}

.program-detail-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border-left: 4px solid var(--dubai-red);
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.program-title-section {
  flex: 1;
}

.program-name {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 5px;
}

.program-duration {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.program-view-details-btn {
  background: var(--dubai-red);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 15px;
}

.program-view-details-btn:hover {
  background: var(--dubai-dark-red);
  transform: translateY(-2px);
}

.program-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.program-info-item {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.program-info-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.program-info-value {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.program-stats {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, var(--dubai-red), var(--dubai-dark-red));
  color: white;
  border-radius: 8px;
  font-weight: 600;
}

.program-stats p {
  margin: 0;
  font-size: 14px;
}

.additional-programs {
  margin-top: 30px;
}

.additional-programs h4 {
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.programs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.program-list-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.program-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--dubai-red);
}

.program-list-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 5px;
}

.program-list-duration {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.program-list-features {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

/* Responsive Design for Programs Tab */
@media (max-width: 768px) {
  .program-header {
    flex-direction: column;
    gap: 15px;
  }

  .program-view-details-btn {
    margin-left: 0;
    align-self: stretch;
  }

  .program-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .degree-list {
    gap: 10px;
  }

  .programs-list {
    grid-template-columns: 1fr;
  }
}

/* Degree Toggle Buttons */
.degree-toggle-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.degree-toggle-btn {
  padding: 12px 16px;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.degree-toggle-btn:hover {
  border-color: var(--dubai-red);
  color: var(--dubai-red);
}

.degree-toggle-btn.active {
  background: var(--dubai-red);
  border-color: var(--dubai-red);
  color: white;
}

/* Programs Slider */
.programs-slider-container {
  position: relative;
  margin-bottom: 30px;
}

.programs-slider {
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  background: #f8fafc;
  min-height: 200px;
}

.program-slide {
  flex: 0 0 100%;
  /* padding: 30px; */
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease;
}

.program-slide.active {
  transform: translateX(0);
}

.program-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.program-slide-title h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 5px;
}

.program-slide-duration {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.program-slide-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.program-feature {
  text-align: center;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
}

.feature-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.feature-value {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.program-slide-description {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, var(--dubai-red), var(--dubai-dark-red));
  color: white;
  border-radius: 8px;
  font-weight: 600;
}

.program-slide-description p {
  margin: 0;
  font-size: 14px;
}

/* Slider Navigation */
.slider-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.slider-nav-btn {
  background: var(--dubai-red);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-nav-btn:hover:not(:disabled) {
  background: var(--dubai-dark-red);
  transform: scale(1.1);
}

.slider-nav-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--dubai-red);
  transform: scale(1.2);
}

/* Responsive Design for Programs Slider */
@media (max-width: 768px) {
  .degree-toggle-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-slide-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .program-slide-header {
    flex-direction: column;
    gap: 15px;
  }

  .slider-navigation {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .degree-toggle-buttons {
    grid-template-columns: 1fr;
  }

  .program-slide {
    padding: 20px;
  }
}
