/* ================================================================
   EDUCATION UPDATES — AUTHOR BOX CSS
   Paste into: Appearance → Customize → Additional CSS
              OR append to child theme style.css

   Matches the existing Education Updates design system exactly.
   Uses the same CSS variables (--eu-*) defined in style.css.
================================================================ */


/* ── AUTHOR BOX — OUTER SHELL ─────────────────────────────────── */

.eu-author-box {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin: 44px 0 8px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(37, 99, 235, 0.10);
  position: relative;
  overflow: hidden;
  font-family: 'Figtree', sans-serif;
}

/* Gradient top accent stripe */
.eu-author-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 16px 16px 0 0;
}

/* Subtle background glow in the corner */
.eu-author-box::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
}


/* ── AVATAR ────────────────────────────────────────────────────── */

.eu-ab-avatar-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.eu-ab-avatar-wrap a {
  display: block;
  text-decoration: none;
}

.eu-ab-avatar {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  display: block !important;
}

.eu-ab-avatar-wrap:hover .eu-ab-avatar {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.25) !important;
}

/* Gradient ring on hover */
.eu-ab-avatar-wrap a::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.eu-ab-avatar-wrap:hover a::after {
  opacity: 1;
}


/* ── CONTENT COLUMN ────────────────────────────────────────────── */

.eu-ab-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}


/* ── TOP ROW: Badge + Post Count ──────────────────────────────── */

.eu-ab-top {
display: none !important;
}

.eu-ab-badge {
display: none !important;
}

.eu-ab-post-count {
display: none !important;
}


/* ── AUTHOR NAME ───────────────────────────────────────────────── */

.eu-ab-name {
  font-family: 'Syne', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #1e2235 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;           /* override any heading border from global CSS */
  line-height: 1.3 !important;
}

.eu-ab-name a {
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
  -webkit-text-fill-color: #1e2235 !important;
  transition: color 0.2s ease !important;
}

.eu-ab-name a:hover {
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
}


/* ── BIO ───────────────────────────────────────────────────────── */

.eu-ab-bio {
  font-size: 0.93rem !important;
  line-height: 1.75 !important;
  color: #64748b !important;
  margin: 0 0 18px !important;
  font-family: 'Figtree', sans-serif !important;
}


/* ── SOCIAL BUTTONS ROW ────────────────────────────────────────── */

.eu-ab-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Base button */
.eu-ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Figtree', sans-serif;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.eu-ab-btn i {
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Per-platform colours ──────────────────────────────────────── */

.eu-ab-btn--facebook {
  background: rgba(24, 119, 242, 0.10);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.2);
}
.eu-ab-btn--facebook:hover {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
  transform: translateY(-2px);
}

.eu-ab-btn--instagram {
  background: rgba(225, 48, 108, 0.10);
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.2);
}
.eu-ab-btn--instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.4);
  transform: translateY(-2px);
}

.eu-ab-btn--whatsapp {
  background: rgba(37, 211, 102, 0.10);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.2);
}
.eu-ab-btn--whatsapp:hover {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.eu-ab-btn--twitter {
  background: rgba(0, 0, 0, 0.06);
  color: #0f0f0f;
  border-color: rgba(0, 0, 0, 0.12);
}
.eu-ab-btn--twitter:hover {
  background: #0f0f0f;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.eu-ab-btn--youtube {
  background: rgba(255, 0, 0, 0.08);
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.18);
}
.eu-ab-btn--youtube:hover {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.35);
  transform: translateY(-2px);
}

.eu-ab-btn--telegram {
  background: rgba(0, 136, 204, 0.10);
  color: #0088cc;
  border-color: rgba(0, 136, 204, 0.2);
}
.eu-ab-btn--telegram:hover {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
  transform: translateY(-2px);
}

.eu-ab-btn--linkedin {
  background: rgba(10, 102, 194, 0.10);
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.2);
}
.eu-ab-btn--linkedin:hover {
  background: #0a66c2;
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.4);
  transform: translateY(-2px);
}

/* Fix: prevent global button styles from overriding .eu-ab-btn */
.eu-ab-btn,
.eu-ab-btn:hover {
  border-radius: 50px !important;
  padding: 7px 14px !important;
  font-size: 0.78rem !important;
  font-family: 'Figtree', sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  -webkit-text-fill-color: currentColor;
}

.eu-ab-btn:hover {
  -webkit-text-fill-color: #fff;
}


/* ── RESPONSIVE ─────────────────────────────────────────────────── */

/* Tablet: slightly compact */
@media (max-width: 680px) {
  .eu-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 20px;
  }

  .eu-ab-avatar {
    width: 88px !important;
    height: 88px !important;
  }

 .eu-ab-top {
justify-content: center;
}

.eu-ab-name {
font-size: 1.1rem !important;
}

.eu-ab-bio {
font-size: 0.88rem !important;
}

.eu-ab-socials {
 justify-content: center;
}

  /* Hide button labels on very small screens — keep icons only */
  @media (max-width: 380px) {
.eu-ab-btn span {
display: none;
}

.eu-ab-btn {
 padding: 9px 11px !important;
 border-radius: 50% !important;
}

.eu-ab-btn i {
 font-size: 0.95rem;
    }
  }
}


/* ================================================================
   END — AUTHOR BOX CSS
================================================================ */
