/* Partners Section Styles */
/* Consolidated and optimized CSS for Partnercontainer */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main Container */
.Partnercontainer {
  background-color: #ffffff;
  width: 100%;
  min-height: 80vh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  padding: 2rem 0;
}

/* Typography */
.Partnercontainer h1 {
  margin-top: 1rem;
  font-size: 2rem;
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Carousel */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  gap: 1rem;
}

/* Carousel Images */
.carousel img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel img:hover {
  border-color: #f39c12;
  transform: scale(1.05);
}

.carousel img.selected {
  border-color: #f39c12;
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Content Section */
.content {
  background-color: #2c3e50;
  color: white;
  display: flex;
  width: 100%;
  min-height: 300px;
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Logo Section */
.content .logo-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a252f;
  border-right: 2px solid white;
  padding: 2rem;
}

.content .logo-section img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #e84148;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.content .logo-section img:hover {
  transform: scale(1.05);
}

/* Info Section */
.content .info-section {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.content h2 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
}

.content p {
  display: block;
  font-size: 1rem;
  line-height: 1.6;
  color: #f8f9fa;
  margin-bottom: 1rem;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Explore Button */
.explore-button {
  padding: 12px 24px;
  border: 2px solid white;
  color: white;
  background-color: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: "Times New Roman", Times, serif;
  min-width: 120px;
}

/* Visit Website Button */
.visit-website-button {
  padding: 12px 24px;
  border: 2px solid #f39c12;
  color: #f39c12;
  background-color: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: "Times New Roman", Times, serif;
  min-width: 120px;
}

.explore-button:hover {
  background-color: white;
  color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.visit-website-button:hover {
  background-color: #f39c12;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.explore-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.visit-website-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

/* Navigation Buttons */
.navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #2c3e50;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid #2c3e50;
}

.navigation:hover {
  background-color: #2c3e50;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.navigation:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.3);
}

.navigation.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.prev {
  left: 2rem;
}

.next {
  right: 2rem;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2c3e50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error States */
.error {
  border: 2px solid #e74c3c !important;
  background-color: #fdf2f2;
}

.error::after {
  content: "⚠️";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .Partnercontainer {
    padding: 1.5rem 0;
  }

  .carousel img {
    width: 100px;
    height: 100px;
  }

  .content .logo-section img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .Partnercontainer {
    min-height: auto;
    padding: 1rem 0;
  }

  .Partnercontainer h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .carousel-container {
    height: 150px;
    margin-bottom: 1rem;
  }

  .carousel img {
    width: 80px;
    height: 80px;
  }

  .carousel img.selected {
    transform: scale(1.2);
  }

  .content {
    flex-direction: column;
    min-height: auto;
    margin: 1rem;
    border-radius: 8px;
  }

  .content .logo-section {
    border-right: none;
    border-bottom: 2px solid white;
    padding: 1.5rem;
  }

  .content .logo-section img {
    width: 100px;
    height: 100px;
  }

  .content .info-section {
    padding: 1.5rem;
  }

  .content h2 {
    font-size: 1.4rem;
  }

  .content p {
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    transition: all 0.3s ease;
  }

  .content p.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }

  .explore-button,
  .visit-website-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 200px;
  }

  .navigation {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .prev {
    left: 1rem;
  }

  .next {
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .Partnercontainer h1 {
    font-size: 1.3rem;
  }

  .carousel-container {
    height: 120px;
  }

  .carousel img {
    width: 70px;
    height: 70px;
  }

  .carousel img.selected {
    transform: scale(1.15);
  }

  .content {
    margin: 0.5rem;
  }

  .content .logo-section {
    padding: 1rem;
  }

  .content .logo-section img {
    width: 80px;
    height: 80px;
  }

  .content .info-section {
    padding: 1rem;
  }

  .content h2 {
    font-size: 1.2rem;
  }

  .content p {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    transition: all 0.3s ease;
  }

  .content p.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
  }

  .explore-button,
  .visit-website-button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .navigation {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .prev {
    left: 0.5rem;
  }

  .next {
    right: 0.5rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .carousel,
  .carousel img,
  .navigation,
  .explore-button,
  .content .logo-section img {
    transition: none;
  }

  .loading::after {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .carousel img {
    border-width: 4px;
  }

  .carousel img.selected {
    border-width: 5px;
  }

  .navigation {
    border-width: 3px;
  }
}

/* Print Styles */
@media print {
  .navigation,
  .explore-button {
    display: none;
  }

  .content {
    break-inside: avoid;
  }
}
