/* courses.css - Premium Styles for the Courses page with parallax effects */

@keyframes cardFadeInUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes accentSlide { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes iconFloat { 
  0%, 100% { transform: translateY(0px) rotate(0deg); } 
  50% { transform: translateY(-8px) rotate(5deg); } 
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes parallaxMove {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-20px); }
}

#legal-section { 
  background: linear-gradient(180deg, #fafbff 0%, #f0f4ff 40%, #e8eeff 100%); 
  padding: 140px 20px 100px; 
  position: relative; 
  overflow: hidden; 
  min-height: 100vh; 
}

/* Premium parallax background elements */
#legal-section::before, 
#legal-section::after { 
  content: ''; 
  position: fixed; 
  border-radius: 50%; 
  z-index: 0; 
  pointer-events: none;
  animation: parallaxMove 6s ease-in-out infinite alternate;
}

#legal-section::before { 
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%); 
  top: -200px; 
  right: -200px;
}

#legal-section::after { 
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%); 
  bottom: -150px; 
  left: -150px;
  animation-delay: 3s;
}

/* Additional floating elements for depth */
#legal-section .parallax-circle-1,
#legal-section .parallax-circle-2 {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.legal-header { 
  text-align: center; 
  margin-bottom: 70px; 
  position: relative; 
  z-index: 1;
  animation: cardFadeInUp 0.8s ease-out;
}

.legal-header h1 { 
  font-size: 3.5rem; 
  font-weight: 800; 
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 50%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px; 
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

.legal-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.legal-header p { 
  font-size: 1.15rem; 
  color: #64748b; 
  margin-bottom: 24px; 
  line-height: 1.7; 
  max-width: 750px; 
  margin-left: auto; 
  margin-right: auto;
  font-weight: 500;
}

.trust-badge { 
  display: inline-block; 
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08)); 
  border: 2px solid rgba(99, 102, 241, 0.2); 
  border-radius: 50px; 
  padding: 10px 28px; 
  font-size: 0.9rem; 
  color: #4f46e5; 
  font-weight: 600; 
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.legal-search-wrapper { 
  max-width: 550px; 
  margin: 0 auto 60px; 
  position: relative; 
  z-index: 1;
}

.legal-search { 
  width: 100%; 
  padding: 16px 24px 16px 50px; 
  border: 2px solid rgba(226, 232, 240, 0.8); 
  border-radius: 16px; 
  font-size: 1rem; 
  color: #1e293b; 
  background: #ffffff; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.legal-search:focus { 
  outline: none; 
  border-color: #6366f1; 
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15), 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.legal-search-icon { 
  position: absolute; 
  left: 18px; 
  top: 50%; 
  transform: translateY(-50%); 
  color: #64748b; 
  pointer-events: none;
  transition: color 0.3s ease;
}

.legal-search:focus + .legal-search-icon {
  color: #6366f1;
}

.legal-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px; 
  max-width: 1400px; 
  margin: 0 auto; 
  position: relative; 
  z-index: 1;
}
@media (max-width: 1024px) { .legal-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 768px) { .legal-grid { grid-template-columns: 1fr; gap: 20px; } }

.legal-card { 
  background: #ffffff; 
  border: 1px solid #e5e7eb; 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04); 
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
  animation: cardFadeInUp 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards; 
  opacity: 0; 
  cursor: pointer; 
  position: relative;
}

.legal-card:nth-child(1) { animation-delay: 0.1s; } 
.legal-card:nth-child(2) { animation-delay: 0.15s; } 
.legal-card:nth-child(3) { animation-delay: 0.2s; } 
.legal-card:nth-child(4) { animation-delay: 0.25s; } 
.legal-card:nth-child(5) { animation-delay: 0.3s; } 
.legal-card:nth-child(6) { animation-delay: 0.35s; } 
.legal-card:nth-child(7) { animation-delay: 0.4s; } 
.legal-card:nth-child(n+8) { animation-delay: 0.45s; }

.legal-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0;
  height: 5px; 
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%); 
  transform: scaleX(0); 
  transform-origin: left; 
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px 20px 0 0;
}

.legal-card:hover::before { 
  transform: scaleX(1); 
}

.legal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: 20px;
}

.legal-card:hover::after {
  opacity: 1;
}

.legal-card:hover { 
  transform: translateY(-8px);
  border-color: #e5e7eb; 
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.legal-card-photo {
  position: relative;
  overflow: hidden;
}

.legal-card-photo img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-card:hover .legal-card-photo img {
  transform: scale(1.1) rotate(2deg);
}

.legal-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.legal-card:hover .legal-card-photo::after {
  opacity: 1;
}

.legal-card-header { 
  padding: 20px; 
  display: flex; 
  align-items: flex-start; 
  gap: 16px;
}

.legal-card-icon { 
  width: 56px; 
  height: 56px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); 
  border-radius: 12px; 
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
}

.legal-card-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.legal-card:hover .legal-card-icon { 
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.legal-card:hover .legal-card-icon::before {
  opacity: 1;
}

.legal-card-icon svg { 
  width: 28px; 
  height: 28px; 
  stroke: #ffffff; 
  stroke-width: 2; 
  fill: none;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.legal-card:hover .legal-card-icon svg {
  stroke: #ffffff;
  animation: iconFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.legal-card-content { 
  flex: 1;
}

.legal-card-title { 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: #1f2937; 
  margin: 0 0 8px 0; 
  line-height: 1.4; 
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.legal-card:hover .legal-card-title { 
  color: #6366f1; 
}

.legal-card-number { 
  font-size: 0.75rem; 
  font-weight: 700; 
  background: linear-gradient(135deg, #6366f1, #8b5cf6); 
  color: #ffffff; 
  padding: 5px 12px; 
  border-radius: 8px; 
  display: inline-block; 
  margin-top: 10px; 
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.legal-card:hover .legal-card-number {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.legal-card-actions { 
  padding: 16px 20px 20px;
}
.legal-btn { 
  padding: 12px 20px; 
  border: none; 
  border-radius: 10px; 
  font-size: 0.88rem; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  box-sizing: border-box;
}

.legal-btn:hover {
  transform: translateY(-2px);
}

.legal-btn-view { 
  background: #6366f1; 
  color: #ffffff; 
  border: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.legal-btn-view:hover { 
  background: #4f46e5;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.legal-btn-download { 
  background: #f5f3ff; 
  color: #6366f1; 
  border: 1px solid #e9d5ff;
  box-shadow: none;
  padding: 11px 19px;
}

.legal-btn-download:hover { 
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.legal-btn-download svg,
.legal-btn-download span {
  transition: color 0.3s ease;
}

.legal-btn-download:hover svg,
.legal-btn-download:hover span {
  color: #ffffff;
}

.whatsapp-btn {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border: 1px solid #dcfce7 !important;
  box-shadow: none !important;
  padding: 11px 19px !important;
}

.whatsapp-btn i,
.whatsapp-btn span {
  transition: color 0.3s ease;
}

.whatsapp-btn:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2) !important;
  transform: translateY(-2px) !important;
}

.whatsapp-btn:hover i,
.whatsapp-btn:hover span {
  color: #ffffff !important;
}

.legal-btn svg { 
  width: 18px; 
  height: 18px; 
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Larger icon specifically for Brochure button */
.legal-btn-download svg {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  flex-shrink: 0 !important;
}

.legal-btn-download:hover svg { 
  transform: translateY(2px); 
}

.legal-btn-view:hover .btn-arrow {
  transform: translateX(4px);
}
.legal-no-results { 
  text-align: center; 
  padding: 80px 20px; 
  color: #64748b; 
  position: relative; 
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 500;
}

.legal-no-results p { 
  font-size: 1.1rem; 
  margin: 0;
}

@media (prefers-reduced-motion: reduce) { 
  .legal-card, 
  .legal-card::before, 
  .legal-card-icon, 
  .legal-btn,
  #legal-section::before,
  #legal-section::after { 
    animation: none !important; 
    transition: none !important; 
  } 
}

/* Premium Course Meta Information Styling */
.course-meta {
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 10px;
}

.course-eligibility,
.course-duration,
.course-fee {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.course-eligibility strong,
.course-duration strong,
.course-fee strong {
  color: #6366f1;
  font-weight: 600;
  min-width: 75px;
  flex-shrink: 0;
}

.course-eligibility span,
.course-duration span {
  color: #6b7280;
  font-weight: 500;
  line-height: 1.4;
}

.course-fee span {
  color: #6366f1;
  font-weight: 700;
  font-size: 1.02em;
}

/* Premium Course Image Styling */
.legal-card-photo {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-card-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.05);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.legal-card:hover .legal-card-photo::before {
  opacity: 1;
}

.legal-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-card:hover .legal-card-photo img {
  transform: scale(1.08);
}

/* Premium Card Number/Badge */
.legal-card-number { 
  font-size: 0.7rem; 
  font-weight: 700; 
  background: #f5f3ff; 
  color: #6366f1; 
  padding: 5px 12px; 
  border-radius: 10px; 
  display: inline-block; 
  margin-top: 8px; 
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Featured Course Badge */
.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fbbf24;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
  z-index: 10;
}



@media (max-width: 768px) { 
  #legal-section {
    padding: 100px 15px 60px;
  }
  
  .legal-header h1 { 
    font-size: 2.5rem;
  }
  
  .legal-header h1::after {
    width: 60px;
    height: 3px;
  }
  
  .legal-header p { 
    font-size: 1rem;
  }
  
  .trust-badge {
    font-size: 0.8rem;
    padding: 8px 20px;
  }
  
  .legal-search {
    padding: 14px 20px 14px 45px;
  }
  
  .legal-card-header { 
    padding: 20px;
  }
  
  .legal-card-actions { 
    padding: 0 20px 20px;
    flex-direction: column;
    gap: 10px !important;
  }
  
  .legal-card-actions .legal-btn {
    width: 100%;
    justify-content: center;
  }
  
  .legal-btn {
    padding: 11px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) { 
  #legal-section {
    padding: 80px 12px 50px;
  }
  
  .legal-header h1 { 
    font-size: 2rem;
  }
  
  .legal-header p { 
    font-size: 0.95rem;
  }
  
  .legal-grid { 
    gap: 16px;
  }
  
  .legal-card-header { 
    flex-direction: column; 
    text-align: center;
    gap: 12px;
  }
  
  .legal-card-icon {
    width: 56px;
    height: 56px;
  }
  
  .legal-card-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .legal-btn { 
    font-size: 0.8rem;
    padding: 10px 14px;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for the page */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4f46e5, #7c3aed);
}
/* Modal Styles */
.legal-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 60, 120, 0.92); z-index: 9999; animation: fadeIn 0.3s ease; }
.legal-modal.active { display: flex; align-items: center; justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.legal-modal-content { position: relative; max-width: 90%; max-height: 90%; overflow: auto; border-radius: 12px; animation: modalZoom 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes modalZoom { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.legal-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(6px); z-index: 9999; animation: modalBackdropFadeIn 0.3s ease; overflow: auto; }
@keyframes modalBackdropFadeIn { from { opacity: 0; backdrop-filter: blur(0px); } to { opacity: 1; backdrop-filter: blur(6px); } }
.legal-modal.active { display: flex; align-items: center; justify-content: center; }
.legal-modal-wrapper { width: 95vw; max-width: 90vw; height: 95vh; max-height: 95vh; display: flex; flex-direction: column; background: #FFFFFF; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); overflow: hidden; animation: modalContentZoom 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes modalContentZoom { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.legal-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: #FFFFFF; border-bottom: 1px solid #E8EFF8; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); flex-shrink: 0; position: sticky; top: 0; z-index: 10; }
.legal-modal-header h2 { margin: 0; font-size: 1.2rem; font-weight: 700; color: #0B3C78; flex: 1; word-break: break-word; }
.legal-modal-actions { display: flex; align-items: center; gap: 12px; }
.legal-modal-download { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #0A74C9, #0B3C78); color: #FFFFFF; border: none; padding: 10px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.legal-modal-download:hover { box-shadow: 0 8px 24px rgba(10, 116, 201, 0.3); transform: translateY(-2px); }
.legal-modal-download svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.legal-modal-download:hover svg { transform: translateY(2px); }
.legal-modal-close { background: none; border: none; color: #5B6B82; font-size: 1.5rem; cursor: pointer; padding: 8px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; border-radius: 8px; }
.legal-modal-close:hover { background: #F0F7FF; color: #0B3C78; transform: rotate(90deg); }
.legal-modal-body { flex: 1; padding: 24px; overflow: auto; display: flex; align-items: center; justify-content: center; background: #FAFBFC; }
.legal-modal-body img { max-width: 100%; max-height: calc(95vh - 140px); object-fit: contain; border-radius: 8px; cursor: grab; transition: cursor 0.2s ease; }
.legal-modal-body img:active { cursor: grabbing; }
@media (max-width: 768px) { .legal-modal-wrapper { width: 98vw; max-width: 98vw; height: 98vh; max-height: 98vh; } .legal-modal-header { flex-direction: column; gap: 12px; align-items: flex-start; padding: 16px; } .legal-modal-header h2 { font-size: 1.05rem; } .legal-modal-actions { width: 100%; } .legal-modal-download { flex: 1; } .legal-modal-close { position: absolute; top: 16px; right: 16px; } .legal-modal-body { padding: 16px; } .legal-modal-body img { max-height: calc(98vh - 120px); } }
@media (max-width: 768px) { .legal-header h1 { font-size: 2.2rem; } .legal-header p { font-size: 1rem; } #legal-section { padding: 60px 15px; } .legal-card-header { padding: 20px; } .legal-card-actions { padding: 0 20px 16px; } }
@media (max-width: 480px) { .legal-header h1 { font-size: 1.8rem; } .legal-header p { font-size: 0.95rem; } .legal-grid { gap: 12px; } .legal-card-header { flex-direction: column; text-align: center; } .legal-btn { font-size: 0.85rem; } }
