/*body {*/
/*  background: #1d1d1d;*/
/*  margin: 0;*/
/*  padding: 0;*/
/*  font-size: 18px;*/
/*  line-height: 1.4;*/
/*  font-family: Quicksand, sans-serif;*/
/*  font-weight: 400;*/
/*  color: #fff;*/
/*}*/
*, :after, :before {
  box-sizing: border-box;
}

.content-wrapper {
  margin: 0 auto;
  display: block;
  max-width: 1330px;
  padding-left: 15px;
  padding-right: 15px;
}

.holder-container {
  align-items: start!important;
  margin-top: -50px!important
}

.holder {
  display: block!important;
  margin: 0 auto!important;
  max-width: 100%!important;
  padding: 50px 0!important;
  text-align: center!important
}

.holder,.left-content {
  margin: 0 auto;
  max-width: 48%;
  width: 100%!important
}

.meetings_calendar_inner {
  background-color: #fff;
  border-radius: 20px;
  margin-top: -400px
}

.meetings_calendar_outer {
  padding: 50px;
  position: relative
}

.d_flex {
  display: flex
}

.our-team-section {
  padding: 70px 0;
  position: relative
}

.our-team-title {
  text-align: center
}

.our-team-title h3 {
  display: inline-block;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.5
}

.our-team-list-outer {
  padding: 40px 0 0
}

/* Make cards flexible and always centered */
.our-team-list-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row on large screens */
  gap: 8px;           /* Reduced gap for closer cards */
  justify-items: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  padding: 12px 0;    /* Less padding */
}

/* Card styles */
.member-card-outer {
  width: 100%;
  max-width: 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  margin: 0; /* Remove extra margin */
}

/* When only one card, center it and limit width */
.our-team-list-inner > .member-card-outer:only-child {
  margin-left: auto;
  margin-right: auto;
  max-width: 400px;
}

/* Individual card */
.member-card-outer {
  background: #222;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  width: 320px;
  margin: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.member-card-outer:hover {
  transform: translateY(-4px) scale(1.02);
}

.member-card-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.member-profile-image {
  width: 100%;
  height: 180px;
  border-radius: 8px 8px 0 0;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
}

.member-card-details {
  padding:  20px;
}

.member-details {
  padding-top: 8px
}

.member-card-popup-outer h1,.member-card-popup-outer h2,.member-card-popup-outer h3,.member-card-popup-outer h4,.member-card-popup-outer h5,.member-card-popup-outer h6,.member-card-popup-outer p {
  margin: 0
}

.member-popup-company,.member-popup-desg,.member-popup-slogan {
  padding: 10px 0 0
}

.member-card-outer:hover .team-member-pop-up-link {
  transform: translate(20%,-20%) scale(1);
  transition-timing-function: cubic-bezier(.17,.67,.48,1.4)
}

.team-member-pop-up-link {
  align-items: center;
  background-color: #dd1845;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 100px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(50%,-100%) scale(1);
  transform-origin: 100% 0;
  transition-duration: .3s;
  transition-property: transform;
  transition-timing-function: cubic-bezier(.08,.45,.33,1.01);
  width: 100px;
  z-index: 1
}

.team-member-pop-up-link svg {
  cursor: pointer
}

.member-profile-image img {
  height: 100%!important;
  max-width: 100%;
  object-fit: cover;
  object-position: top;
  width: 100%
}

.member-card-popup-outer-Main {
  background: rgba(255,255,255,.85);
  display: none;
  height: 100vh;
  left: 0;
  overflow-y: hidden;
  padding: 50px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999
}

.member-profile-image {
  height: 350px;
  overflow: hidden;
  width: 100%
}

.member-card-outer:hover {
  transform: scale(1.1)
}

body.OpenPopup {
  overflow: hidden
}

.member-card-popup-Box {
  height: 100%;
  margin: 0 auto;
  max-height: 565px;
  max-width: 57%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  transition: all .5s ease;
  width: 100%
}

/*body.OpenPopup .member-card-popup-outer-Main {*/
/*  overflow-y: auto*/
/*}*/

.member-card-popup-outer {
  background: #232526;
  border-radius: 20px;
  overflow: hidden;
  padding: 30px;
  position: relative;
  width: 100%
}

.member-card-popup-left-col {
  border-radius: 20px;
  max-width: 38%;
  min-height: 400px;
  overflow: hidden;
  width: 100%
}

.member-popup-image {
  height: 100%
}

.member-popup-image img {
  height: 100%!important;
  object-fit: cover;
  object-position: top;
  width: 100%
}

.member-card-popup-inner {
  gap: 40px;
  height: 100%;
  justify-content: space-between;
  width: 100%
}

span.Popup-close {
  cursor: pointer;
  margin: 20px;
  position: absolute;
  right: 0;
  top: 0
}

span.Popup-close i {
  color: #dd1845;
  transform: rotate(45deg)
}

.member-popup-name h3 {
  color: #fff;
  font-size: 50px;
  font-weight: 600;
  margin: 0
}

.member-popup-company h4,.member-popup-desg h4 {
  color: #dd1845;
  font-weight: 400;
  margin: 0
}
.member-popup-email a,.member-popup-linkedin a {
  align-items: center;
  background-color: #fff;
  border: 1px solid #dd1845;
  border-radius: 50px;
  color: #dd1845;
  display: flex;
  height: 40px;
  justify-content: center;
  text-decoration: none;
  transition: all .3s ease;
  width: 40px
}

.member-popup-email a:hover {
  color: #000
}

.member-card-popup-right-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  max-width: 55%;
  width: 100%
}

.member-card-popup-inner:after {
  background-color: #dd1845;
  content: "";
  height: 86%;
  left: 42%;
  margin: 16px 0;
  position: absolute;
  top: 4%;
  width: 2px
}

.member-popup-slogan p {
  color: #fff;
  font-family: Catamaran,sans-serif;
  font-size: 18px;
  font-weight: 400
}

.member-popup-email i,.member-popup-linkedin i {
  font-size: 20px
}

.member-social-icons {
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0 0
}

.member-social-icons a,.member-social-icons a:hover {
  text-decoration: none;
  transition: all .3s ease
}

.member-social-icons a:hover {
  background-color: #dd1845;
  color: #fff
}

.member-popup-company svg {
  height: 56px;
  width: 175px
}

/* Responsive Course Card */
.course-card {
  background: #232526;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  margin: 16px;
  max-width: 340px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.course-card:hover {
  box-shadow: 0 8px 32px rgba(221,24,69,0.18);
  transform: translateY(-6px) scale(1.03);
}
.course-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}
.course-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #bbb;
  margin-bottom: 10px;
  gap: 6px;
  flex-wrap: wrap;
}
.course-content h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 8px 0;
}
.course-content p {
  color: #dd1845;
  font-size: 15px;
  margin-bottom: 16px;
}
.course-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.course-rating { color: #fff; font-size: 15px; }
.course-rating i { color: #dd1845; }
.course-price {
  background: #ffc107;
  color: #222;
  border-radius: 8px;
  padding: 8px 22px;
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 120px;      /* Ensures fixed width */
  min-height: 48px;      /* Ensures fixed height */
}
.open-modal-btn {
  background: #dd1845;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  margin-top: auto;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
  width: 100%;
}
.open-modal-btn:hover { background: #b31336; }

/* Popup Modal */
.course-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.course-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-content {
  background: #232526;
  border-radius: 18px;
  max-width: 700px;    /* Increased from 520px */
  width: 98vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  overflow: hidden;
  padding: 0;
  animation: popIn 0.3s;
  max-height: 90vh;      /* 90% of viewport height */
  overflow-y: auto;      /* Scroll only the content */
}
@keyframes popIn {
  from { transform: scale(0.96); opacity: 0.7; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-image {
  width: 100%;
       /* Increased height for larger modal */
  background-size: cover;
  background-position: center;
  border-radius: 18px 18px 0 0;
  display: block;
}
.modal-details {
  padding: 28px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-details h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-meta {
  display: flex;
  gap: 18px;
  font-size: 15px;
  color: #bbb;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.modal-details p {
  color: #eee;
  font-size: 1.08rem;
  margin-bottom: 10px;
  line-height: 1.5;
}
.modal-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.course-rating {
  color: #fff;
  font-size: 15px;
}
.course-rating i {
  color: #dd1845;
}
.course-price {
  background: none;
  color: #222;
  border-radius: 8px;
  padding: 8px 22px;
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 120px;      /* Ensures fixed width */
  min-height: 48px;      /* Ensures fixed height */
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.modal-contact-btn, .modal-buy-btn {
  display: block;
  width: 100%;
  padding: 13px 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
}
.modal-contact-btn {
  background: #fff;
  color: #dd1845;
  border: 2px solid #dd1845;
}
.modal-contact-btn:hover {
  background: #dd1845;
  color: #fff;
}
.modal-buy-btn {
  background: #ffc107;
  color: #222;
  border: none;
}
.modal-buy-btn:hover {
  background: #e0a800;
}
.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.close-modal-btn:hover {
  color: #dd1845;
}

.modal-syllabus {
  margin-top: 18px;
}
.modal-syllabus h3 {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.modal-syllabus ul {
  color: #eee;
  padding-left: 18px;
  margin: 0;
}
.modal-syllabus li {
  margin-bottom: 4px;
  font-size: 1rem;
}

.modal-instructor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.modal-instructor img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffc107;
}
.modal-instructor strong {
  color: #fff;
  font-size: 1.1rem;
}
.modal-instructor span {
  color: #bbb;
  font-size: 0.95rem;
}

.modal-reviews {
  margin-top: 18px;
}
.modal-reviews h3 {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.modal-reviews .review {
  background: #232526;
  border-left: 3px solid #ffc107;
  padding: 8px 12px;
  margin-bottom: 8px;
  color: #eee;
  border-radius: 6px;
  font-size: 0.98rem;
}

.modal-download-btn {
  display: inline-block;
  margin-top: 14px;
  background: #fff;
  color: #dd1845;
  border: 2px solid #dd1845;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.modal-download-btn:hover {
  background: #dd1845;
  color: #fff;
}

@media(max-width: 1440px) {
  .our-team-list-inner {
    justify-content:center
  }
  .member-card-popup-Box {
    max-width: 75%
  }
}

@media(max-width: 1366px) {
  .holder-container {
    min-height:450px!important
  }

  .member-profile-image {
    height: 300px
  }

  .holder,.left-content {
    margin: 0 auto;
    max-width: 87%
  }

  .meetings_calendar_inner {
    margin-top: -300px
  }
}

@media(max-width: 1280px) {
  .member-card-popup-Box {
    max-width:85%
  }
}

@media(max-width: 1080px) {
  .holder-container {
    align-items:center!important
  }

  .member-card-outer {
    width: calc(50% - 15px)
  }

  .member-card-popup-Box {
    max-width: 100%
  }

  .meetings_calendar_outer {
    padding: 0
  }

  .meetings_calendar_inner {
    margin-top: 0
  }
}

@media(max-width: 991px) {
  .holder,.left-content {
    margin:0 auto;
    max-width: 100%
  }

  .member-card-outer {
    margin: 0 auto;
  }

  .member-card-outer:hover {
    transform: scale(1)
  }

  .team-member-pop-up-link {
    transform: translate(20%,-20%) scale(1);
    transition-timing-function: cubic-bezier(.17,.67,.48,1.4)
  }

  .member-card-popup-outer-Main {
    padding: 10px
  }

  .member-card-popup-Box {
    max-width: 100%
  }

  .member-card-popup-inner {
    flex-wrap: wrap;
    gap: 20px
  }

  .member-popup-name h3 {
    font-size: 36px
  }

  blockquote.member-popup-slogan p {
    font-size: 18px
  }

  .member-card-popup-outer {
    padding: 15px
  }
}

@media(max-width: 767px) {
  .dnd-section {
    padding:50px 0 0
  }

  .our-team-list-inner {
    flex-wrap: wrap
  }

  .member-card-outer {
    margin: 0 auto;
    width: 70%;
  }

  .our-team-list-outer {
    padding: 30px 0 0
  }

  .our-team-section {
    padding: 50px 0
  }

  .member-card-popup-left-col {
    max-height: 400px;
    max-width: 100%
  }

  .member-card-popup-outer {
    overflow-y: auto;
    padding: 15px
  }

  .member-card-popup-inner:after {
    display: none
  }

  .member-card-popup-Box {
    max-height: unset;
    max-width: 73%
  }

  .member-card-popup-right-col {
    gap: 10px;
    max-width: 100%
  }

  .member-popup-company h4,.member-popup-desg h4 {
    font-size: 20px!important
  }
}

@media(max-width: 640px) {
  .holder-container {
    min-height:300px!important
  }

  .team-member-pop-up-link {
    height: 70px;
    width: 70px
  }

  span.team-member-pop-up-link svg {
    width: 16px
  }

  .member-details {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0
  }

  .member-card-popup-Box {
    top: 70%
  }

  .member-desg {
    border-right: none
  }

  .member-popup-company img {
    height: 41px;
    width: 130px
  }
}

@media(max-width: 575px) {
  .member-card-popup-Box {
    max-width:95%
  }
}

@media(max-width: 480px) {
  .member-card-outer {
    margin:0 auto;
    width: 100%
  }

  .member-card-popup-Box {
    max-width: 100%
  }

  .member-card-popup-left-col {
    max-height: 300px;
    max-width: 100%;
    min-height: auto
  }

  blockquote.member-popup-slogan p {
    font-size: 18px
  }

  .member-popup-company h4,.member-popup-desg h4 {
    font-size: 17px!important
  }

  .schedule-meeting {
    padding: 15px 0 0
  }

  .schedule-meeting a {
    font-size: 16px;
    padding: 10px
  }

  .member-social-icons {
    gap: 15px;
    padding: 5px 0 0
  }

  .member-card-popup-right-col {
    gap: 0
  }

  .member-popup-email i,.member-popup-linkedin i {
    font-size: 14px
  }

  .member-popup-email a,.member-popup-linkedin a {
    height: 30px;
    width: 30px
  }
}

@media(max-width: 420px) {
  .member-company-name,.member-desg {
    margin-top:10px
  }
}

/* Responsive Card Grid */
.our-team-list-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row on large screens */
  gap: 8px;           /* Reduced gap for closer cards */
  justify-items: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  padding: 12px 0;    /* Less padding */
}

.member-card-outer {
  width: 100%;
  max-width: 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  margin: 0;
}

/* 3 per row for large desktops */
@media (max-width: 1400px) {
  .our-team-list-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 per row for tablets and small laptops */
@media (max-width: 1024px) {
  .our-team-list-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 per row for mobile devices */
@media (max-width: 700px) {
  .our-team-list-inner {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px 0;
  }
  .member-card-outer {
    max-width: 98vw;
    min-width: 0;
  }
}

/* Extra small screens (iPhone SE, small Android) */
@media (max-width: 480px) {
  .member-card-outer {
    max-width: 100vw;
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  .modal-content {
    padding: 8px;
    max-height: 98vh;
  }
}