/* Expert Detail Page Styles - Modern Design */
.expert-detail-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  margin: 120px 80px;
}

/* Introduction Section */
.introduction-section {
  background: #eff2f6;
  position: relative;
  overflow: hidden;
}

.introduction-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: flex-end;
}

.intro-text {
  z-index: 2;
  height: 77%;
}

.intro-card {
  background: #7f98b3;
  border-radius: 0;
  padding: 64px 80px;
  box-shadow: none;
  position: relative;
  height: 100%;
  opacity: 1;
  border-top-right-radius: 80px;
}

.intro-title {
  color: #ffffff;
}

.intro-description {
  color: #f7f7f1;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  margin-top: 24px;
}

.expert-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  padding: 50px;
}

.profile-image-container {
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}

.profile-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

.expert-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #f1e7da;
  border: 2px solid #b88917;
  min-width: 120px;
  border-width: 2px;
  opacity: 1;
  padding: 2px;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  border-bottom-left-radius: 24px;
}

.badge-text {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #b88917;
  letter-spacing: -0.2px;
  line-height: 24px;
}

.profile-info {
  margin-top: 32px;
}

.profile-info h2 {
  font-family:
    "PP Neue Machina",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #010101;
  margin: 0 0 8px 0;
  line-height: 42px;
  letter-spacing: 0;
}

.profile-info p {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #b88917;
  margin: 0 0 24px 0;
  line-height: 22px;
  letter-spacing: 0;
}

.join-tribe-btn,
.explore-experts-btn {
  background: #b88917 !important;
  color: #ffffff;
}

.join-tribe-btn:hover,
.explore-experts-btn:hover {
  background: #a07815 !important;
  transform: none;
  box-shadow: none;
  color: #ffffff;
  text-decoration: none;
}

/* Programs Section */
.program-section {
  position: relative;
}

.program-content {
  display: flex;
  gap: 40px;
}

/* Name and Role Section */
.name-role-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}

.program-name {
  color: #010101;
  letter-spacing: 0;
  margin: 0;
}

.program-role {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 18px;
  color: #b88917;
  letter-spacing: 0;
  margin: 0;
}

/* Paragraph Section */
.program-description {
  max-width: 736px;
  margin-left: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.program-description p {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #4e4e43;
  letter-spacing: 0;
  margin: 0 0 16px 0;
}

.program-description p:last-child {
  margin-bottom: 0;
}

/* Button Section */
.button-section {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #e5edde;
  border: 1px solid #85a866;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 112px;
  height: 48px;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.action-button:hover {
  background-color: #d4e0c7;
  border-color: #7a9a5a;
  transform: translateY(-1px);
}

.action-button:active {
  transform: translateY(0);
  background-color: #c8d8b8;
}

.action-button:focus {
  outline: 2px solid #85a866;
  outline-offset: 2px;
}

.button-text {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #a9594a;
  letter-spacing: -0.2px;
  text-align: center;
}

.button-icon-left,
.button-icon-right {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

/* Associated Articles Section */
.associated-articles-section {
  background: #f8f3ed;
  padding: 80px 0;
}

.section-title {
  color: #010101;
}

/* Container Header for Slider */
.container-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.container-header h1,
.container-header h2 {
  margin: 0;
  color: #010101;
}

.container-header-button {
  display: flex;
  gap: 12px;
}

.slider-nav-btn {
  background: #f1e7da;
  border: 1px solid #b88917;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #a9594a;
  font-size: 18px;
  font-weight: bold;
}

.slider-nav-btn:hover {
  background: #e5d4c0;
  border-color: #a07815;
  color: #8b4a3a;
  transform: scale(1.05);
}

/* Slider Container */
.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider-container .slider-nav-btn {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
  color: #666;
}

.slider-container .slider-nav-btn:hover {
  background: #f8f9fa;
  border-color: #b88917;
  transform: scale(1.05);
  color: #b88917;
}

.slider-container .slider-nav-btn svg {
  width: 24px;
  height: 24px;
  transition: color 0.3s ease;
}

.slider-container .slider-nav-btn.prev-btn {
  order: 1;
}

.slider-container .slider-nav-btn.next-btn {
  order: 3;
}

.slider-container .ohio-widget.slider {
  order: 2;
  flex: 1;
}

.slider-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Ohio Slider Styles */
.ohio-widget.slider {
  position: relative;
  overflow: hidden;
}

.ohio-slider {
  position: relative;
}

.slider-wrap {
  display: flex;
  align-items: stretch;
}

.slide-item {
  flex: 0 0 auto;
  padding: 0 12px;
}

/* Articles Slider Specific */
.articles-slider .slider-wrap {
  display: flex;
  gap: 16px;
}

.articles-slider .slide-item {
  flex: 0 0 auto;
  width: calc(25% - 12px);
  padding: 0;
}

@media (max-width: 1024px) {
  .articles-slider .slider-wrap {
    gap: 12px;
  }

  .articles-slider .slide-item {
    width: calc(33.333% - 8px);
  }
}

@media (max-width: 768px) {
  .articles-slider .slider-wrap {
    gap: 8px;
  }

  .articles-slider .slide-item {
    width: 100%;
  }
}

/* Courses Slider Specific */
.courses-slider .slider-wrap {
  display: flex;
  gap: 16px;
}

.courses-slider .slide-item {
  flex: 0 0 auto;
  width: calc(25% - 12px);
  padding: 0;
}

@media (max-width: 1024px) {
  .courses-slider .slider-wrap {
    gap: 12px;
  }

  .courses-slider .slide-item {
    width: calc(33.333% - 8px);
  }
}

@media (max-width: 768px) {
  .courses-slider .slider-wrap {
    gap: 8px;
  }

  .courses-slider .slide-item {
    width: 100%;
  }
}

/* Legacy carousel styles for backward compatibility */
.articles-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.carousel-nav {
  background: #f1e7da;
  border: 1px solid #b88917;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #a9594a;
  flex-shrink: 0;
}

.carousel-nav:hover {
  background: #e5d4c0;
  border-color: #a07815;
  color: #8b4a3a;
  transform: scale(1.05);
}

.articles-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  flex: 1;
}

.articles-container::-webkit-scrollbar {
  display: none;
}

.article-card {
  background: #d5b588;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  min-width: 302px;
  height: 364px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
  width: 95%;
  border-bottom-right-radius: 40px;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-image {
  height: 226px;
  overflow: hidden;
  position: relative;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 20px 16px 16px 16px;
  color: #ffffff;
}

.article-category {
  font-family:
    "Roboto",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0;
  line-height: 17.6px;
  margin: 0 0 8px 0;
}

.article-title {
  font-family:
    "PP Neue Machina",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 32px;
  letter-spacing: 0;
}

.article-description {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  line-height: 22px;
  margin: 0;
  letter-spacing: -0.2px;
}

/* Associated Courses Section */
.associated-courses-section {
  background: #f8f9fa;
  padding: 80px 0;
}

/* Legacy courses carousel styles for backward compatibility */
.courses-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.courses-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  flex: 1;
}

.courses-container::-webkit-scrollbar {
  display: none;
}

.course-card {
  background: #7f98b3;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  min-width: 302px;
  height: 364px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
  width: 95%;
  border-bottom-right-radius: 40px;
}

.course-card:hover {
  transform: translateY(-4px);
}

.course-image {
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-content {
  padding: 16px;
}

.course-category {
  font-size: 16px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  font-family: "Inter";
}

.course-title {
  color: white;
}

.course-description {
  font-size: 14px;
  color: #ffffff;
  line-height: 22px;
  margin: 0;
}

/* Our Experts Section */
.our-experts-section {
  background: #fafafa;
  padding: 80px 0;
  position: relative;
}

.our-experts-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="10" fill="%23e3f2fd" opacity="0.3"/><circle cx="80" cy="80" r="15" fill="%23e3f2fd" opacity="0.2"/><circle cx="60" cy="30" r="8" fill="%23e3f2fd" opacity="0.4"/></svg>');
  pointer-events: none;
}

.experts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.expert-card {
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-4px);
}

.expert-card.featured {
  grid-column: span 1;
  position: relative;
}

.expert-image {
  margin-bottom: 20px;
}

.expert-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.expert-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.expert-info h3,
.expert-info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.expert-info p,
.expert-info-card p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.expert-description {
  font-size: 0.85rem;
  color: #4a4a4a;
  line-height: 1.5;
  margin: 0;
}

.experts-cta {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .introduction-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .program-content {
    gap: 32px;
  }

  .program-name {
    font-size: 40px;
    line-height: 48px;
  }

  .program-description {
    max-width: 100%;
    margin-left: 0;
  }

  .button-section {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .experts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .introduction-section,
  .program-section,
  .associated-articles-section,
  .associated-courses-section,
  .our-experts-section {
    padding: 60px 0;
  }

  .intro-card,
  .expert-profile,
  .program-description {
    padding: 24px;
    width: 95%;
  }

  .intro-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 32px;
    line-height: 40px;
  }

  .program-name {
    font-size: 32px;
    line-height: 40px;
  }

  .program-role {
    font-size: 18px;
    line-height: 20px;
  }

  .program-description p {
    font-size: 15px;
    line-height: 22px;
  }

  .action-button {
    min-width: 100px;
    height: 44px;
    padding: 10px 14px;
  }

  .button-text {
    font-size: 15px;
  }

  .experts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .articles-container,
  .courses-container {
    gap: 16px;
  }

  .article-card {
    min-width: 280px;
    height: 320px;
  }

  .article-image {
    height: 200px;
  }

  .course-card {
    min-width: 240px;
  }

  .carousel-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .intro-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 28px;
    line-height: 36px;
  }

  .program-name {
    font-size: 28px;
    line-height: 36px;
  }

  .program-role {
    font-size: 16px;
    line-height: 18px;
  }

  .program-description p {
    font-size: 14px;
    line-height: 20px;
  }

  .action-button {
    min-width: 90px;
    height: 40px;
    padding: 8px 12px;
    gap: 6px;
  }

  .button-text {
    font-size: 14px;
  }

  .button-icon-left,
  .button-icon-right {
    width: 20px;
    height: 20px;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }

  .expert-image img {
    width: 60px;
    height: 60px;
  }

  .join-tribe-btn,
  .explore-experts-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

.clb-slider-nav-btn {
  top: 45%;
  width: 100%;
}

.articles-slider {
  padding: 0 60px;
}

.courses-slider {
  padding: 0 60px;
}

.slider-nav-btn.prev-btn,
.slider-nav-btn.next-btn {
  width: 48px;
  height: 48px;
  font-size: 20px;
  margin-left: 10px;
  cursor: pointer;
}

.slider-nav-btn.next-btn {
  border-radius: 0 40px 40px;
}

.slider-nav-btn.prev-btn {
  border-radius: 40px 0 40px 40px;
}

.associated-courses-section .slider-nav-btn.prev-btn,
.associated-courses-section .slider-nav-btn.next-btn {
  background-color: #dae3ec;
  border: 1.5px solid #4c6580;
  color: #4c6580;
}

.associated-articles-section .slider-nav-btn.prev-btn,
.associated-articles-section .slider-nav-btn.next-btn {
  background-color: #f1e7da;
  border: 1.5px solid #b88917;
  color: #b88917;
}

/* Join Tribe Modal styles (aligned with subscription modal) */
#joinTribeModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  z-index: 9999;
}

#joinTribeModal .modal-content,
#joinTribeModal .modal-footer {
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

#joinTribeModal .modal-body {
  padding-bottom: 0;
}

#joinTribeModal .modal-content {
  max-width: 600px;
}

/* Modal Header */
.modal-header h4 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 12px;
}

/* Choose plan row */
.choose-plan-row {
  padding: 20px 0;
}

.choose-plan-row .subscription-view-plan-btn {
  float: right;
  color: #a9594a;
  font-weight: 600;
}

/* Pricing rows */
.price-row {
  margin-bottom: 12px;
  padding: 0;
  background-color: #fff;
  cursor: pointer;
}

.current-plan-row .plan-label-wrapper {
  background-color: #f4faee;
}

.price-row.selected .plan-label-wrapper {
  border: 1px solid #9a4c3b;
  background-color: #f7eeed;
}

.price-row.disabled-plan {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Plan card */
.plan-label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-radius: 4px;
  transition: border 0.2s ease;
  border: 1px solid #ddd;
  width: 100%;
}

.plan-label {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-plan {
  font-weight: normal;
  color: #888888;
  font-size: 16px;
}

.discount-badge {
  background-color: #f79009;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: bold;
}

.price-currency {
  font-size: 20px;
  font-weight: bold;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  font-family: "PP Neue Machina";
}

.price-period {
  font-size: 14px;
  font-weight: normal;
  color: #777;
}

/* Modal footer and button */
.modal-footer {
  text-align: center;
  padding: 24px 0;
}

.modal-footer--subscription.modal-footer {
  justify-content: center;
}

.modal-footer--subscription.modal-footer .button-submit {
  border-top-left-radius: 0;
}

.modal-footer .button-submit {
  display: inline-block;
  min-width: 280px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  background-color: #9a4c3b;
  color: white;
  border: none;
  cursor: pointer;
}

.modal-footer .button-submit:disabled {
  background-color: #d2b5ac;
  cursor: not-allowed;
}

/* Container tweaks inside modal */
.modal-body .container-planning-price {
  padding-bottom: 0;
}

.modal-body .container-planning-price .tabs .tab-2 .choose-plan--wrapper {
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .modal-header h4 {
    margin: 2rem 0 1rem 0 !important;
  }

  .plan-label {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    gap: 0;
    align-items: flex-start;
  }

  .plan-label:has(.discount-badge) {
    display: flex;
    flex-direction: row;
  }

  .plan-label-wrapper {
    padding: 14px 9px;
  }
}
