/* ============================================================
   PARADOX INDEX — Trusted Affiliations Page
   css/affiliations.css
   ============================================================ */

/* ---- Entrance animations ---------------------------------- */

@keyframes affil-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes affil-float {
    0%, 100% { transform: translateY(0px);  }
    50%      { transform: translateY(-3px); }
}

.anim-fade-up {
    opacity: 0;
    animation: affil-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-delay-0 { animation-delay: 0.05s; }
.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.25s; }
.anim-delay-3 { animation-delay: 0.35s; }
.anim-delay-4 { animation-delay: 0.45s; }
.anim-delay-5 { animation-delay: 0.55s; }

/* ---- NAV BRAND: kill every browser default link style ----- */

.nav-brand a,
.nav-brand a:link,
.nav-brand a:visited,
.nav-brand a:hover,
.nav-brand a:active,
.nav-brand a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    background: none !important;
    outline: none;
    font: inherit;
    letter-spacing: inherit;
}

/* ---- NAV LINKS: ensure all items are visible & white ------ */

.nav-links a,
.nav-links a:link,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Force all six direct-child anchors to be fully opaque
   (the slideInRight animation handles the entrance;
   this catches any item the nth-child selector misses)      */
.nav-links > a {
    opacity: 0;
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.nav-links > a:nth-child(1) { animation-delay: 0.22s; }
.nav-links > a:nth-child(2) { animation-delay: 0.30s; }
.nav-links > a:nth-child(3) { animation-delay: 0.38s; }
.nav-links > a:nth-child(4) { animation-delay: 0.46s; }
.nav-links > a:nth-child(5) { animation-delay: 0.54s; }
.nav-links > a:nth-child(6) { animation-delay: 0.62s; }

/* Active page highlight — copper underline stays visible */
.nav-links a[aria-current="page"]::after {
    width: 100% !important;
}

.nav-links a[aria-current="page"] {
    opacity: 1 !important;
    color: #ffffff !important;
}

/* ---- Hero ------------------------------------------------- */

.affil-hero {
    min-height: 44vh;
    display: flex;
    align-items: flex-end;
    padding: 0 4rem;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.affil-hero-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 4rem;
    padding-top: 8rem;
}

.affil-hero-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #B87333;
    margin-bottom: 1.4rem;
}

.affil-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 2rem;
}

.affil-hero-divider {
    width: 48px;
    height: 2px;
    background: #B87333;
}

/* ---- Main layout ------------------------------------------ */

.affil-main {
    background: #ffffff;
    min-height: 60vh;
    padding: 5rem 4rem 7rem;
}

.affil-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- Introduction ----------------------------------------- */

.affil-intro {
    max-width: 760px;
    margin-bottom: 4.5rem;
}

.affil-intro-text {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.78;
    color: #2a2a2a;
    text-align: left;
}

/* ---- Affiliation list ------------------------------------- */

.affil-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ---- Affiliation card ------------------------------------- */

.affil-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition:
        transform     0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow    0.3s cubic-bezier(0.22, 1, 0.36, 1),
        border-color  0.25s ease;
    overflow: visible;
}

.affil-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    border-color: #c8c8c8;
}

/* Full-card anchor — strip EVERY browser link default */
.affil-card-link,
.affil-card-link:link,
.affil-card-link:visited,
.affil-card-link:hover,
.affil-card-link:active,
.affil-card-link:focus {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    background: none !important;
    padding: 3rem 3rem 2.8rem;
    cursor: pointer;
    border-radius: 6px;
    outline-offset: 4px;
    -webkit-text-decoration: none;
}

.affil-card-link:focus-visible {
    outline: 2px solid #B87333;
}

/* Prevent any child inside card from going blue */
.affil-card-link *,
.affil-card-link *:link,
.affil-card-link *:visited {
    color: inherit !important;
    text-decoration: none !important;
}

/* ---- External link icon ----------------------------------- */

.affil-ext-icon,
.affil-ext-icon:link,
.affil-ext-icon:visited,
.affil-ext-icon:hover,
.affil-ext-icon:active {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    color: #aaaaaa !important;
    text-decoration: none !important;
    opacity: 0;
    transition: opacity 0.22s ease, color 0.22s ease, transform 0.22s ease;
    z-index: 2;
    line-height: 0;
    display: block;
}

.affil-card:hover .affil-ext-icon {
    opacity: 1;
    color: #777777 !important;
    transform: translate(1px, -1px);
}

/* ---- Logo ------------------------------------------------- */

.affil-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 2.5rem;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 2.5rem;
}

.affil-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    border-radius: 3px;
}

.affil-logo:hover {
    transform: scale(1.02);
    filter: brightness(1.03);
}

.affil-logo-float {
    animation: affil-float 9s ease-in-out infinite;
}

/* ---- Card header ------------------------------------------ */

.affil-card-header {
    margin-bottom: 2rem;
}

.affil-org-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0a0a0a !important;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    text-decoration: none !important;
}

.affil-org-type {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #B87333 !important;
    text-decoration: none !important;
}

/* ---- Sections --------------------------------------------- */

.affil-section {
    margin-bottom: 2rem;
}

.affil-section:last-child {
    margin-bottom: 0;
}

.affil-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888888 !important;
    margin-bottom: 0.75rem;
    text-decoration: none !important;
}

.affil-section-text {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.75;
    color: #333333 !important;
    max-width: 720px;
    text-decoration: none !important;
}

/* ---- Specialty tags --------------------------------------- */

.affil-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.affil-tag,
.affil-tag:link,
.affil-tag:visited {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border: 1px solid #d8d8d8;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #444444 !important;
    background: #fafafa;
    transition: border-color 0.18s ease;
    cursor: default;
    text-decoration: none !important;
}

.affil-tag:hover {
    border-color: #aaaaaa;
    color: #444444 !important;
}

/* ---- Website row ------------------------------------------ */

.affil-website-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.affil-website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #B87333 !important;
    letter-spacing: 0.01em;
    text-decoration: none !important;
}

.affil-website-ext {
    color: #B87333;
    opacity: 0.7;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .affil-hero  { padding: 0 2.5rem; }
    .affil-main  { padding: 4rem 2.5rem 6rem; }
    .affil-hero-title { font-size: clamp(2rem, 7vw, 3.5rem); }
    .affil-card-link  { padding: 2.5rem 2rem 2.2rem; }
}

@media (max-width: 600px) {
    .affil-hero       { padding: 0 1.5rem; min-height: 38vh; }
    .affil-hero-inner { padding-bottom: 3rem; }
    .affil-hero-title { font-size: clamp(1.8rem, 9vw, 2.6rem); line-height: 1.1; }
    .affil-main       { padding: 3rem 1.5rem 5rem; }
    .affil-intro      { margin-bottom: 3rem; }
    .affil-intro-text { font-size: 0.97rem; }
    .affil-card-link  { padding: 2rem 1.5rem 2rem; }
    .affil-logo       { max-width: 200px; }
    .affil-logo-wrap  { padding: 1.5rem 1rem 2rem; }
    .affil-org-name   { font-size: 1.15rem; }
    .affil-tags       { gap: 0.4rem; }
}
