/* index.php */

/*
 * Home mobile: header overlays the hero so the sky is one continuous plane
 * (avoids the hard navy band / seam under the logo bar).
 */
@media (max-width: 767px) {
  body.page-home {
    overflow-x: hidden;
  }

  body.page-home .header-section-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    float: none;
  }

  body.page-home .header-section-wrapper .header-top-menu {
    background: linear-gradient(180deg, rgba(8, 12, 36, 0.78) 0%, rgba(8, 12, 36, 0.35) 65%, rgba(8, 12, 36, 0) 100%);
    border-bottom: none;
    float: none;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.page-home .bg-section {
    float: none;
    width: 100%;
    background: #0a0e26;
  }

  body.page-home .hero {
    padding: 88px 18px 72px;
  }

  body.page-home .hero::before {
    background-position: 52% top;
    background-size: cover;
    animation: none;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body.page-home .hero::before {
    animation: none;
    background-position: center top;
    background-size: cover;
  }
}

/* Home: reading topics — light band with curved transitions */
.home-reading-topics-section {
  position: relative;
  z-index: 3;
  float: left;
  width: 100%;
  margin-top: -36px;
  margin-bottom: -36px;
  padding: 72px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 55% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(ellipse 120% 80% at 0% 50%, rgba(196, 176, 255, 0.22) 0%, rgba(196, 176, 255, 0) 55%),
    radial-gradient(ellipse 120% 80% at 100% 50%, rgba(196, 176, 255, 0.22) 0%, rgba(196, 176, 255, 0) 55%),
    linear-gradient(180deg, #f3eeff 0%, #ffffff 38%, #faf7ff 68%, #ebe4ff 100%);
  border-top-left-radius: 50% 40px;
  border-top-right-radius: 50% 40px;
  border-bottom-left-radius: 50% 40px;
  border-bottom-right-radius: 50% 40px;
  box-shadow:
    0 -8px 40px rgba(124, 99, 230, 0.08),
    0 8px 40px rgba(124, 99, 230, 0.08);
}

.home-reading-topics-section__decor {
  position: absolute;
  top: 50%;
  width: 140px;
  height: 140px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.35;
  background-repeat: no-repeat;
  background-size: contain;
}

.home-reading-topics-section__decor--left {
  left: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(150, 120, 230, 0.35) 0, transparent 55%),
    radial-gradient(1px 1px at 20% 30%, rgba(124, 99, 230, 0.8) 0, transparent 100%),
    radial-gradient(1px 1px at 45% 60%, rgba(124, 99, 230, 0.6) 0, transparent 100%);
}

.home-reading-topics-section__decor--right {
  right: 0;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(150, 120, 230, 0.35) 0, transparent 55%),
    radial-gradient(1px 1px at 80% 35%, rgba(124, 99, 230, 0.8) 0, transparent 100%),
    radial-gradient(1px 1px at 60% 65%, rgba(124, 99, 230, 0.6) 0, transparent 100%);
}

.home-reading-topics-section .container {
  position: relative;
  z-index: 1;
}

.home-reading-topics-head {
  text-align: center;
  margin-bottom: 36px;
}

.home-reading-topics-title {
  margin: 0 0 14px;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.home-reading-topics-title__explore {
  color: #1a1a2e;
}

.home-reading-topics-title__topics {
  color: #7c5cff;
}

.home-reading-topics-lead {
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #5c5c72;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .home-reading-topics-lead {
    font-size: clamp(0.72rem, 2.8vw, 0.82rem);
    letter-spacing: -0.01em;
  }
}

.home-reading-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 576px) {
  .home-reading-topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 992px) {
  .home-reading-topics-section {
    padding: 96px 0 108px;
  }

  .home-reading-topics-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

.home-reading-topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 128px;
  padding: 20px 10px 18px;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(200, 190, 235, 0.45);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(124, 99, 230, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-reading-topic-card:hover,
.home-reading-topic-card:focus {
  border-color: rgba(124, 99, 230, 0.45);
  box-shadow: 0 12px 28px rgba(124, 99, 230, 0.18);
  transform: translateY(-3px);
  outline: none;
}

.home-reading-topic-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f5ff 0%, #efe8ff 100%);
  box-shadow: inset 0 0 0 1px rgba(200, 190, 235, 0.35);
}

.home-reading-topic-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.home-reading-topic-card__icon img[src$=".svg"],
.home-reading-topic-card__icon img[src$=".png"] {
  object-fit: contain;
  padding: 4px;
}

.home-reading-topic-card__icon i {
  font-size: 2rem;
  color: #7c5cff;
}

.home-reading-topic-card__label {
  font-family: 'Inter', sans-serif;
  font-size: calc(0.88rem + 1pt);
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a2e;
}

@media (min-width: 768px) {
  .home-reading-topics-section {
    margin-top: -40px;
    margin-bottom: -40px;
  }

  .home-reading-topic-card {
    min-height: 148px;
    padding: 24px 12px 20px;
  }

  .home-reading-topic-card__icon {
    width: 78px;
    height: 78px;
  }

  .home-reading-topic-card__label {
    font-size: calc(1rem + 1pt);
  }
}

@media (max-width: 767px) {
  .home-reading-topics-section__decor {
    display: none;
  }
}

/* Home: reviews — clear the reading topics curved band above */
.content-section-bg > .review-section {
  float: left;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .content-section-bg > .review-section {
    padding-top: 100px;
    padding-bottom: 80px;
  }
}

/* Dark advisors band — follows hero / difference section */
.content-section-bg {
  position: relative;
  z-index: 2;
  padding-top: 56px;
}

/* Curved horizon into advisors when the Difference block is hidden (matches .the-starz-section) */
.content-section-bg.content-section-bg--home-curved-top {
  margin-top: -74px;
  padding-top: 86px;
  border-top-left-radius: 50% 92px;
  border-top-right-radius: 50% 92px;
  box-shadow: 0 -2px 44px rgba(124, 99, 230, 0.18);
}

.content-section-bg > .live-chat-section {
  padding-top: 24px;
}

/* Advisors section intro header */
.live-advisors-head--intro {
  display: block;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.live-advisors-head__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 18px;
}

.live-advisors-head__divider-line {
  width: min(140px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(150, 160, 255, 0), rgba(160, 150, 235, 0.65));
}

.live-advisors-head__divider-line:last-child {
  transform: scaleX(-1);
}

.live-advisors-head__divider i {
  font-size: 11px;
  background: linear-gradient(135deg, #8db4ff, #c89bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.live-advisors-head__title {
  margin: 0 0 16px;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.live-advisors-head__title-meet {
  color: #ffffff;
}

.live-advisors-head__title-accent {
  color: #b69cff;
}

.live-advisors-head__sub {
  margin: 0 auto 22px;
  max-width: 640px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #e8eaf5;
}

.live-advisors-head--intro .view-all-advisors {
  margin: 0 auto;
}

.live-advisors-foot {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-bottom: 8px;
}

/* CEO message — light band with curved transitions (matches reading topics) */
.ceo-message-section--band {
  position: relative;
  z-index: 3;
  float: left;
  width: 100%;
  margin-top: -36px;
  margin-bottom: -36px;
  padding: 72px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 55% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(ellipse 120% 80% at 0% 50%, rgba(196, 176, 255, 0.22) 0%, rgba(196, 176, 255, 0) 55%),
    radial-gradient(ellipse 120% 80% at 100% 50%, rgba(196, 176, 255, 0.22) 0%, rgba(196, 176, 255, 0) 55%),
    linear-gradient(180deg, #f3eeff 0%, #ffffff 38%, #faf7ff 68%, #ebe4ff 100%);
  border-top-left-radius: 50% 40px;
  border-top-right-radius: 50% 40px;
  border-bottom-left-radius: 50% 40px;
  border-bottom-right-radius: 50% 40px;
  box-shadow:
    0 -8px 40px rgba(124, 99, 230, 0.08),
    0 8px 40px rgba(124, 99, 230, 0.08);
}

.ceo-message-section--band > .container {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 15px;
}

.ceo-message-section__decor {
  position: absolute;
  top: 50%;
  width: 140px;
  height: 140px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.35;
}

.ceo-message-section__decor--left {
  left: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(150, 120, 230, 0.35) 0, transparent 55%),
    radial-gradient(1px 1px at 20% 30%, rgba(124, 99, 230, 0.8) 0, transparent 100%);
}

.ceo-message-section__decor--right {
  right: 0;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(150, 120, 230, 0.35) 0, transparent 55%),
    radial-gradient(1px 1px at 80% 35%, rgba(124, 99, 230, 0.8) 0, transparent 100%);
}

.ceo-message-head {
  text-align: center;
  margin-bottom: 32px;
}

.ceo-message-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 18px;
}

.ceo-message-divider-line {
  width: min(140px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(150, 160, 255, 0), rgba(160, 150, 235, 0.65));
}

.ceo-message-divider-line:last-child {
  transform: scaleX(-1);
}

.ceo-message-divider i {
  font-size: 11px;
  background: linear-gradient(135deg, #8db4ff, #c89bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ceo-message-title {
  margin: 0;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.ceo-message-title__lead {
  color: #1a1a2e;
}

.ceo-message-title__accent {
  color: #7c5cff;
}

.ceo-message-section--band .ceo-message-info {
  text-align: left;
  max-width: 920px;
  margin: 0 auto;
}

.ceo-message-section--band .ceo-message-info p {
  font-family: 'Inter', sans-serif;
  font-size: calc(1.1rem * 1.05);
  line-height: 1.75;
  color: #4a4a5e;
}

.content-section-bg--after-ceo {
  padding-top: 72px;
}

@media (min-width: 768px) {
  .ceo-message-section--band {
    margin-top: -40px;
    margin-bottom: -40px;
    padding: 80px 0 92px;
  }
}

@media (max-width: 767px) {
  .ceo-message-section__decor {
    display: none;
  }

  .ceo-message-section--band .ceo-img {
    float: none;
    width: 180px;
    max-width: 100%;
    margin: 0 auto 20px;
  }

  .ceo-message-section--band .ceo-message-info {
    text-align: center;
  }
}

/* Home: advisor / reader cards — dark glass boxes */
.row-live-chat .live-chat-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0b1028;
  border: 1px solid rgba(110, 140, 220, 0.38);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(4, 6, 20, 0.5);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.row-live-chat .live-chat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(150, 175, 255, 0.55);
  box-shadow: 0 18px 44px rgba(8, 10, 36, 0.55);
}

.row-live-chat > div[class*="col-"] {
  margin-bottom: 30px;
}

.row-live-chat .live-chat-card-img {
  height: 210px;
  overflow: hidden;
  position: relative;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

/* Favorite heart (matches psychics.php) */
.row-live-chat .fav-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 7px 9px;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.row-live-chat .fav-heart i {
  font-size: 16pt;
  color: #999;
}

.row-live-chat .fav-heart.favorited i {
  color: #b100ff;
}

.row-live-chat .fav-heart:hover {
  transform: scale(1.03);
}

.row-live-chat .live-chat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.row-live-chat .live-chat-card-img .on-line {
  clip-path: none;
  float: none;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  margin: 0;
  padding: 6px 12px;
  border-radius: 6px 0 0 0;
  border: 1px solid var(--advisor-status-available-border);
  background: var(--advisor-status-available-bg) !important;
  color: var(--advisor-status-available-text);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  max-width: calc(100% - 20px);
}

.row-live-chat .live-chat-card-img .on-line.bg1 {
  background: var(--advisor-status-available-bg) !important;
  border-color: var(--advisor-status-available-border);
  color: var(--advisor-status-available-text);
}

.row-live-chat .live-chat-card-img .on-line.bg2 {
  background: var(--advisor-status-busy-bg) !important;
  border-color: var(--advisor-status-busy-border);
  color: var(--advisor-status-busy-text);
}

.row-live-chat .live-chat-card-img .on-line.bg3 {
  background: var(--advisor-status-offline-bg) !important;
  border-color: var(--advisor-status-offline-border);
  color: var(--advisor-status-offline-text);
}

.row-live-chat .live-chat-card-img .on-line.bg4 {
  background: var(--advisor-status-be-back-soon-bg) !important;
  border-color: var(--advisor-status-be-back-soon-border);
  color: var(--advisor-status-be-back-soon-text);
}

.row-live-chat .live-chat-card-img .on-line.bg5 {
  background: var(--advisor-status-in-session-bg) !important;
  border-color: var(--advisor-status-in-session-border);
  color: var(--advisor-status-in-session-text);
}

.row-live-chat .live-chat-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  float: none;
  padding: 16px 16px 18px;
  background-image: linear-gradient(45deg, #1c115b, #14092f);
}

.row-live-chat .live-chat-card-row {
  margin-bottom: 4px;
}

.row-live-chat .live-chat-card-name,
.row-live-chat .live-chat-card-info h3 {
  display: inline;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.35;
}

.row-live-chat .live-chat-card-name {
  color: #ffffff;
  margin-right: 0;
  font-size: 1.15rem;
}

.row-live-chat .live-chat-card-info h3 {
  font-size: 0.92rem;
}

.row-live-chat .live-chat-card-info h3 a {
  color: #b8a8ff;
  text-decoration: none;
  font-size: 1.15rem;
  word-break: break-word;
}

.row-live-chat .live-chat-card-info h3 a:hover {
  color: #d4c8ff;
}

.row-live-chat .live-chat-card-row p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0 16px;
  min-height: 3.9em;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: #e8eaf5;
}

.row-live-chat .live-chat-card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.row-live-chat .live-chat-card-btn {
  display: block;
  width: 100%;
}

.row-live-chat .live-chat-card-btn--split {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.row-live-chat .live-chat-card-btn--split a {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.row-live-chat .live-chat-card-bottom .live-chat-card-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #1a0c50a6;
  background: linear-gradient(180deg, #162b8b 0%, #1e2544 48%, #141a32 100%);
  color: #d4c8ff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.28);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.row-live-chat .live-chat-card-btn a:after {
  display: none;
}

.row-live-chat .live-chat-card-bottom .live-chat-card-btn a:hover {
  background: linear-gradient(180deg, #162b8b 0%, #1e2544 48%, #141a32 100%);
  border-color: rgba(210, 190, 255, 0.85);
  color: #f0ecff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(124, 99, 230, 0.28);
}

.row-live-chat .live-chat-card-btn a i {
  margin-right: 0;
  font-size: 14px;
}

/* Home: featured blog cards (Spiritual Blog section) */
.latest-blog-section {
  padding-bottom: 150px;
}

.home-blog-featured-row {
  margin-top: 8px;
}
.home-blog-featured-row .col-md-4 {
  display: flex;
  flex-direction: column;
}
.home-blog-featured-card.blog-card {
  flex: 1;
  margin-bottom: 24px;
}
@media (min-width: 992px) {
  .home-blog-featured-card.blog-card {
    margin-bottom: 0;
  }
}

/* Home mobile: straight section edges (must follow curve defs above) */
@media (max-width: 767px) {
  .content-section-bg.content-section-bg--home-curved-top,
  .the-starz-section {
    margin-top: 0;
    padding-top: 48px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: none;
  }

  .home-reading-topics-section,
  .ceo-message-section--band {
    margin-top: 0;
    margin-bottom: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
  }

  .row-live-chat .live-chat-card-img {
    height: 110px;
  }

  .row-live-chat .live-chat-card-info {
    padding: 12px 12px 14px;
  }

  .row-live-chat .live-chat-card-name,
  .row-live-chat .live-chat-card-info h3 a {
    font-size: 0.92rem;
  }

  .row-live-chat .live-chat-card-info h3 {
    font-size: 0.8rem;
  }

  .row-live-chat .live-chat-card-row p {
    margin: 6px 0 12px;
    min-height: 2.6em;
    font-size: 11px;
    line-height: 1.4;
  }

  .row-live-chat .live-chat-card-img .on-line {
    padding: 4px 8px;
    font-size: 10px;
  }

  .row-live-chat .live-chat-card-bottom .live-chat-card-btn a {
    padding: 9px 10px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .row-live-chat .live-chat-card-btn a i {
    font-size: 12px;
  }
}
