/* Page-specific layout for Career Conversations – reflections & posters */

/* ✅ Normal-feel fix (iOS Safari sideways “elastic” scroll) */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ✅ Media safety (images/videos/SVGs must never exceed viewport) */
img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* ✅ Common overflow fix for grid/flex children (prevents 1–20px horizontal overflow) */
.career-hero > * {
    min-width: 0;
}

.career-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.3fr);
    gap: 1.4rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .career-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

.career-hero-main {
    background: radial-gradient(circle at top left,
            rgba(168, 85, 247, 0.16),
            rgba(15, 23, 42, 0.02));
    border-radius: 1.2rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.3rem;
    position: relative;
    overflow: hidden;
}

.career-hero-main::before {
    content: "";
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(circle at 0 0, rgba(234, 179, 8, 0.20), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.15), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.career-hero-main-inner {
    position: relative;
    z-index: 1;
}

.career-hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
}

.career-hero-badge {
    border-radius: 999px;
    padding: 0.16rem 0.7rem;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.career-hero-badge strong {
    font-weight: 600;
    color: #f9fafb;
}

.career-hero-title {
    font-size: clamp(1.55rem, 2.6vw, 1.9rem);
    line-height: 1.25;
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere; /* ✅ long words won't push layout */
}

.career-hero-title span {
    background: linear-gradient(120deg, #a855f7, #eab308);
    -webkit-background-clip: text;
    color: transparent;
}

.career-hero-text {
    font-size: 0.9rem;
    color: var(--text-soft);
    max-width: 32rem;
    margin-bottom: 0.8rem;
    overflow-wrap: anywhere; /* ✅ safety */
}

.career-hero-footnote {
    font-size: 0.8rem;
    color: var(--text-soft);
    overflow-wrap: anywhere; /* ✅ safety */
}

.career-hero-side {
    background: var(--card);
    border-radius: 1.2rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.1rem;
    font-size: 0.85rem;
    overflow-wrap: anywhere; /* ✅ safety */
}

.career-hero-side h2 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

/* Filters (simple, for reflections) */

.career-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
    align-items: center;
    font-size: 0.8rem;
}

.career-filter-label {
    color: var(--text-soft);
    margin-right: 0.25rem;
}

.btn-career-filter {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(148, 163, 184, 0.06);
    cursor: pointer;
    transition: 0.16s ease-out;
}

.btn-career-filter.active {
    border-color: rgba(168, 85, 247, 0.9);
    background: rgba(168, 85, 247, 0.10);
    color: #a855f7;
}

/* Reflection cards */

.reflection-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.reflection-card {
    background: var(--card);
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.reflection-card::before {
    content: "";
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(circle at 0 0, rgba(168, 85, 247, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(234, 179, 8, 0.18), transparent 55%);
    opacity: 0.55;
    pointer-events: none;
}

.reflection-inner {
    position: relative;
    z-index: 1;
    min-width: 0; /* ✅ allows inner content to shrink */
}

.reflection-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
    min-width: 0; /* ✅ shrink-safe */
}

.reflection-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-main);
    overflow-wrap: anywhere; /* ✅ long titles won't cause horizontal drag */
    min-width: 0;
}

/* Remove "Session held in" and keep only the date */
.reflection-meta-date {
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Hide the prefix text if it exists */
.reflection-meta-date::before {
  content: "";
}

.reflection-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    min-width: 0;
}

.reflection-tag {
    padding: 0.14rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.02);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
}

.reflection-tag-theme {
    border-color: #a855f7;
    color: #a855f7;
}

.reflection-speaker {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 0.35rem;
    overflow-wrap: anywhere; /* ✅ */
}

.reflection-snippet {
    font-size: 0.84rem;
    color: var(--text-soft);
    margin-bottom: 0.45rem;
    overflow-wrap: anywhere; /* ✅ */
}

.reflection-takeaways {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 0.4rem;
    overflow-wrap: anywhere; /* ✅ */
}

.reflection-takeaways ul {
    margin-top: 0.25rem;
}

.reflection-takeaways li {
    margin-bottom: 0.2rem;
}

.reflection-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    min-width: 0;
}

.reflection-actions a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    color: var(--accent);
    overflow-wrap: anywhere; /* ✅ */
}

.reflection-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.75rem;
    min-width: 0;
}

.reflection-pill {
    padding: 0.14rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(148, 163, 184, 0.06);
}

/* ✅ Pagination UI for reflections (Load more + count) */

.reflection-pagination{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:.6rem;
    margin-top:1rem;
}

.btn-load-more{
    border:1px solid var(--border-soft);
    background:rgba(148,163,184,0.08);
    border-radius:999px;
    padding:.55rem 1.1rem;
    font-size:.85rem;
    cursor:pointer;
    transition:0.16s ease-out;
    max-width: 100%;
}

.btn-load-more:hover{
    transform: translateY(-1px);
}

.btn-load-more:disabled{
    opacity:.55;
    cursor:not-allowed;
    transform:none;
}

.reflection-count{
    font-size:.78rem;
    color:var(--text-soft);
    text-align:center;
    overflow-wrap:anywhere;
}

/* Poster / flyer carousel – compact, thumbnail-style */

.flyer-carousel-wrapper {
    margin-top: 0.8rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.flyer-carousel {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    /* ✅ Makes horizontal swipes feel contained (less “page rubber-band”) */
    overscroll-behavior-x: contain;
}

.flyer-carousel::-webkit-scrollbar {
    height: 6px;
}

.flyer-carousel::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 999px;
}

.flyer-carousel::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 999px;
}

.flyer-slide {
    flex: 0 0 68%;
    max-width: 68%;
    scroll-snap-align: center;
    min-width: 0;
}

@media (min-width: 900px) {
    .flyer-slide {
        flex: 0 0 38%;
        max-width: 38%;
    }
}

.flyer-card {
    background: var(--card);
    border-radius: 0.9rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

/* Make cards keyboard-focusable (JS sets tabindex="0") */
.flyer-card:focus-visible{
    outline: 2px solid rgba(168, 85, 247, 0.75);
    outline-offset: 3px;
}

.flyer-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    background: radial-gradient(circle at top,
            rgba(56, 189, 248, 0.18),
            rgba(15, 23, 42, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* ✅ ensure image never leaks outside */
}

.flyer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flyer-thumb-label {
    position: absolute;
    bottom: 0.35rem;
    left: 0.55rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #e5e7eb;
    font-size: 0.68rem;
}

.flyer-body {
    padding: 0.55rem 0.65rem 0.6rem;
    min-width: 0;
}

.flyer-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.12rem;
    overflow-wrap: anywhere; /* ✅ */
}

.flyer-meta {
    font-size: 0.73rem;
    color: var(--text-soft);
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere; /* ✅ */
}

.flyer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    font-size: 0.7rem;
    min-width: 0;
}

.flyer-tag {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(148, 163, 184, 0.06);
}

.flyer-carousel-hint {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-soft);
    text-align: center;
    overflow-wrap: anywhere; /* ✅ */
}
