/* ==========================================================================
   Yanjye — custom polish layer (loaded AFTER style.css so it overrides).
   Non-destructive: tweaks typography, spacing, colours, buttons, cards and
   mobile behaviour without changing the template's HTML structure.
   ========================================================================== */

:root {
  /* Brand palette taken from the Yanjye logo: blue dots, green dots, orange wordmark */
  --yj-primary: #159cdb;        /* logo blue */
  --yj-primary-dark: #0f7bb0;   /* darker blue */
  --yj-accent: #f7941d;         /* logo orange wordmark */
  --yj-green: #57b947;          /* logo green */
  --yj-ink: #1f2733;
  --yj-muted: #6b7280;
  --yj-radius: 14px;
  --yj-shadow: 0 10px 30px rgba(31, 39, 51, .08);
}

body {
  color: var(--yj-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Prevent horizontal overflow on small screens. */
html, body { overflow-x: hidden; max-width: 100%; }
img, iframe, video, table { max-width: 100%; }

/* ==========================================================================
   Modern e-learning header (Udemy-style): solid, sticky, white.
   Overrides the template's absolute/transparent header.
   ========================================================================== */
.yj-header.header_area {
  position: sticky !important;
  top: 0;
  width: 100%;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(20, 23, 28, .06), 0 6px 22px rgba(20, 23, 28, .06);
  z-index: 1000;
  transition: box-shadow .3s ease;
}
.yj-header .navbar {
  background: #fff !important;
  padding: .5rem 0;
}

/* Brand */
.yj-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
/* Real Yanjye logo image */
.yj-brand-img { height: 40px; width: auto; display: block; }
/* White plate so the logo stays visible on dark / gradient backgrounds */
.yj-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.yj-logo-plate img { height: 30px; width: auto; display: block; }
@media (max-width: 575px) { .yj-brand-img { height: 34px; } }
.yj-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  box-shadow: 0 6px 14px rgba(21, 156, 219, .35);
}
.yj-brand-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .2px;
  color: var(--yj-ink);
  line-height: 1;
}
.yj-brand-accent { color: var(--yj-accent); }

/* Nav links */
.yj-header .menu_nav { align-items: center; }
.yj-header .menu_nav .nav-item { margin: 0 2px; }
.yj-header .menu_nav .nav-item .nav-link {
  font-weight: 600;
  color: var(--yj-ink) !important;
  padding: 10px 16px;
  border-radius: 10px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.yj-header .menu_nav .nav-item .nav-link:hover,
.yj-header .menu_nav .nav-item.active .nav-link {
  color: var(--yj-primary-dark) !important;
  background: rgba(21, 156, 219, .08);
}

/* Auth area */
.yj-auth { display: flex; align-items: center; gap: 12px; }
.yj-btn-ghost,
.yj-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.yj-btn-ghost {
  color: var(--yj-primary-dark);
  border: 1.5px solid rgba(21, 156, 219, .35);
  background: #fff;
}
.yj-btn-ghost:hover {
  color: var(--yj-primary-dark);
  border-color: var(--yj-primary);
  background: rgba(21, 156, 219, .06);
}
.yj-btn-solid {
  color: #fff;
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  box-shadow: 0 8px 18px rgba(21, 156, 219, .3);
}
.yj-btn-solid:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(21, 156, 219, .42);
}

/* Signed-in user menu */
.yj-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--yj-ink);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 50px;
}
.yj-user-toggle:hover { color: var(--yj-primary-dark); }
.yj-user-toggle .ti-angle-down { font-size: 11px; color: var(--yj-muted); }
.yj-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--yj-accent), #ff8a5c);
}
.yj-user-menu {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--yj-shadow);
  padding: 8px;
  margin-top: 10px;
}
.yj-user-menu .dropdown-item {
  border-radius: 9px;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--yj-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.yj-user-menu .dropdown-item:hover { background: rgba(21, 156, 219, .08); color: var(--yj-primary-dark); }
.yj-user-menu .dropdown-item i { color: var(--yj-primary); width: 18px; text-align: center; }

/* Hamburger toggle */
.yj-header .navbar-toggler {
  border: 1px solid rgba(21, 156, 219, .35) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  background: #fff;
  outline: none;
}
.yj-header .navbar-toggler .icon-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--yj-primary-dark);
  border-radius: 2px;
  transition: all .3s ease;
}

/* Mobile: collapsed menu becomes a clean dropdown panel */
@media (max-width: 991px) {
  .yj-header .navbar { padding: .35rem 0; }
  .yj-header .navbar-collapse {
    background: #fff;
    border-radius: var(--yj-radius);
    padding: 14px;
    margin-top: 12px;
    box-shadow: var(--yj-shadow);
  }
  .yj-header .menu_nav .nav-item { margin: 2px 0; }
  .yj-header .menu_nav .nav-item .nav-link { display: block; }
  .yj-auth {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(20, 23, 28, .08);
    flex-wrap: wrap;
  }
  .yj-auth .yj-btn-ghost,
  .yj-auth .yj-btn-solid { flex: 1 1 auto; }
}

/* ---------- Buttons ---------- */
.primary-btn2,
.click-btn.btn-default,
.btn.btn-default {
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  color: #fff !important;
  border: 0;
  border-radius: 50px;
  padding: 10px 26px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(21, 156, 219, .25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.primary-btn2:hover,
.click-btn.btn-default:hover,
.btn.btn-default:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(21, 156, 219, .35);
  color: #fff !important;
}

/* ---------- Section titles ---------- */
.main_title h2 {
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.main_title h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 56px; height: 4px;
  border-radius: 4px;
  background: var(--yj-accent);
  transform: translateX(-50%);
}
.main_title p { color: var(--yj-muted); }

/* ---------- Cards (features / courses / testimonials) ---------- */
.single_feature,
.single_course,
.testi_item {
  background: #fff;
  border-radius: var(--yj-radius);
  box-shadow: var(--yj-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.single_feature:hover,
.single_course:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(31, 39, 51, .14);
}
.single_feature .course_head img,
.single_course .course_head img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.single_course .course_content,
.single_feature .desc { padding: 18px 22px 26px; }
.single_course .tag {
  background: rgba(21, 156, 219, .12);
  color: var(--yj-primary-dark);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Carousel ---------- */
.carousel-item img { max-height: 78vh; object-fit: cover; }
.carousel-caption .primary-btn2 { font-size: 1rem; }

/* ==========================================================================
   Modern footer
   ========================================================================== */
.yj-footer {
  background: #11161f;
  background-image: linear-gradient(180deg, #161c27 0%, #0e131b 100%);
  color: #aab3c0;
  padding: 70px 0 24px;
}
.yj-footer-top { padding-bottom: 40px; }

/* Brand column */
.yj-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-decoration: none;
}
.yj-footer-logo .yj-brand-text { color: #fff; font-size: 1.3rem; font-weight: 800; }
.yj-footer-desc { font-size: .95rem; line-height: 1.7; max-width: 360px; color: #95a0ae; }

.yj-footer-social { margin-top: 18px; display: flex; gap: 10px; }
.yj-footer-social a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #cfd6df;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.yj-footer-social a:hover {
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  color: #fff;
  transform: translateY(-3px);
}

/* Link columns */
.yj-footer .single-footer-widget h4 {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.yj-footer .single-footer-widget ul { list-style: none; padding: 0; margin: 0; }
.yj-footer .single-footer-widget ul li { margin-bottom: 11px; }
.yj-footer .single-footer-widget ul li a {
  color: #95a0ae;
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s ease, padding-left .2s ease;
}
.yj-footer .single-footer-widget ul li a:hover { color: var(--yj-accent); padding-left: 5px; }

/* Contact list */
.yj-footer-contact li { display: flex; align-items: center; gap: 10px; }
.yj-footer-contact i { color: var(--yj-accent); width: 16px; }
.yj-footer-contact a { color: #95a0ae; }

/* Newsletter */
.yj-newsletter { display: flex; gap: 8px; margin-top: 6px; max-width: 360px; }
.yj-newsletter .form-control {
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  padding: 10px 18px;
  height: auto;
}
.yj-newsletter .form-control::placeholder { color: #7c8694; }
.yj-newsletter .form-control:focus {
  background: rgba(255, 255, 255, .08);
  border-color: var(--yj-primary);
  box-shadow: none;
  color: #fff;
}
.yj-newsletter .yj-btn-solid { padding: 10px 22px; }
.yj-newsletter-note { display: block; margin-top: 10px; color: #6f7986; font-size: .8rem; }

/* Bottom bar */
.yj-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: #7c8694;
}
.yj-footer-bottom .ti-heart { color: var(--yj-accent); }
@media (max-width: 767px) {
  .yj-footer { padding-top: 50px; text-align: left; }
  .yj-footer-bottom { justify-content: center; text-align: center; }
}

/* Tighten the template's oversized section spacing (was 130px). */
.section_gap { padding: 60px 0 !important; }
.section_gap_top { padding-top: 60px !important; }
.feature_area .single_feature .desc { padding: 18px 22px 24px; }
.feature_area .single_feature .desc h5 { margin-bottom: 10px; font-weight: 700; }
.feature_area .single_feature .desc p { margin: 0; color: var(--yj-muted); }
.popular_courses, .testimonial_area { padding-top: 40px; }

/* ==========================================================================
   Welcome page sections (intro, stats, why-choose, CTA)
   ========================================================================== */
.yj-intro { padding: 40px 0 20px; }
.yj-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--yj-primary-dark);
  background: rgba(21, 156, 219, .1);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.yj-intro-title {
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--yj-ink);
  margin-bottom: 18px;
}
.yj-intro-title span { color: var(--yj-accent); }
.yj-intro-text { color: var(--yj-muted); font-size: 1.08rem; line-height: 1.75; max-width: 540px; }
.yj-intro-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Stats grid */
.yj-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.yj-stat {
  background: #fff;
  border-radius: var(--yj-radius);
  box-shadow: var(--yj-shadow);
  padding: 26px 20px;
  text-align: center;
}
.yj-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.yj-stat-label { display: block; color: var(--yj-muted); font-weight: 600; font-size: .9rem; margin-top: 4px; }

/* Why choose us */
.yj-why { padding: 45px 0 15px; }
.yj-why-card {
  background: #fff;
  border: 1px solid rgba(20, 23, 28, .06);
  border-radius: var(--yj-radius);
  padding: 30px 24px;
  height: 100%;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  margin-bottom: 24px;
}
.yj-why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--yj-shadow);
  border-color: transparent;
}
.yj-why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(21, 156, 219, .3);
}
.yj-why-card h5 { font-weight: 700; margin-bottom: 10px; color: var(--yj-ink); }
.yj-why-card p { color: var(--yj-muted); font-size: .95rem; line-height: 1.6; margin: 0; }

/* Call to action band */
.yj-cta { padding: 30px 0 80px; }
.yj-cta-box {
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  border-radius: 22px;
  padding: 48px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 24px 50px rgba(15, 123, 176, .35);
}
.yj-cta-text h2 { color: #fff; font-weight: 800; margin-bottom: 8px; }
.yj-cta-text p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 560px; }
.yj-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.yj-btn-light, .yj-btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; padding: 12px 26px; border-radius: 50px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.yj-btn-light { background: #fff; color: var(--yj-primary-dark); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.yj-btn-light:hover { color: var(--yj-primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.22); }
.yj-btn-outline-light { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.yj-btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.12); border-color: #fff; }

@media (max-width: 991px) {
  .yj-intro-title { font-size: 2rem; }
  .yj-stats { margin-top: 36px; }
  .yj-cta-box { padding: 36px 26px; text-align: center; justify-content: center; }
  .yj-cta-text p { margin: 0 auto; }
}

/* ==========================================================================
   Auth pages (login / register)
   ========================================================================== */
.yj-auth-page {
  padding: 50px 0 70px;
  background:
    radial-gradient(1200px 400px at 100% -10%, rgba(21, 156, 219, .10), transparent),
    radial-gradient(900px 400px at -10% 110%, rgba(247, 148, 29, .08), transparent),
    #f6f7fb;
}
.yj-auth-card {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(31, 39, 51, .14);
}

/* Promo aside */
.yj-auth-aside {
  flex: 0 0 42%;
  max-width: 42%;
  background: linear-gradient(150deg, var(--yj-primary), var(--yj-primary-dark));
  color: #fff;
  padding: 48px 40px;
  position: relative;
}
.yj-auth-aside::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.yj-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 34px;
}
.yj-auth-logo .yj-logo { background: rgba(255, 255, 255, .18); box-shadow: none; }
.yj-auth-aside h2 { font-weight: 800; font-size: 1.7rem; margin-bottom: 12px; }
.yj-auth-aside p { color: rgba(255, 255, 255, .85); line-height: 1.7; }
.yj-auth-points { list-style: none; padding: 0; margin: 26px 0 0; }
.yj-auth-points li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 500; }
.yj-auth-points li i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); font-size: 12px; flex: 0 0 26px;
}

/* Form side */
.yj-auth-form { flex: 1 1 58%; max-width: 58%; padding: 48px 46px; }
.yj-auth-form h3 { font-weight: 800; color: var(--yj-ink); margin-bottom: 6px; }
.yj-auth-sub { color: var(--yj-muted); margin-bottom: 26px; }
.yj-auth-sub a { color: var(--yj-primary-dark); font-weight: 700; }

.yj-field { margin-bottom: 18px; }
.yj-field > label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--yj-ink);
  margin-bottom: 7px;
}
.yj-auth-form .form-control,
.yj-auth-form select.form-control {
  height: auto;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #e3e6ef;
  background: #fbfbfe;
  font-size: .97rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.yj-auth-form .form-control:focus {
  border-color: var(--yj-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 156, 219, .12);
}
.yj-auth-form .input-group-text {
  border-radius: 12px 0 0 12px;
  border: 1.5px solid #e3e6ef;
  border-right: 0;
  background: #f1f2f9;
  color: var(--yj-primary-dark);
}
.yj-auth-form .input-group .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.yj-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.yj-field-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 22px;
}
.yj-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--yj-muted); font-size: .92rem; }
.yj-check input { width: 16px; height: 16px; }
.yj-field-row a { color: var(--yj-primary-dark); font-weight: 600; font-size: .92rem; }
.yj-btn-block { width: 100%; padding: 13px 24px; font-size: 1rem; border: 0; cursor: pointer; }
.yj-auth-form .invalid-feedback { font-size: .85rem; }
/* Honeypot — visually hidden but still present in the DOM for bots */
.yj-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.yj-auth-fineprint { margin-top: 14px; text-align: center; font-size: .82rem; color: var(--yj-muted); }
.yj-auth-fineprint i { color: var(--yj-green, #57b947); }

@media (max-width: 767px) {
  .yj-auth-card { flex-direction: column; border-radius: 18px; }
  .yj-auth-aside, .yj-auth-form { max-width: 100%; flex-basis: auto; }
  .yj-auth-aside { padding: 34px 28px; }
  .yj-auth-aside .yj-auth-points { display: none; }
  .yj-auth-form { padding: 32px 26px; }
  .yj-field-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Inner content pages (about / team / structure / projects / opportunities / contact)
   ========================================================================== */
.yj-page-hero {
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  color: #fff;
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
}
.yj-page-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.yj-page-hero h1 { font-weight: 800; font-size: 2.3rem; margin: 0 0 8px; }
.yj-page-hero p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 620px; }
.yj-breadcrumb { margin-top: 14px; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.yj-breadcrumb a { color: #fff; font-weight: 600; }
.yj-breadcrumb span { margin: 0 8px; opacity: .6; }

/* Section tabs (pills) */
.yj-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border-radius: 50px;
  padding: 7px;
  box-shadow: var(--yj-shadow);
  max-width: 640px;
  margin: -28px auto 0;
  position: relative;
  z-index: 5;
}
.yj-pills a {
  flex: 1 1 auto;
  text-align: center;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  color: var(--yj-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.yj-pills a:hover { color: var(--yj-primary-dark); background: rgba(21, 156, 219, .08); }
.yj-pills a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  box-shadow: 0 6px 14px rgba(21, 156, 219, .3);
}

.yj-section { padding: 50px 0; }
.yj-section-light { background: #f6f7fb; }

/* Member / project cards */
.yj-member-card {
  background: #fff;
  border-radius: var(--yj-radius);
  box-shadow: var(--yj-shadow);
  overflow: hidden;
  text-align: center;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
  margin-bottom: 26px;
}
.yj-member-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31, 39, 51, .16); }
.yj-member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef0f7;
}
.yj-member-body { padding: 18px 18px 22px; }
.yj-member-body h4 { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; color: var(--yj-ink); }
.yj-member-role { color: var(--yj-primary-dark); font-weight: 600; font-size: .85rem; margin-bottom: 12px; }
.yj-member-links { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.yj-member-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(21, 156, 219, .1); color: var(--yj-primary-dark);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.yj-member-links a:hover { background: var(--yj-primary); color: #fff; transform: translateY(-2px); }
.yj-member-more { display: inline-block; margin-bottom: 8px; font-weight: 600; color: var(--yj-accent); }

/* Prose (about / structure text) */
.yj-prose-card {
  background: #fff;
  border-radius: var(--yj-radius);
  box-shadow: var(--yj-shadow);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.yj-prose-card img { border-radius: 12px; }
.yj-prose-card p, .yj-prose-card label { color: var(--yj-muted); line-height: 1.8; font-size: 1.02rem; text-align: justify; }

/* Contact cards */
.yj-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.yj-contact-card {
  background: #fff;
  border-radius: var(--yj-radius);
  box-shadow: var(--yj-shadow);
  padding: 34px 26px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.yj-contact-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31, 39, 51, .14); }
.yj-contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%;
  font-size: 1.6rem; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  box-shadow: 0 10px 22px rgba(21, 156, 219, .3);
}
.yj-contact-card h5 { font-weight: 700; color: var(--yj-ink); margin-bottom: 8px; }
.yj-contact-card a, .yj-contact-card p { color: var(--yj-muted); margin: 0; }
.yj-contact-card a:hover { color: var(--yj-primary-dark); }

@media (max-width: 767px) {
  .yj-page-hero { padding: 40px 0 48px; text-align: center; }
  .yj-page-hero h1 { font-size: 1.7rem; }
  .yj-page-hero p { margin: 0 auto; }
  .yj-contact-grid { grid-template-columns: 1fr; }
  .yj-prose-card { padding: 26px; }
}

/* Event detail page */
.yj-event-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--yj-shadow);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}
.yj-event-media { position: relative; height: 100%; min-height: 280px; background: #eef0f7; }
.yj-event-media img { width: 100%; height: 100%; object-fit: cover; }
.yj-event-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--yj-accent); color: #fff;
  font-weight: 700; font-size: .8rem;
  padding: 6px 14px; border-radius: 50px;
  box-shadow: 0 6px 14px rgba(247, 148, 29, .4);
}
.yj-event-body { padding: 36px; }
.yj-event-body h2 { font-weight: 800; color: var(--yj-ink); margin-bottom: 6px; }
.yj-event-subject { color: var(--yj-primary-dark); font-weight: 600; margin-bottom: 22px; }
.yj-event-meta { list-style: none; padding: 0; margin: 0 0 24px; }
.yj-event-meta li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid #eef0f5;
}
.yj-event-meta li:last-child { border-bottom: 0; }
.yj-event-meta li span { color: var(--yj-muted); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.yj-event-meta li span i { color: var(--yj-primary); }
.yj-event-meta li strong { color: var(--yj-ink); }
.yj-event-desc { padding: 0 36px 38px; }
.yj-event-desc h4 { font-weight: 700; color: var(--yj-ink); margin-bottom: 12px; }
.yj-event-desc p { color: var(--yj-muted); line-height: 1.8; text-align: justify; margin: 0; }
@media (max-width: 991px) {
  .yj-event-media { min-height: 220px; }
  .yj-event-body { padding: 28px; }
  .yj-event-desc { padding: 0 28px 30px; }
}

/* ---------- AdSense units ---------- */
.adsense-unit { min-height: 90px; }

/* Never hide content from no-JS clients / crawlers / AdSense review bots */
.no-js [data-aos] { opacity: 1 !important; transform: none !important; }

/* ---------- Misc spacing helpers ---------- */
.section_gap_top { padding-top: 80px; }
img.img-fluid.grey { background: #f4f5fb; }

/* ============ Canvas-style login (all auth pages) ============ */
.yj-clogin {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 18px;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(160deg, var(--yj-primary) 0%, var(--yj-primary-dark) 55%, #0b5e87 100%);
}
.yj-clogin-inner { width: 100%; max-width: 420px; }
.yj-clogin-brand { display: block; text-align: center; margin-bottom: 22px; }
.yj-clogin-brand img { height: 56px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.yj-clogin-card {
  background: #fff; border-radius: 16px; padding: 34px 32px 30px;
  box-shadow: 0 26px 60px rgba(8, 47, 73, .35);
}
.yj-clogin-card h1 { font-size: 1.45rem; font-weight: 800; color: var(--yj-ink); margin: 0 0 4px; text-align: center; }
.yj-clogin-card .yj-cl-lead { text-align: center; color: var(--yj-muted); font-size: .9rem; margin: 0 0 22px; }
.yj-cl-field { margin-bottom: 16px; }
.yj-cl-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--yj-ink); margin-bottom: 6px; }
.yj-cl-field .form-control,
.yj-clogin-card input[type="text"],
.yj-clogin-card input[type="email"],
.yj-clogin-card input[type="password"] {
  width: 100%; height: 46px; border: 1.5px solid #d7dde4; border-radius: 10px;
  padding: 0 14px; font-size: .95rem; color: var(--yj-ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.yj-clogin-card select.form-control {
  width: 100%; height: 46px; border: 1.5px solid #d7dde4; border-radius: 10px;
  padding: 0 12px; font-size: .95rem; color: var(--yj-ink); background: #fff;
}
.yj-clogin-card .input-group { display: flex; }
.yj-clogin-card .input-group-text {
  height: 46px; border: 1.5px solid #d7dde4; border-right: 0; border-radius: 10px 0 0 10px;
  background: #f5f7f9; padding: 0 12px; display: flex; align-items: center; color: var(--yj-muted);
}
.yj-clogin-card .input-group .form-control { border-radius: 0 10px 10px 0; }
.yj-clogin-card .yj-field > label { display: block; font-size: .82rem; font-weight: 600; color: var(--yj-ink); margin-bottom: 6px; }
.yj-clogin-card .yj-field { margin-bottom: 16px; }
.yj-clogin-card .yj-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.yj-cl-field .form-control:focus,
.yj-clogin-card input:focus,
.yj-clogin-card select:focus {
  outline: none; border-color: var(--yj-primary); box-shadow: 0 0 0 3px rgba(21,156,219,.18);
}
.yj-clogin-inner.wide { max-width: 560px; }
.yj-clogin-card.wide { padding: 32px 34px 28px; }
.yj-auth-fineprint, .yj-clogin-card .yj-auth-fineprint { text-align: center; color: var(--yj-muted); font-size: .8rem; margin-top: 14px; }
.yj-cl-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; }
.yj-cl-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--yj-muted); font-size: .88rem; cursor: pointer; }
.yj-cl-check input { width: 16px; height: 16px; }
.yj-cl-row a, .yj-cl-forgot { color: var(--yj-primary-dark); font-weight: 600; font-size: .88rem; text-decoration: none; }
.yj-cl-row a:hover, .yj-cl-forgot:hover { text-decoration: underline; }
.yj-cl-btn {
  width: 100%; height: 48px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark)); color: #fff;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; box-shadow: 0 10px 22px rgba(21,156,219,.32);
  transition: filter .15s, transform .05s;
}
.yj-cl-btn:hover { filter: brightness(1.05); }
.yj-cl-btn:active { transform: translateY(1px); }
.yj-cl-forgot.block { display: block; text-align: center; margin-top: 16px; }
.yj-cl-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #9aa3af; font-size: .8rem; }
.yj-cl-divider::before, .yj-cl-divider::after { content: ""; flex: 1; height: 1px; background: #e6e9ee; }
.yj-clogin-foot { text-align: center; color: rgba(255,255,255,.92); font-size: .9rem; margin: 20px 0 0; }
.yj-clogin-foot a { color: #fff; font-weight: 700; text-decoration: underline; }
.yj-clogin-help { text-align: center; color: rgba(255,255,255,.7); font-size: .78rem; margin: 26px 0 0; }
.yj-clogin-help a { color: rgba(255,255,255,.88); text-decoration: none; margin: 0 7px; }
.yj-clogin-help a:hover { text-decoration: underline; }
.yj-cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.yj-cl-alert { background: #fde8e8; color: #b42323; border-radius: 10px; padding: 10px 14px; font-size: .85rem; margin-bottom: 16px; }
.yj-cl-note { font-size: .8rem; color: var(--yj-muted); text-align: center; margin: 16px 0 0; line-height: 1.5; }
.yj-clogin .invalid-feedback { display: block; font-size: .8rem; color: #d23; margin-top: 5px; }
@media (max-width: 480px) {
  .yj-clogin-card { padding: 26px 22px; }
  .yj-cl-grid { grid-template-columns: 1fr; }
}
