/* Partners Page – Dilla University */

:root {
  --primary-green: #1a5c3a;
  --secondary-green: #2d7a4f;
  --accent-gold: #c9a944;
  --light-green: #e8f5e9;
  --dark-green: #0d3d26;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-light: #4a4a68;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background pattern */
.dilla-partners-wrapper {
  position: relative;
  background: #f8fafc;
  padding: 60px 0;
  overflow: hidden;
}
.partners-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.1;
}
.partners-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 15px;
  font-weight: 700;
}
.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Subsection Titles */
.subsection-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-green);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent-gold);
  display: inline-block;
}

/* ===== MEMBERSHIPS CAROUSEL ===== */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 30px 0;
  z-index: 1;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  max-width: 220px; /* adjust as needed */
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.carousel-slide img:hover {
  transform: scale(1.05);
}
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 2rem;
  color: var(--primary-green);
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s;
}
.carousel-prev:hover,
.carousel-next:hover {
  background: var(--accent-gold);
  color: var(--white);
}
.carousel-prev {
  left: 10px;
}
.carousel-next {
  right: 10px;
}

/* ===== PARTNERSHIPS GRID ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 0;
  z-index: 1;
  position: relative;
}
.partner-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 4px solid transparent;
}
.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent-gold);
}
.card-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f8fafc;
  cursor: pointer;
  gap: 15px;
}
.card-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-title {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}
.toggle-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-green);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.toggle-btn:hover {
  color: var(--accent-gold);
}
.card-description {
  padding: 0 20px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  background: var(--white);
}
.card-description p {
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .carousel-slide {
    max-width: 150px;
  }
  .carousel-slide img {
    height: 120px;
  }
  .partners-grid {
    grid-template-columns: 1fr;
  }
  .card-header {
    flex-wrap: wrap;
  }
  .card-title {
    width: calc(100% - 80px);
  }
}