/* JBMR Sports Styles */

/* Right to Left Marquee Animation for JBMR page */
@keyframes marquee-rtl {
  0% { 
    transform: translateX(100%); 
  }
  100% { 
    transform: translateX(-100%); 
  }
}

.animate-marquee-rtl {
  animation: marquee-rtl 15s linear infinite;
  display: flex;
  white-space: nowrap;
}

/* Ensure smooth animation by duplicating content */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee-rtl 15s linear infinite;
}

/* Video Modal Styles */
.video-modal {
  backdrop-filter: blur(4px);
  transition: all 0.3s ease-in-out;
}

.video-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}



/* Team Member Cards - Compact Design */
.team-card {
  transition: all 0.3s ease-in-out;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.15);
}

/* Compact team section styling */
.team-section {
  padding: 2.5rem 0;
}

.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.team-member-card {
  background: white;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.team-member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-member-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
}

.team-member-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.team-member-role {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.team-member-bio {
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.4;
}

/* FAQ Styles */
.faq-question {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  color: #3b82f6;
  background-color: #f8fafc;
  padding: 8px;
  border-radius: 4px;
  margin: -8px;
}

.faq-answer {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.faq-answer.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.faq-answer:not(.hidden) {
  max-height: 200px;
  opacity: 1;
  margin-top: 8px;
}

/* Logo Slider Enhancements */
.marquee-container,
.logo-container2 {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* Certificate Hover Effects */
.certificate img {
  transition: all 0.3s ease-in-out;
}

.certificate:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
}

/* WhatsApp Button Enhancement */
.whatsapp-button {
  transition: all 0.3s ease-in-out;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(34, 197, 94, 0.3);
}

/* Enhanced CTA Button Styles */
.cta-button {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.01);
}

.cta-button img {
  width: 2rem;
  height: 2rem;
  filter: brightness(1.1);
}

/* Responsive Video Container */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Fade in animation for lazy loading */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Typing animation cursor */
#typing-animation::after {
  content: '|';
  animation: blink 1s infinite;
  color: #3b82f6;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Enhanced button styles */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}



/* Modal enhancements */
.modal-backdrop {
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .animate-marquee-rtl {
    animation-duration: 10s;
  }
  
  .team-card:hover {
    transform: none;
  }
  
  .team-member-card {
    padding: 0.75rem;
  }
  
  .team-member-avatar {
    width: 4rem;
    height: 4rem;
  }
  
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  .cta-button img {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .team-section {
    padding: 2rem 0;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
  }
}

/* Focus states for accessibility */
.faq-question:focus,
button:focus,
a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .video-modal,
  video,
  .animate-marquee-rtl {
    display: none !important;
  }
  
  .team-card {
    break-inside: avoid;
  }
}
