/* Custom Styles */

/* ==========================================================
   USER DROPDOWN — FONT SIZE, COLORS, AND SPACING
   ========================================================== */

/* Entire dropdown container */
.dropdown__menu {
  font-family: 'Karla', sans-serif !important;
  font-size: 17px !important;      /* adjust size here */
  line-height: 1.5 !important;
  color: #111 !important;
  background-color: #fff !important;
  border-radius: 6px !important;
  min-width: 160px !important;
  padding: 8px 0 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Individual menu items */
.dropdown__item,
.dropdown__item a {
  display: block;
  font-family: 'Karla', sans-serif !important;
  font-size: 17px !important;
  padding: 8px 16px !important;
  color: #111 !important;
  text-decoration: none !important;
}

/* Hover effect */
.dropdown__item a:hover {
  background-color: #f7f7f7 !important;
  color: #000 !important;
}

/* Ensure avatar and trigger spacing look clean */
.dropdown__trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user__avatar {
  border-radius: 50%;
  width: 36px !important;
  height: 36px !important;
  margin-left: 8px;
}

/* ==========================================================
   USER AVATAR POSITION — MOVE TO RIGHT SIDE
   ========================================================== */

/* Desktop view: push avatar dropdown to far right */
@media (min-width: 768px) {
  .header .user,
  .topbar .user,
  .navbar .user {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  .header .dropdown,
  .topbar .dropdown,
  .navbar .dropdown {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  .header .dropdown__menu {
    right: 0 !important;
    left: auto !important;
  }
}

/* Mobile view: keep centered or stacked normally */
@media (max-width: 767px) {
  .header .user,
  .topbar .user,
  .navbar .user {
    justify-content: flex-start !important;
  }
}

/* ==========================================================
   FINE-TUNING — HERO • COURSE CARDS • LINKS
   ========================================================== */

/* ---------- HERO TITLE + TAGLINE ---------- */
.hero-title,
.product_hero h1,
.product_hero h2 {
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  font-weight: 400 !important;
}

/* Fluid type scaling for hero titles on all devices */
@media (max-width: 1024px) {
  .hero-title,
  .product_hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  }
}

/* ---------- COURSE CARD TITLES ---------- */
.product-listing .card-title,
.product-listing h3,
.library .product_title {
  letter-spacing: 0.01em !important;
  line-height: 1.3 !important;
}

/* Optional subtle shadow for depth on hover */
.product-listing .card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  transition: all 0.25s ease;
}

/* ---------- SECTION SPACING ---------- */
.section,
.section-wrap {
  margin-top: 48px !important;
  margin-bottom: 48px !important;
}

.library h2.section-title {
  margin-bottom: 28px !important;
}

/* ---------- LINKS & BUTTON HOVERS ---------- */
a:hover,
.button:hover,
.btn:hover,
.footer a:hover,
.footer_block_social_icons a:hover i,
.footer_block_social_icons a:hover svg {
  color: #d8c48d !important;      /* brand gold */
  fill: #d8c48d !important;
  transition: color 0.25s ease, fill 0.25s ease;
}

/* ---------- MOBILE ADJUSTMENTS ---------- */
@media (max-width: 767px) {
  .hero-title {
    text-align: center !important;
    margin-top: 12px !important;
  }
  .section,
  .section-wrap {
    margin-top: 36px !important;
    margin-bottom: 36px !important;
  }
}

