/**
 * Home Banner — element stylesheet (loaded on demand by fame_pe_style()).
 * Scoped under .fame-el-homebanner; every class is element-prefixed (fame-hb-)
 * so nothing here can reach the theme or Bootstrap.
 */

.fame-el-homebanner {
    --hb-ink: #0d1b3e;
    --hb-soft: #56628a;
    --hb-blue: #0063E3;
    --hb-green: #17a35d;
    --hb-red: #e0443e;
    --hb-gold: #e2b24a;
    --hb-line: #e3e9f4;
    --hb-bg: #f7fafd;

    position: relative;
    overflow: hidden;
    padding: 25px 0 50px;
    color: var(--hb-ink);
}
/* Dotted "map" texture, fading out towards the edges — CSS only. */
.fame-el-homebanner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(13, 27, 62, .11) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 78%);
    pointer-events: none;
}
.fame-el-homebanner img { max-width: 100%; display: block; }
.fame-el-homebanner a { text-decoration: none; }

/* ---- decorative shapes ---- */
.fame-hb-deco { position: absolute; pointer-events: none; }
.fame-hb-deco-tri {
    left: 6%; bottom: 8%;
    width: 0; height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 26px solid rgba(226, 178, 74, .75);
}
.fame-hb-deco-ring {
    left: 2%; bottom: 20%;
    width: 64px; height: 64px;
    border: 2px solid rgba(0, 99, 227, .18);
    border-radius: 50%;
}
.fame-hb-deco-dot {
    right: 4%; top: 12%;
    width: 14px; height: 14px;
    background: rgba(23, 163, 93, .35);
    border-radius: 50%;
}

/* ---- layout ---- */
.fame-hb-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1296px;
    margin: 0 auto;
    padding: 0;
}

/* ---- left: copy ---- */
.fame-hb-copy { display: flex; flex-direction: column; gap: 18px; }

.fame-hb-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin: 0;
    padding: 6px 13px;
    color: #fff;
    background: var(--hb-blue);
    border-radius: 999px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
}
.fame-hb-pill svg { width: 16px; height: 16px; flex: 0 0 16px; }

.fame-hb-title {
    margin: 0;
    font-size: clamp(30px, 3.1vw, 36px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: var(--hb-ink);
}
.fame-hb-title-1, .fame-hb-title-2 { display: block; }
.fame-hb-title-2 { color: var(--hb-green); }

.fame-hb-tagline {
    position: relative;
    margin: 0;
    padding-bottom: 10px;
    color: var(--hb-soft);
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
}
/* Short green accent line under the tagline. */
.fame-hb-tagline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 130px;
    height: 3px;
    border-radius: 3px;
    background: var(--hb-green);
}

.fame-hb-stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 25px;
    margin: 14px 0 0;
    padding: 0;
}
.fame-hb-stats li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* icon + value on one row, the label sits under them */
.fame-hb-stat-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fame-hb-stat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    flex: 0 0 auto;
}
.fame-hb-stat-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fame-hb-stats strong {
    color: var(--hb-ink);
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
}
.fame-hb-stat-label {
    color: var(--hb-soft);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
}

.fame-hb-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 14px; }
.fame-hb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    color: #fff;
    border-radius: 10px;
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
}
.fame-hb-btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.fame-hb-btn--1 { background: var(--hb-green); }
.fame-hb-btn--2 { background: var(--hb-blue); }
.fame-hb-btn:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 10px 22px -10px rgba(13, 27, 62, .6); }
.fame-hb-btn:active { transform: translateY(1px); }

/* ---- middle: exam orbit ----
   Badges sit on a circle of radius --hb-r, spaced evenly: each <li> is rotated
   to its slot, pushed out, then rotated back so its content stays upright. */
.fame-hb-orbit {
    --hb-size: 380px;
    --hb-r: 150px;
    --hb-badge: 74px;
    position: relative;
    width: min(100%, var(--hb-size));
    aspect-ratio: 1;
    margin: 0 auto;
}
.fame-hb-ring {
    position: absolute;
    inset: 7%;
    background: url("../../../../../templates/fame-theme/assets/img/banner-brdr-circle.png") center / contain no-repeat;
}
.fame-hb-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 155px; height: 155px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
}
.fame-hb-core img { width: 155px; height: 155px; border-radius: 50%; object-fit: cover; }

.fame-hb-exams { list-style: none; position: absolute; inset: 0; margin: 0; padding: 0; animation: fameHbOrbit 24s linear infinite; }
.fame-hb-exam {
    --hb-a: calc(var(--hb-i) * 360deg / var(--hb-n));
    position: absolute;
    top: 50%; left: 50%;
    width: var(--hb-badge); height: var(--hb-badge);
    margin: calc(var(--hb-badge) / -2) 0 0 calc(var(--hb-badge) / -2);
    transform: rotate(var(--hb-a)) translateY(calc(-1 * var(--hb-r))) rotate(calc(-1 * var(--hb-a)));
}
.fame-hb-badge {
    --hb-badge-c: var(--hb-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%; height: 100%;
    background: #fff;
    border: 3px solid var(--hb-badge-c);
    border-radius: 50%;
    box-shadow: 0 10px 24px -12px rgba(13, 27, 62, .45);
    color: var(--hb-ink);
    /* Counter-spin: exactly cancels the ring's rotation so the badge orbits
       the dashed line while its flag + label stay upright. */
    animation: fameHbSpin 24s linear infinite;
    transition: transform .15s ease;
}
.fame-hb-exam:nth-child(3n+2) .fame-hb-badge { --hb-badge-c: var(--hb-blue); }
.fame-hb-exam:nth-child(3n) .fame-hb-badge { --hb-badge-c: var(--hb-red); }
a.fame-hb-badge:hover { color: var(--hb-badge-c); }
.fame-hb-badge img, .fame-hb-exam-glyph {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
}
.fame-hb-exam-glyph { display: inline-flex; align-items: center; justify-content: center; color: var(--hb-badge-c); }
.fame-hb-exam-glyph svg { width: 24px; height: 24px; }
.fame-hb-exam-label { font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .01em; white-space: nowrap; }

/* The exam ring rotates a full turn; each badge counter-rotates the same
   amount, so the badges travel around the dashed ring and stay upright. */
@keyframes fameHbOrbit { to { transform: rotate(360deg); } }
@keyframes fameHbSpin { to { transform: rotate(-360deg); } }
/* Pause the orbit while the pointer is over it — the ring and the badge
   counter-spin freeze together, so the badges hold their upright position. */
.fame-hb-orbit:hover .fame-hb-exams,
.fame-hb-orbit:hover .fame-hb-badge { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .fame-hb-exams, .fame-hb-badge { animation: none; }
}

/* ---- right: profile ---- */
.fame-hb-profile { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.fame-hb-portrait { position: relative; margin: 0 0 -46px; z-index: 0; }
.fame-hb-portrait::before {
    content: "";
    position: absolute;
    left: 50%; bottom: 10%;
    width: 78%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 99, 227, .16), rgba(23, 163, 93, .10) 60%, transparent 72%);
    border-radius: 50%;
    z-index: -1;
}
.fame-hb-portrait img { width: 100%; height: auto; }

.fame-hb-seal {
    position: absolute;
    top: 0%; right: 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 134px; height: 134px;
    margin: 0;
    padding: 0px 15px;
    text-align: center;
    background: url("../../../../../templates/fame-theme/assets/img/banner-stamp.png") center / contain no-repeat;
    z-index: 1;
}
.fame-hb-seal strong { font-size: 14px; font-weight: 800; line-height: 1.1; color: #b07a12; }
.fame-hb-seal span { font-size: 9px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; color: var(--hb-soft); padding: 0px 5px; }

.fame-hb-card {
    position: relative;
    z-index: 1;
    
}
.fame-hb-card:before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    border: 1px solid #49C192;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    z-index: 1;
}
.fame-hb-card-inn {
    position: relative;
    z-index: 2;
    padding: 16px 18px;
    /* Gradient border (green → blue, top → bottom): a white padding-box fill
       sits over a gradient border-box, so the 2px frame shows the gradient. */
    border: 2px solid transparent;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 18px 40px -18px rgba(13, 27, 62, .45);
}
.fame-hb-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--hb-ink);
}
.fame-hb-role {
    padding: 3px 9px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    background: var(--hb-blue);
    border-radius: 999px;
}
.fame-hb-creds { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--hb-ink); }
.fame-hb-aff { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--hb-soft); }

/* ---- responsive ---- */
@media (min-width: 1100px) {
    .fame-hb-grid { grid-template-columns: 1.15fr 1fr 1.05fr; gap: 36px; }
    .fame-hb-profile { margin: 0; max-width: none; }
}
@media (max-width: 1099px) {
    .fame-hb-copy { align-items: center; text-align: center; }
    .fame-hb-pill { align-self: center; }
    .fame-hb-stats, .fame-hb-actions { justify-content: center; }
}
@media (max-width: 480px) {
    .fame-el-homebanner { padding: 0px 0 32px; }
    .fame-hb-orbit { --hb-size: 300px; --hb-r: 118px; --hb-badge: 64px; }
    .fame-hb-core { width: 96px; height: 96px; }
    .fame-hb-core img { width: 72px; height: 72px; }
    .fame-hb-exam-label { font-size: 10px; }
    .fame-hb-seal { width: 86px; height: 86px; }
}
@media (prefers-reduced-motion: reduce) {
    .fame-hb-badge { animation: none; }
}
