/* ============================================================================
   Turkishle Library + Homepage — Visual Polish (v11)
   ----------------------------------------------------------------------------
   v11 changes:
   - Reverted Plus Jakarta Sans font swap (back to theme's Open Sans/Fira Sans)
   ----------------------------------------------------------------------------
   Retained from v10:
   - Homepage buttons: readable size + arrow → for "clickable" feel
   - Section headings: bumped from 1.5rem → 1.7rem (more confident anchoring)
   - Homepage card heights: descriptions clamped to 2 lines for visual balance
   ============================================================================ */

/* --- HEADER: reverted to Kajabi's default coral in v9 ---
   The white-header experiment was rolled back because the white logo
   was invisible on white. When the coral logo is uploaded later we can
   revisit the white-header direction. */

/* === MY COURSES section spacing === */
.products .sizer {
  padding-top: 28px;
  padding-bottom: 28px;
}
.products__title {
  font-weight: 700;
  margin: 0 !important;
}
.products__header {
  margin-bottom: 28px;
}

/* === RESUME CARD: outer styling (layout from theme: side-by-side at ≥768px) === */
.resume-course {
  padding: 0 !important;
  border-radius: 16px !important;
  border: 1px solid #ffe5e3 !important;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f7 100%) !important;
  box-shadow: 0 6px 18px rgba(230, 88, 81, 0.10) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resume-course:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230, 88, 81, 0.16) !important;
}
.resume-course__content {
  padding: 18px 22px !important;
  text-decoration: none;
  gap: 16px;
}
.resume-course__status {
  font-size: 0.74rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #e65851 !important;
  margin: 0 0 4px 0 !important;
}
.resume-course__title {
  font-size: 1rem !important;
  font-weight: 600;
  color: #1a1a1a !important;
  margin: 0 !important;
  line-height: 1.35;
}
.resume-course__image {
  margin: 0 !important;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #ffe5e3;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #e65851;            /* SVG inherits via currentColor */
  flex-shrink: 0;
  flex-grow: 0;
}
.resume-course__image svg {
  width: 32px;
  height: 32px;
}
/* Hide any image fallback (placeholder.png) if Liquid icon path fails */
.resume-course__image img {
  display: none !important;
}

/* Desktop: override theme's right-aligned text + 60/35 proportions
   The outer layout (heading-left, card-right) is theme-default and we let
   that work; we only fix the inside of the card. */
@media (min-width: 768px) {
  .products .resume-course {
    max-width: 480px !important;
  }
  .resume-course__text {
    flex: 1;
    width: auto !important;     /* override theme's width: 60% */
    margin: 0 !important;       /* override theme's margin-right: 5% */
    padding: 0 !important;
    text-align: left !important;/* override theme's text-align: right */
  }
  .resume-course__image {
    width: 60px !important;     /* override theme's width: 35% */
    height: 60px;
  }
}

/* Mobile: stack the card content, center-align, full-width card */
@media (max-width: 767px) {
  .resume-course__content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 18px !important;
    gap: 12px;
  }
  .resume-course__text {
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .resume-course__image {
    width: 64px !important;
    height: 64px;
  }
  .resume-course__image svg {
    width: 32px;
    height: 32px;
  }
}

/* === COURSE CARDS === */
.products .product {
  border: 1px solid #f0f0f0 !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.products .product:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09) !important;
}
.products .product__content {
  padding: 22px 20px 20px !important;
}
.products .product__title {
  font-size: 1.1rem !important;
  line-height: 1.35;
  margin-bottom: 14px !important;
}

/* === PROGRESS BAR: 8px, rounded, keep Kajabi blue === */
.products .progress {
  padding: 0 !important;
  margin: 10px 0 16px !important;
  background-color: transparent !important;
}
.products .progress__outer {
  height: 8px !important;
  border-radius: 999px;
  background-color: #f1f1f1 !important;
  overflow: hidden;
}
.products .progress__inner {
  height: 8px !important;
  border-radius: 999px;
}

/* === DESCRIPTION: 2 lines max === */
.products .product__body {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 2.85rem;
  margin-bottom: 16px;
}

/* === BUTTONS === */
.products .btn,
.products .btn.btn--solid {
  border-radius: 8px !important;
  padding: 12px 22px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* === MOBILE course cards === */
@media (max-width: 767px) {
  .products .sizer {
    padding-top: 20px;
  }
  .products__title {
    font-size: 1.5rem;
  }
  .products__header {
    margin-bottom: 20px;
  }
  .products .product__content {
    padding: 18px 16px 16px !important;
  }
  .products .btn,
  .products .btn.btn--solid {
    width: 100%;
  }
}

/* ============================================================================
   HOMEPAGE (courses.turkishle.com/) — sales catalog page polish
   ----------------------------------------------------------------------------
   The homepage uses `.feature` blocks (not `.product`). Section IDs are
   from the live HTML:
   - 1696930977524 = Google review bar + course cards (A1/A2/B1)
   - 1697036174416 = Bundle heading + Bundle card
   - 1706711928938 = VIP heading + VIP card
   - 1696852639493 = Contact Us + Elfsight reviews (already coral)
   ============================================================================ */

/* === 1. Section background alternation — Bundle gets warm cream === */
#section-1697036174416 {
  background-color: #fff8f7;
}

/* === 2. Section headings: refined typography + CSS-injected subtitle ===
   The heading TEXT stays in Kajabi admin ("BUNDLE PACKAGE (50% OFF)" /
   "VIP SPEAKING PROGRAM"). CSS adds a subtitle line beneath via ::after. */
#block-1697036174416_2 .block h3,
#block-1706711928938_0 .block h2 {
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
#block-1697036174416_2 .block::after,
#block-1706711928938_0 .block::after {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}
#block-1697036174416_2 .block::after {
  content: "All 5 self-paced courses + bonuses. Save $688.";
}
#block-1706711928938_0 .block::after {
  content: "12-week 1-on-1 coaching with real Turkish teachers.";
}

/* === 3. Bundle + VIP cards: shrink to match course card width === */
@media (min-width: 768px) {
  #block-1697036174416_0,
  #block-1706711928938_1 {
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 33.333333% !important;
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
  #block-1697036174416_0 .feature__image,
  #block-1706711928938_1 .feature__image {
    width: 100% !important;
    max-width: 300px !important;
  }
}

/* === 4. Feature card polish: typography rhythm + layered shadow === */
.feature {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feature__text {
  flex: 1;
  margin-top: 14px;
}
.feature__text h4 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  margin: 0 0 8px !important;
}
.feature__text p {
  font-size: 0.9rem !important;
  color: #6b7280 !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
  /* Clamp to 2 lines so all cards have matching heights */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

/* === 5. Trust signal on course cards: removed in v9 (felt like filler) === */

/* === 6. Refined feature buttons — readable size + "→" arrow === */
.feature .btn,
.feature .btn--solid {
  padding: 12px 24px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature .btn::after {
  content: " →";
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.feature .btn:hover,
.feature .btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 88, 81, 0.28);
}
.feature .btn:hover::after {
  transform: translateX(3px);
}

/* === 7. Google review bar: polished, real stars, more breathing room === */
.google-review-bar {
  background: #fafafa !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid #e5e7eb !important;
  gap: 12px !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  color: #374151 !important;
}
.google-logo {
  width: 60px !important;
}
/* Hide the original emoji stars; CSS renders crisp Unicode stars in their place */
.review-stars {
  display: none !important;
}
.google-review-bar::after {
  content: "★★★★★";
  color: #fbbc05;
  font-size: 1.1em;
  letter-spacing: 2px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .google-review-bar {
    padding: 10px 14px !important;
    font-size: 0.82rem !important;
    gap: 8px !important;
  }
  .google-logo {
    width: 42px !important;
  }
  .google-review-bar::after {
    font-size: 0.95em;
    letter-spacing: 1px;
  }
}

/* ============================================================================
   FOOTER — light, minimal, single-row at desktop
   Content quantity is small, so design weight stays light.
   ============================================================================ */

/* Force visible even if old section settings still say "hide_on_desktop/mobile" */
#section-footer .footer { display: block !important; }

.footer.footer--turkishle {
  background-color: #fafafa !important;
  border-top: 1px solid #e5e7eb !important;
  padding: 22px 24px !important;
  margin-top: 48px;
  color: #6b7280 !important;
  font-family: inherit;
}
.footer__inner {
  max-width: 920px;        /* narrow container so whitespace falls on the outside, not between elements */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* Right-side cluster: Privacy/Terms + socials grouped together */
.footer__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Social icons */
.footer__socials {
  display: flex;
  gap: 10px;
}
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #d4d4d8;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.footer__socials a:hover {
  color: #e65851;
  border-color: #e65851;
  transform: translateY(-2px);
}
.footer__socials svg {
  width: 16px;
  height: 16px;
}

/* Privacy / Terms */
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.footer__links a:hover {
  color: #e65851;
}

/* Copyright */
.footer__copyright {
  color: #9ca3af;
  font-size: 0.82rem;
  margin: 0;
}

/* Desktop: copyright LEFT, Privacy/Terms + socials grouped on the RIGHT.
   Narrow max-width on .footer__inner keeps the layout from sprawling. */
@media (min-width: 768px) {
  .footer.footer--turkishle {
    padding: 20px 32px !important;
  }
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    text-align: left;
  }
  .footer__right {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
}

