
/* ═══════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════ */
.ap-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #ffffff;
    min-height: 60vh;
}

/* ═══════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════ */
.ap-breadbar {
    background: #f7f8fa;
    border-bottom: 1px solid #e8eaef;
    padding: 12px 0;
}
.ap-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.ap-breadcrumb li       { display: flex; align-items: center; }
.ap-breadcrumb a        { color: #374151; text-decoration: none; font-weight: 500; padding: 0 4px; transition: color 0.15s; }
.ap-breadcrumb a:hover  { color: var(--primary-dark-green); }
.ap-breadcrumb__sep     { color: #9ca3af; font-size: 12px; padding: 0 2px; }
.ap-breadcrumb__current { color: #6b7280; padding: 0 4px; }

/* ═══════════════════════════════════════════════════════
   HERO PROFILE CARD
═══════════════════════════════════════════════════════ */
.ap-hero {
    /* Scoped to this dark hero band only — decoupled from the shared
       color.css tokens so it doesn't break if the site-wide theme changes
       (it previously borrowed --text-primary/--bg-secondary/etc. assuming
       they resolved dark, which broke when those tokens became light). */
    --hero-text: #eee;
    --hero-text-secondary: #cbb19a;
    --hero-text-muted: #9aa3a0;
    --hero-surface: #005375;
    --hero-surface-hover: #0B5F85;
    --hero-border: #0B5F85;
    background: var(--primary-dark-green);
    padding: 56px 0 48px;
}
.ap-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* Avatar */
.ap-avatar-wrap {
    flex-shrink: 0;
}
.ap-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid var(--hero-border);
}
.ap-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--hero-surface);
    border: 4px solid var(--hero-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ap-avatar-placeholder svg { color: var(--hero-text-muted); }

/* Text block */
.ap-hero__text { flex: 1; min-width: 0; }

.ap-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.ap-hero__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--hero-text);
    line-height: 1.2;
    margin: 0 0 8px;
}
.ap-hero__designation {
    font-size: 15px;
    font-weight: 500;
    color: var(--hero-text-secondary);
    margin: 0 0 16px;
}
.ap-hero__short-desc {
    font-size: 15px;
    color: var(--hero-text-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 20px;
}

/* Meta row */
.ap-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.ap-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--hero-text-muted);
}
.ap-hero__meta-item svg { flex-shrink: 0; color: var(--hero-text-secondary); }

/* Video button */
.ap-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hero-text);
    background: var(--hero-surface);
    border: 1px solid var(--hero-border);
    border-radius: 8px;
    padding: 9px 18px;
    text-decoration: none;
    transition: background 0.18s;
    margin-top: 16px;
}
.ap-video-btn:hover { background: var(--hero-surface-hover); color: var(--hero-text); text-decoration: none; }
.ap-video-btn svg   { color: var(--hero-text-secondary); }

/* ═══════════════════════════════════════════════════════
   DESCRIPTION SECTION
═══════════════════════════════════════════════════════ */
.ap-bio {
    padding: 48px 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f2f6;
}
.ap-bio__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
}
.ap-bio__content {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.8;
    max-width: 800px;
}
.ap-bio__content p  { margin: 0 0 14px; }
.ap-bio__content p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════
   ARTICLES SECTION
═══════════════════════════════════════════════════════ */
.ap-articles {
    padding: 48px 0 72px;
    background: #ffffff;
}
.ap-articles__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.ap-articles__title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.ap-articles__count {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   CARD GRID  (reused from blog listing)
═══════════════════════════════════════════════════════ */
.ap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 991px) { .ap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ap-grid { grid-template-columns: 1fr; } }

.ap-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: ap-fadeUp 0.35s ease both;
}
.ap-card:nth-child(2) { animation-delay: 60ms;  }
.ap-card:nth-child(3) { animation-delay: 120ms; }
.ap-card:nth-child(4) { animation-delay: 180ms; }
.ap-card:nth-child(5) { animation-delay: 240ms; }
.ap-card:nth-child(6) { animation-delay: 300ms; }
.ap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 83, 117, 0.12);
}
.ap-card__img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
}
.ap-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.ap-card:hover .ap-card__img { transform: scale(1.04); }
.ap-card__cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--primary-dark-green);
    padding: 16px 20px 0;
    margin: 0;
    line-height: 1;
}
.ap-card__body {
    flex: 1;
    padding: 10px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ap-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0;
}
.ap-card__title a { color: inherit; text-decoration: none; transition: color 0.15s; }
.ap-card__title a:hover { color: var(--primary-dark-green); }
.ap-card__excerpt {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}
.ap-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    background: var(--primary-dark-green);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 0 0 10px 10px;
    transition: background 0.18s, gap 0.18s;
    flex-shrink: 0;
}
.ap-card__btn:hover {
    background: #0B5F85;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════════ */
.ap-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    gap: 10px;
}
.ap-empty svg        { color: #9ca3af; margin-bottom: 8px; }
.ap-empty__title     { font-size: 16px; font-weight: 600; color: #374151; margin: 0; }
.ap-empty__sub       { font-size: 14px; color: #9ca3af; margin: 0; }

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.ap-pag-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 48px;
}
.ap-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ap-pg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
    text-decoration: none;
}
.ap-pg-btn:hover:not(.ap-pg-disabled):not(.ap-pg-active) {
    border-color: var(--primary-dark-green);
    color: var(--primary-dark-green);
    background: #f0f9ff;
    text-decoration: none;
}
.ap-pg-active {
    background: var(--primary-dark-green);
    border-color: var(--primary-dark-green);
    color: #ffffff !important;
    font-weight: 700;
}
.ap-pg-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.ap-pg-ellipsis { color: #9ca3af; font-size: 14px; padding: 0 4px; }
.ap-pag-meta    { font-size: 12.5px; color: #9ca3af; margin: 0; }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes ap-fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ap-hero             { padding: 36px 0 32px; }
    .ap-hero__inner      { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
    .ap-hero__short-desc { margin-inline: auto; }
    .ap-hero__meta       { justify-content: center; }
    .ap-avatar, .ap-avatar-placeholder { width: 110px; height: 110px; }
    .ap-bio, .ap-articles { padding: 32px 0 40px; }
    .ap-articles__header  { flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
    .ap-pg-btn { min-width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-card, .ap-card__img { transition: none; animation: none; }
}
