/* Container */
/* Container */
.peer-container {
  line-height: 1.6;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  overflow: hidden; /* Prevent overflow from child animations */
}

/* Section Rows */
.peer-row {
  width: 100%;
  padding: 30px 0;
  transition: background-color 0.5s ease;
  display: block;
  overflow: hidden;
  position: relative;
}

.peer-white {
  background-color: #ffffff;
}

.peer-gray {
  background-color: #f9f9f9;
}

/* Content Wrapper */
.peer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Typography */
.peer-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.2em;
  font-weight: bold;
}

.peer-subtitle {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.peer-intro {
  font-size: 1.2em;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

/* Lists */
ul {
  list-style-type: disc;
  margin-left: 30px;
  padding-left: 0;
}

ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Testimonials */
.peer-testimonial,
blockquote {
  font-style: italic;
  background-color: #eef2f7;
  border-left: 4px solid #1976d2;
  margin: 20px 0;
  padding: 15px 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: #333;
}

/* Links */
a {
  color: #1976d2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Animation on Scroll */
.peer-animate-hidden {
  opacity: 0 !important;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.peer-animate-visible {
  opacity: 1 !important;
  transform: translateY(0);
}

/* Predefined Keyframe Animations */
.peer-fade-in {
  animation: peerFadeIn 1.2s ease-in;
}

.peer-slide-in-left {
  animation: peerSlideInLeft 1.2s ease;
}

.peer-slide-in-right {
  animation: peerSlideInRight 1.2s ease;
}

@keyframes peerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes peerSlideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes peerSlideInRight {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Tweaks */
@media screen and (max-width: 768px) {
  .peer-title,
  .peer-subtitle {
    font-size: 1.5em;
    text-align: center;
  }

  .peer-intro {
    font-size: 1.05em;
    padding: 0 10px;
  }

  ul {
    margin-left: 20px;
  }

  blockquote,
  .peer-testimonial {
    font-size: 0.95em;
    padding: 12px 15px;
  }

  .peer-content {
    padding: 0 15px;
  }
}


/*Peer Block*/

/* Accordion Wrapper */
.peer-accordion-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* Titles */
.peer-section-title,
.peer-main-heading {
  font-size: 1.5em;
  margin: 8px 0;
  font-weight: bold;
}

.peer-accordion-container {
  margin-top: 0;
}

.peer-programme-section {
  margin-bottom: 4px;
}

/* Accordion Toggle */
.peer-accordion-toggle {
  background-color: #f2f2f2;
  color: #000;
  font-size: 1em;
  padding: 6px 10px;
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  margin: 0;
}

.peer-accordion-toggle.active {
  background-color: #e0e0e0;
}

/* Accordion Content */
.peer-accordion-content {
  display: none;
  margin: 0;
  padding: 0;
}

.peer-accordion-content.active {
  display: block;
}

/* Clickable Learner Block */
.peer-learner-row-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
}

.peer-learner-row-wrapper {
  padding: 10px 12px;
  border-radius: 4px;
  transition: background-color 0.25s ease;
}

/* 👇 This makes the hover color appear */
.peer-learner-row-link:hover .peer-learner-row-wrapper {
  background-color: rgba(255, 127, 80, 0.1); /* light coral background */
}

/* Reset inner elements */
.peer-learner-row-link *,
.peer-learner-row-link:hover *,
.peer-learner-row-link:focus *,
.peer-learner-row-link:active * {
  text-decoration: none !important;
  background: transparent !important;
  text-decoration: none !important;
  box-shadow: none !important;
  color: inherit !important;
}


/* Learner Row Flex Layout */
.peer-learner-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Learner Photo */
.peer-learner-photo img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.peer-photo-placeholder {
  width: 56px;
  height: 56px;
  background-color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
  font-style: italic;
  font-size: 0.75em;
}

/* Learner Details */
.peer-learner-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4px;
}

.peer-learner-name-row {
  font-size: 0.95em;
  font-weight: bold;
}

.peer-learner-title {
  font-weight: normal;
  margin-right: 4px;
}

.peer-learner-last-name {
  text-transform: uppercase;
}

/* Phone Link */
.peer-learner-phone a {
  color: #000;
  box-shadow: inset 0 -1px 0 #ff7f50;
  background: linear-gradient(to bottom, #ff7f50 0%, #ff7f50 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 0 0;
  text-decoration: none;
  transition: background-size 0.2s ease-in;
}

.peer-learner-phone a:hover {
  background-size: 4px 100%;
  color: #000;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .peer-learner-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .peer-learner-photo img,
  .peer-photo-placeholder {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .peer-accordion-toggle {
    font-size: 0.95em;
    padding: 6px 8px;
  }

  .peer-learner-name-row {
    font-size: 0.9em;
  }

  .peer-learner-phone a {
    font-size: 0.8em;
  }
}

@media screen and (max-width: 480px) {
  .peer-section-title,
  .peer-main-heading {
    font-size: 1.2em;
  }

  .peer-learner-name-row {
    font-size: 0.85em;
  }

  .peer-learner-phone a {
    font-size: 0.75em;
  }
}



/* Container */
.node-peer-container {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
}

/* Wrapper Card */
.node-peer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Photo */
.node-peer-photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
}

.node-peer-photo-placeholder {
  width: 160px;
  height: 160px;
  background-color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
  font-style: italic;
  font-size: 0.9em;
}

/* Details */
.node-peer-details {
  flex: 1;
  min-width: 250px;
}

.node-peer-title {
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.node-peer-meta {
  font-size: 1em;
  margin-bottom: 20px;
}

.node-peer-programme a {
  color: #000;
  box-shadow: inset 0 -1px 0 #ff7f50;
  background: linear-gradient(to bottom, #ff7f50 0%, #ff7f50 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 0 0;
  text-decoration: none;
  transition: background-size 0.2s ease-in;
}

.node-peer-programme a:hover {
  background-size: 4px 100%;
  color: #000;
}

.node-peer-phone a {
  background: rgba(3, 123, 144, 0.1);
  padding: 5px 10px;
  text-decoration: none;
  color: #037b90;
  font-weight: bold;
}

/* Body text */
.node-peer-body {
  line-height: 1.7;
  color: #444;
}

/* Related Peers Section */
.node-peer-related {
  margin-top: 40px;
  padding: 20px;
  background: #f9f9f9;
}

.node-peer-related h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #000;
}

.node-peer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.node-peer-related-box {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #000;
  padding: 10px;
  transition: background-color 0.3s ease;
  align-items: center;
}

.node-peer-related-box:hover {
  background-color: #f0f8ff;
}

.node-peer-related-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

.node-peer-related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.node-peer-related-name {
  font-weight: bold;
  font-size: 1em;
  color: #222;
}

.node-peer-related-phone {
  font-size: 0.9em;
  color: #037b90;
  margin-top: 4px;
}


/* Scroll Animation */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .node-peer-wrapper {
    flex-direction: column;
  }

  .node-peer-related {
    padding: 10px;
  }

  .node-peer-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


