/* -- author-page.css -- */
/* ── Author archive page (/author/nicename/) ─────────────────── */
.ap { min-height: 100vh; }

.ap__hero { background: linear-gradient(180deg, #001733 0%, #000F26 100%); padding: 80px 0; }
.ap__hero-inner { display: flex; align-items: flex-start; gap: 52px; }

.ap__avatar-wrap { flex-shrink: 0; }
.ap__avatar { width: 164px; height: 164px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(74, 239, 237, 0.45); display: block; }
.ap__avatar-placeholder {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B2240 0%, #163563 100%);
  border: 4px solid rgba(74, 239, 237, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 64px;
  font-weight: 700;
  color: #4AEFED;
  user-select: none;
}

.ap__hero-content { flex: 1; min-width: 0; padding-top: 8px; }
.ap__role-label { display: inline-block; font-family: var(--font-family); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #4AEFED; margin-bottom: 12px; }
.ap__name { font-family: var(--font-family); font-size: 58px; line-height: 68px; font-weight: 700; color: #ffffff; margin: 0 0 24px; }
.ap__bio { font-family: var(--font-family); font-size: 18px; line-height: 30px; font-weight: 400; color: rgba(255, 255, 255, 0.85); max-width: 800px; margin: 0 0 28px; }

.ap__links { display: flex; align-items: center; gap: 16px; }
.ap__linkedin { display: inline-flex; align-items: center; gap: 8px; background: #0A66C2; color: #ffffff; font-family: var(--font-family); font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 8px; text-decoration: none; transition: background 0.2s ease; }
.ap__linkedin:hover { background: #085196; color: #ffffff; }

.ap__articles { background: #ffffff; padding: 80px 0; }
.ap__articles-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; gap: 16px; }
.ap__articles-heading { font-family: var(--font-family); font-size: 45px; line-height: 54px; font-weight: 700; color: #0F172A; margin: 0; }
.ap__articles-link { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-family); font-size: 14px; font-weight: 600; color: #2563F6; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.ap__articles-link:hover { color: #1D4ED8; }

.ap__loading, .ap__empty { text-align: center; font-family: var(--font-family); font-size: 18px; color: #596586; padding: 60px 0; }

@media (max-width: 1024px) {
  .ap__name { font-size: 47px; line-height: 57px; }
  .ap__articles-heading { font-size: 36px; line-height: 46px; }
}

@media (max-width: 768px) {
  .ap__hero { padding: 60px 0; }
  .ap__hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 32px; }
  .ap__name { font-size: 36px; line-height: 46px; margin-bottom: 18px; }
  .ap__bio { font-size: 16px; line-height: 26px; }
  .ap__links { justify-content: center; }
  .ap__articles { padding: 60px 0; }
  .ap__articles-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ap__articles-heading { font-size: 28px; line-height: 38px; }
}

@media (max-width: 480px) {
  .ap__avatar, .ap__avatar-placeholder { width: 120px; height: 120px; }
  .ap__avatar-placeholder { font-size: 48px; }
  .ap__name { font-size: 30px; line-height: 40px; }
}

/* -- insights-blog.css -- */
/* ── Insights blog listing — tabs, featured card, grid, pagination ── */
.ins-blog { background: #ffffff; padding: 80px 0; }

.ins-blog__topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.ins-blog__tabs { display: flex; gap: 10px; flex-wrap: wrap; }

.ins-blog__tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.ins-blog__tab--active { background: #2563F6; color: #ffffff; }
.ins-blog__tab--inactive { background: #F1F5F9; color: #596586; }
.ins-blog__tab--inactive:hover { background: #E2E8F0; color: #2563F6; }

.ins-blog__sort { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ins-blog__sort-label { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400; color: #596586; white-space: nowrap; }

.ins-blog__sort-select {
  padding: 7px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0F172A;
  background: #ffffff;
  cursor: pointer;
  outline: none;
}
.ins-blog__sort-select:focus { border-color: #2563F6; }

.ins-blog__empty { text-align: center; font-family: 'Inter', sans-serif; font-size: 18px; color: #596586; padding: 60px 0; }

.ins-feat { display: flex; border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; margin-bottom: 56px; background: #ffffff; transition: box-shadow 0.25s ease; text-decoration: none; }
.ins-feat:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10); }

.ins-feat__img-wrap { flex: 0 0 50%; max-width: 50%; min-height: 320px; position: relative; overflow: hidden; }
.ins-feat__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.ins-feat:hover .ins-feat__img { transform: scale(1.03); }

.ins-feat__body { flex: 1; padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.ins-feat__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

.ins-feat__category { background: #EFF6FF; color: #2563F6; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.ins-feat__readtime { display: flex; align-items: center; gap: 5px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 400; color: #596586; }

.ins-feat__title { font-family: 'Inter', sans-serif; font-size: 30px; line-height: 1.35; font-weight: 700; color: #0F172A; margin: 0 0 14px; }
.ins-feat__excerpt { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.7; font-weight: 400; color: #596586; margin: 0 0 28px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ins-feat__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ins-feat__author { display: flex; align-items: center; gap: 10px; }
.ins-feat__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ins-feat__author-info { display: flex; flex-direction: column; gap: 3px; }
.ins-feat__author-name { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #0F172A; }
.ins-feat__date { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 400; color: #596586; }

.ins-feat__cta { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #2563F6; text-decoration: none; display: flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; }
.ins-feat__cta:hover { color: #1D4ED8; }

.ins-latest__heading { font-family: 'Inter', sans-serif; font-size: 24px; line-height: 1.3; font-weight: 700; color: #0F172A; margin: 0 0 28px; }
.ins-latest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.ins-art { border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; background: #ffffff; display: flex; flex-direction: column; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.ins-art:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09); transform: translateY(-3px); }

.ins-art__img-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #F1F5F9; }
.ins-art__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.ins-art:hover .ins-art__img { transform: scale(1.03); }

.ins-art__category-badge { position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, 0.55); color: #ffffff; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); pointer-events: none; }

.ins-art__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ins-art__meta { display: flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 400; color: #596586; margin-bottom: 10px; }
.ins-art__dot { width: 3px; height: 3px; border-radius: 50%; background: #596586; flex-shrink: 0; }

.ins-art__title { font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1.45; font-weight: 600; color: #0F172A; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; }
.ins-art__title:hover { color: #2563F6; }
.ins-art__desc { font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.65; font-weight: 400; color: #596586; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

.ins-art__author { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.ins-art__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ins-art__author-name { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: #596586; }

.ins-page { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 56px; flex-wrap: wrap; }
.ins-page .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #596586;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.ins-page .page-numbers:hover { background: #EFF6FF; color: #2563F6; border-color: #2563F6; }
.ins-page .page-numbers.current { background: #2563F6; color: #ffffff; border-color: #2563F6; }
.ins-page .page-numbers.dots { border: none; background: none; }

@media (max-width: 1024px) {
  .ins-blog__topbar { margin-bottom: 36px; }
  .ins-latest__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ins-feat__title { font-size: 26px; }
}

@media (max-width: 768px) {
  .ins-blog { padding: 60px 0; }
  .ins-blog__topbar { margin-bottom: 28px; }
  .ins-blog__tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ins-blog__tabs::-webkit-scrollbar { display: none; }
  .ins-feat { flex-direction: column; margin-bottom: 40px; }
  .ins-feat__img-wrap { flex: none; max-width: 100%; min-height: 220px; height: 220px; }
  .ins-feat__body { padding: 24px 20px; }
  .ins-feat__title { font-size: 22px; }
  .ins-latest__grid { grid-template-columns: 1fr; gap: 20px; }
  .ins-page { gap: 4px; margin-top: 40px; }
}

