/* About Page Styles */
.about-banner {
  background: linear-gradient(135deg, #0a2463 0%, #3e92cc 100%);
  position: relative;
  overflow: hidden;
}

.about-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/patterns/dots-pattern.svg");
  background-size: 200px;
  opacity: 0.1;
  z-index: 0;
}

/* About Image Container */
.about-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-image-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--bs-primary);
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: rotate(-5deg);
}

/* Mission Text */
.mission-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mission-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mission-signature img {
  max-width: 150px;
  margin-bottom: 10px;
}

.mission-signature p {
  font-weight: 700;
  color: #333;
  margin-bottom: 0;
}

.mission-signature span {
  font-size: 0.9rem;
  color: #666;
}

/* Values Section */
.values-section {
  position: relative;
  z-index: 1;
}

.value-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--bs-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  font-size: 24px;
  transition: transform 0.3s, background-color 0.3s;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
  background-color: var(--bs-primary);
  color: white;
}

.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  transition: color 0.3s;
}

.value-card:hover h3 {
  color: var(--bs-primary);
}

.value-card p {
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Timeline */
.journey-section {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.journey-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/patterns/grid-pattern.svg");
  background-size: 30px;
  opacity: 0.03;
  z-index: 0;
}

.timeline-container {
  position: relative;
  z-index: 2;
  padding: 20px 0;
  overflow: visible;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  overflow: visible;
  display: block;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: linear-gradient(
    to bottom,
    rgba(var(--bs-primary-rgb), 0.1),
    rgba(var(--bs-primary-rgb), 0.8),
    rgba(var(--bs-primary-rgb), 0.1)
  );
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
  z-index: 1;
}

/* Timeline items - general */
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s, transform 0.5s;
  display: block;
  z-index: 2;
}

/* Clear floats after each item */
.timeline-item::after {
  content: "";
  display: table;
  clear: both;
}

/* Left side items (odd) */
.timeline-item:nth-child(odd) .timeline-content-wrapper {
  float: left;
  width: 45%;
  margin-right: 5%;
  text-align: right;
}

/* Right side items (even) */
.timeline-item:nth-child(even) .timeline-content-wrapper {
  float: right;
  width: 45%;
  margin-left: 5%;
  text-align: left;
}

.timeline-animated .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 20px;
  background-color: var(--bs-primary);
  border: 4px solid #fff;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  left: 50%;
  margin-left: -12px;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timeline-date {
  position: absolute;
  top: 18px;
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 22px;
  transition: transform 0.3s;
  z-index: 2;
}

/* Left side dates */
.timeline-item:nth-child(odd) .timeline-date {
  right: -150px;
}

/* Right side dates */
.timeline-item:nth-child(even) .timeline-date {
  left: -150px;
  text-align: right;
}

.timeline-item:hover .timeline-date {
  transform: scale(1.1);
}

.timeline-content {
  padding: 25px 30px;
  background-color: white;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 2;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-content::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  z-index: 2;
}

/* Left side arrow */
.timeline-item:nth-child(odd) .timeline-content::after {
  right: -10px;
  border-left: 10px solid white;
}

/* Right side arrow */
.timeline-item:nth-child(even) .timeline-content::after {
  left: -10px;
  border-right: 10px solid white;
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.timeline-content p {
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Responsive Adjustments for Timeline */
@media (max-width: 991.98px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item:nth-child(odd) .timeline-content-wrapper,
  .timeline-item:nth-child(even) .timeline-content-wrapper {
    width: calc(100% - 90px);
    float: right;
    margin-left: 90px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 21px;
    margin-left: 0;
  }

  .timeline-date {
    position: relative;
    top: 0;
    left: 0 !important;
    right: auto !important;
    text-align: left !important;
    margin-bottom: 10px;
    display: block;
    font-size: 18px;
  }

  .timeline-content::after {
    display: none;
  }
}

/* Team Cards */
.team-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  transition: bottom 0.3s;
}

.team-card:hover .team-social {
  bottom: 0;
}

.team-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  transition: all 0.3s;
}

.team-social-link:hover {
  background-color: var(--bs-primary);
  color: white;
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.team-info span {
  display: block;
  color: var(--bs-primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.team-info p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  align-items: center;
}

.partner-item {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.partner-item:hover {
  transform: translateY(-5px);
}

.partner-item img {
  max-width: 100%;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Award Cards */
.award-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  height: 100%;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.award-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  font-size: 28px;
}

.award-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.award-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .about-image-badge {
    right: 20px;
    bottom: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }

  .partner-item {
    padding: 15px;
  }

  .partner-item img {
    max-height: 60px;
  }
}
