/* Container Layout */
.expert-panel-wrapper {
  display: flex;
  flex-direction: row;
  max-width: 1370px;
  margin: 0 auto;
}

/* Left Sidebar styling */
.expert-sidebar {
  align-items: center;
  background: linear-gradient(180deg, #f4fcff, #e8f8ff);
  border-radius: 26px;
  box-shadow: 19px 20px 58px 0px #45738a52;
  display: flex;
  flex: 0 0 320px;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.expert-sidebar:before {
  content: "";
  height: 149px;
  left: -43px;
  position: absolute;
  top: -48px;
  width: 168px;
  z-index: 1;
  background: radial-gradient(63.64% 63.64% at 50% 50%, rgba(168, 239, 255, 0.2) 20.19%, rgba(255, 255, 255, 0) 100%);
}

.expert-sidebar:after {
  content: "";
  height: 149px;
  right: -43px;
  position: absolute;
  bottom: -48px;
  width: 168px;
  z-index: 1;
  background: radial-gradient(63.64% 63.64% at 50% 50%, rgba(168, 239, 255, 0.2) 20.19%, rgba(255, 255, 255, 0) 100%);
}

.expert-sidebar .expert-profile-img {
  border-radius: 50%;
  margin-bottom: 20px;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0px 0px 50px 0px #4DDAEB80;
  transition: all 0.3s ease;
}

.expert-name {
  margin: 0;
}

.expert-name a {
  border-bottom: 0;
  color: #1d1d1d;
  text-decoration: none;
}

.expert-title {
  margin: 0 0 16px 0;
}

.expert-name-separator {
  border: none;
  border-top: 1px solid #05A1CC;
  margin: 16px auto 16px;
  width: 97px;
}

.expert-badge {
  background: #D4ECFF80;
  padding: 8px 13px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.expert-linkedin {
  border-bottom: 0;
  color: #42a5f5;
  display: flex;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  text-decoration: none;
  transition: transform .2s ease;
}

.expert-linkedin:hover {
  transform: scale(1.05);
}

.expert-linkedin svg {
  height: 30px;
  width: 30px;
  position: relative;
  left: 0;
}

.expert-linkedin span {
  margin-left: 8px;
  text-align: center;
}

.expert-company {
  padding: 18px 0; 
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.expert-company img {
  height: 20px;
  width: 20px;
}

.expert-social-wrapper {
  align-items: center;
  display: flex;
  justify-content: center;
  max-width: 150px;
  width: 100%;
}

.expert-social-wrapper:after, .expert-social-wrapper:before {
  background-color: #05A1CC80;
  content: "";
  flex: 1;
  height: 1px;
}

/* Right Content styling */
.expert-content {
  flex: 1;
  background: linear-gradient(99.15deg, rgba(227, 250, 255, 0.5) 1.43%, #E8F8FF 98.35%);
  border-radius: 26px;
  box-shadow: 19.26px 19.26px 57.79px 0px #45738A29;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

/* Highlighted Box styling */
.expert-highlight-box {
  background: linear-gradient(0deg, rgba(168, 239, 255, 0.5), rgba(168, 239, 255, 0.5));
  border: 0.25px solid #1FA5C380;
  border-left: 4px solid #1FA5C380;
  border-radius: 0px 16px 16px 0px;
  padding: 24px 32px;
  margin-bottom: 15px;
}

.expert-highlight-box h4 {
  margin-bottom: 0px;
}

.expert-highlight-box p {
  margin: 0;
  font-size: 15px;
  color: #111827;
}

/* ========================================================
   Responsive adjustments for Tablets (768px and below)
   ======================================================== */
@media (max-width: 768px) {
  .expert-panel-wrapper {
    flex-direction: column;
    gap: 0;
  }
  
  .expert-sidebar {
    flex: auto;
    border-radius: 18px;
    padding: 24px;
    
    /* Creates a centered Side-by-Side grid layout */
    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-areas:
      "img name"
      "img sep"
      "img badge"
      "img company"
      "img social";
    column-gap: 32px;
    justify-content: center; /* Centers the entire block in the sidebar */
    align-content: center;
    text-align: left;
  }
  
  .expert-sidebar .expert-profile-img {
    grid-area: img;
    width: 170px;
    height: 170px;
    margin-bottom: 0;
    align-self: center; /* Keeps image vertically centered */
  }
  
  /* Assign Grid Areas for Text Elements */
  .expert-name { 
    grid-area: name; 
    align-self: end;
  }
  
  .expert-name-separator { 
    grid-area: sep; 
    margin: 5px 0; 
    border:0;
  }
  
  .expert-badge { 
    grid-area: badge; 
    justify-self: start; 
    background: transparent;
    padding:0;
  }
  
  .expert-company { 
    grid-area: company; 
    justify-self: start; 
    padding: 14px 0 12px; 
  }
  
  .expert-social-wrapper { 
    grid-area: social; 
    justify-content: flex-start;
    margin: 0;
  }
  
  .expert-content {
    border-radius: 0 0 26px 26px;
    padding: 32px 24px;
  }
 
}

@media (max-width: 585px){
  .expert-sidebar .expert-profile-img {
   align-self: flex-start;
        width: 108px;
  }
  .expert-social-wrapper {
    max-width: 110px;
  }
  
  
}

/* ========================================================
   Responsive adjustments for Mobile (Below 5