/* Custom styles for specific pages */

/* Course Overlay Gradients */
.course-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  border-radius: 8px;
}

.university-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  opacity: 0.8;
  transition: all 0.5s ease;
}

.university-item:hover .university-overlay-gradient {
  opacity: 0.9;
  background: rgba(26, 60, 110, 0.6);
}

/* Glass Effect */
.bg-glass {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Icon Circles */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.icon-circle-sm {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon-circle-md {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.icon-circle-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* University Cards */
.university-item {
  margin-bottom: 20px;
  transition: all 0.5s ease;
}

.university-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.university-item:hover .university-overlay {
  opacity: 1;
}

/* Counter Styles */
.counter {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.counter-icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background: #e94e65;
  color: #fff;
  font-size: 30px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.counter-value {
  font-size: 36px;
  font-weight: 700;
  color: #1a3c6e;
  margin-bottom: 5px;
  display: block;
}

.counter-value-container {
  margin: 15px 0;
}

.counter-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Animation Effects */
.hover-float {
  transition: transform 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-10px);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-up {
  transition: all 0.3s ease;
}

.hover-up:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Service Button */
.service-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.training-item:hover .service-btn,
.service-item:hover .service-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Background Gradients */
.bg-gradient-light {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* .bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df, #224abe);
} */

/* University Detail Styling */
.university-detail-header {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.university-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
}

.university-logo-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Course Category Card */
.category-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-card-header {
  padding: 20px;
  background: #1a3c6e;
  color: #fff;
}

.category-card-body {
  padding: 20px;
}

/* Glowing buttons */
.btn-glow {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(233, 78, 101, 0.5);
  transform: scale(1.05);
}

.btn-glow:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-glow:hover:before {
  transform: rotate(30deg) translateX(100%);
}

/* Custom Breadcrumb Styling */
.breadcrumb {
  background-color: transparent !important;
  padding: 0 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Utility classes */

/* Fee details styling */
.fee-breakdown {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.fee-badge {
  padding: 8px 15px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.scholarship-badge {
  background-color: #e8f9f1;
  color: #1cc88a;
}

.onetime-badge {
  background-color: #e8f1f9;
  color: #4e73df;
}

.yearly-badge {
  background-color: #f9f1e8;
  color: #fd7e14;
}

/* Course Detail Page Styling */
.course-detail-tabs .nav-link {
  border-radius: 10px;
  margin: 0 5px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.course-detail-tabs .nav-link.active {
  background-color: #1a3c6e;
  color: #fff;
}

.course-details-content {
  border-radius: 10px;
  overflow: hidden;
}

/* University Comparison Styling */
.comparison-table th {
  background-color: #1a3c6e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.comparison-table td {
  vertical-align: middle;
}

/* Scholarship Card */
.scholarship-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.scholarship-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.scholarship-card-header {
  padding: 15px;
  background: #1a3c6e;
  color: #fff;
}

.scholarship-card-body {
  padding: 20px;
}

.scholarship-amount {
  font-size: 24px;
  font-weight: 700;
  color: #e94e65;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .university-logo-container {
    width: 100px;
    height: 100px;
  }

  .counter-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
  }

  .counter-value {
    font-size: 28px;
  }
}

@media (max-width: 767.98px) {
  .icon-circle-lg {
    width: 100px;
    height: 100px;
  }

  .university-detail-overlay {
    padding: 20px;
  }
}

/* Input Group Custom Styling */
.input-group-custom {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.input-group-custom .form-control:focus,
.input-group-custom .form-select:focus {
  border-color: #ced4da;
  box-shadow: none;
}

.input-group-custom .input-group-text {
  border-right: 0;
}

.form-control,
.form-select {
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #4e73df;
}

/* Modal styling enhancements */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  border-bottom: 0;
}

.modal-footer {
  border-top: 0;
}

/* Form label styling */
.form-label.text-primary {
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Animation for form fields */
.form-control:focus + .form-label.text-primary,
.form-select:focus + .form-label.text-primary {
  transform: translateY(-3px);
}

/* Pulse animation for icons */
.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 115, 223, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(78, 115, 223, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 115, 223, 0);
  }
}

/* Application Form Modal Styling - No Scrolling */
#applyModal .modal-dialog {
  max-width: 800px;
}

#applyModal .modal-body {
  max-height: none;
  overflow: visible;
}

/* Apply to all application modals */
[id^="applyModal"] .modal-dialog {
  max-width: 800px;
  margin: 30px auto;
}

[id^="applyModal"] .modal-body {
  max-height: none;
  overflow: visible;
  padding: 25px;
}

[id^="applyModal"] .modal-content {
  max-height: none;
  overflow: visible;
}

/* Remove scrollable class from application modals */
[id^="applyModal"] .modal-dialog-scrollable {
  max-height: none;
  overflow: visible;
}

/* Ensure form fits well with appropriate spacing */
[id^="applyModal"] .form-group {
  margin-bottom: 15px;
}

[id^="applyModal"] .colorful-badge {
  margin-bottom: 15px;
}

/* Optimize for different screen sizes */
@media (max-width: 991.98px) {
  [id^="applyModal"] .modal-dialog {
    max-width: 90%;
    margin: 20px auto;
  }

  [id^="applyModal"] .modal-body {
    padding: 20px 15px;
  }
}

@media (max-width: 767.98px) {
  [id^="applyModal"] .modal-body {
    padding: 15px 10px;
  }

  [id^="applyModal"] .form-group {
    margin-bottom: 10px;
  }
}

/* Country Selection Section - Clean Theme Styles */
.country-selection-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.country-selection-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.03) 0%, transparent 70%);
  animation: float 20s infinite ease-in-out;
}

/* Country Selection Badge */
.country-selection-badge {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 12px 24px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.country-selection-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.country-selection-badge .badge-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.country-selection-badge .badge-text {
  color: var(--bs-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  font-family: 'Open Sans', sans-serif;
}

/* Country Selection Title */
.country-selection-title {
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 1rem;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.country-selection-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-family: 'Open Sans', sans-serif;
}

/* Country Options Container */
.country-options-container {
  position: relative;
  z-index: 2;
}

/* Country Option Links */
.country-option-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--bs-primary);
  transition: all 0.3s ease;
  position: relative;
  min-width: 120px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.country-option-link:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(var(--bs-primary-rgb), 0.2);
  color: var(--bs-primary);
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.country-option-link.active {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
  color: white;
  border-color: var(--bs-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.3);
}

.country-option-link.active:hover {
  color: white;
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(var(--bs-primary-rgb), 0.4);
}

/* Country Flag Wrapper */
.country-flag-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.country-option-link.active .country-flag-wrapper {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.country-flag-wrapper .fi {
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
}

/* Country Name */
.country-name {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.3px;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
}

/* Active Indicator */
.active-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-success);
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: checkmark-bounce 0.6s ease-out;
}

@keyframes checkmark-bounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .country-selection-title {
    font-size: 2rem;
  }
  
  .country-selection-subtitle {
    font-size: 1rem;
  }
  
  .country-option-link {
    padding: 16px 12px;
    min-width: 100px;
  }
  
  .country-flag-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .country-flag-wrapper .fi {
    font-size: 20px;
  }
  
  .country-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .country-selection-title {
    font-size: 1.75rem;
  }
  
  .country-option-link {
    padding: 12px 8px;
    min-width: 85px;
  }
  
  .country-flag-wrapper {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }
  
  .country-flag-wrapper .fi {
    font-size: 18px;
  }
  
  .country-name {
    font-size: 0.75rem;
  }
}

/* Animation for floating background element */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}
