/* CASINO-AGG / PROVIDERS-P1C / scoped, production-ready profile design. */
.agg-provider-profile { overflow: clip; }

.provider-profile-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 53% 66% at 83% 45%, rgba(38, 82, 172, .14), transparent 80%), var(--bg);
    padding-block: clamp(68px, 7.3vw, 105px) clamp(86px, 8vw, 122px);
}
.provider-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 40%;
    pointer-events: none;
    opacity: .27;
    background: radial-gradient(circle, rgba(150, 185, 250, .24) .85px, transparent 1.6px) 0 0 / 24px 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
    mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.provider-profile-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(38px, 6vw, 96px);
    align-items: center;
}
.provider-profile-intro h1 {
    margin: 24px 0 27px;
    max-width: 720px;
    font-weight: 720;
    font-size: clamp(61px, 6.6vw, 101px);
    letter-spacing: -.074em;
    line-height: 1.04;
}
.provider-profile-lead {
    max-width: 650px;
    margin: 0;
    color: #c1d0ea;
    font-size: clamp(19px, 1.8vw, 25px);
    font-weight: 520;
    line-height: 1.54;
    letter-spacing: -.028em;
}
.provider-profile-hero-cta { margin-top: 33px; }
.provider-profile-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 415px;
    padding: 40px 30px;
    overflow: hidden;
    background: linear-gradient(137deg, #172b49 5%, #13243e 58%, #1b3457 100%);
    border-radius: 13px;
}
.provider-profile-visual-orbit {
    position: absolute;
    width: 350px;
    height: 350px;
    inset-inline-end: -140px;
    top: 7%;
    border: 1px solid rgba(163, 191, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 67px rgba(88, 136, 236, .026), 0 0 0 134px rgba(88, 136, 236, .021);
    pointer-events: none;
}
.provider-profile-brand { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.provider-profile-brand strong {
    color: #fff;
    max-width: 100%;
    text-align: center;
    font-size: clamp(43px, 5vw, 74px);
    font-weight: 770;
    line-height: 1.1;
    letter-spacing: -.073em;
    overflow-wrap: anywhere;
}
.provider-profile-brand img { display: block; width: min(100%, 460px); height: auto; max-height: 175px; object-fit: contain; }
.provider-profile-visual-signature { position: absolute; inset-inline-end: 33px; bottom: 29px; display: flex; gap: 7px; }
.provider-profile-visual-signature i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #567bb7; }
.provider-profile-visual-signature i:first-child { background: #afcaff; }

.provider-profile-section { padding-block: clamp(84px, 8vw, 122px); }
.provider-profile-section h2 {
    margin: 15px 0 0;
    font-size: clamp(37px, 4.3vw, 60px);
    line-height: 1.12;
    letter-spacing: -.06em;
    font-weight: 700;
}
.provider-profile-editorial-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(55px, 10vw, 160px); }
.provider-profile-about { background: var(--paper); color: var(--paper-text); }
.provider-profile-about .eyebrow, .provider-profile-approach .eyebrow { color: var(--accent); }
.provider-profile-prose { padding-top: 13px; }
.provider-profile-prose p { margin: 0 0 24px; color: var(--paper-muted); font-size: 17px; line-height: 1.91; }
.provider-profile-prose p:last-child { margin-bottom: 0; }
.provider-profile-formats { background: #0d1729; }
.provider-profile-heading { margin-bottom: 44px; }
.provider-profile-format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.provider-profile-format-card {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-height: 302px;
    padding: 37px 36px;
    background: #192b47;
    border-radius: 11px;
}
.provider-profile-format-card:nth-child(2) { background: #1a2e4c; }
.provider-profile-format-card:nth-child(3) { background: #1c3152; }
.provider-profile-format-icon { display: block; width: 61px; height: 61px; object-fit: contain; }
.provider-profile-format-card h3 { margin: 0 0 12px; font-size: clamp(21px, 2vw, 26px); font-weight: 710; line-height: 1.3; letter-spacing: -.045em; }
.provider-profile-format-card p { margin: 0; max-width: 365px; color: #b0bed5; font-size: 14px; line-height: 1.81; }
.provider-profile-approach { background: #edf1f7; color: var(--paper-text); }
.provider-profile-cta { padding-block: 92px; background: linear-gradient(112deg, #265ad8, #3267ed 58%, #2453c7); }
.provider-profile-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 55px; }
.provider-profile-cta-inner > div { max-width: 780px; }
.provider-profile-cta-inner .eyebrow { color: #d8e5ff; }
.provider-profile-cta h2 { margin: 17px 0 0; font-size: clamp(37px, 4.3vw, 60px); line-height: 1.12; letter-spacing: -.062em; font-weight: 700; }
.provider-profile-cta-inner p:not(.eyebrow) { max-width: 620px; margin: 20px 0 0; color: #e2eaff; font-size: 16px; line-height: 1.8; }
.provider-profile-cta .button { flex: 0 0 auto; }
.provider-profile-website { padding-block: 36px 55px; text-align: right; }
.provider-profile-website a { display: inline-flex; align-items: center; gap: 11px; color: #9eafcc; text-decoration: none; font-size: 12px; font-weight: 680; }
.provider-profile-website a:hover { color: #fff; }
.provider-profile-website a span { font-size: 16px; color: var(--accent-light); }

@media (max-width: 1000px) {
    .provider-profile-hero-grid { gap: 39px; }
    .provider-profile-visual { min-height: 345px; }
    .provider-profile-format-card { padding: 31px 27px; }
}
@media (max-width: 780px) {
    .provider-profile-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .provider-profile-intro h1 { font-size: clamp(60px, 9vw, 84px); }
    .provider-profile-visual { min-height: 310px; }
    .provider-profile-editorial-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .provider-profile-prose { padding-top: 0; }
    .provider-profile-format-grid { grid-template-columns: minmax(0, 1fr); }
    .provider-profile-format-card { min-height: 210px; gap: 29px; }
    .provider-profile-cta-inner { flex-direction: column; align-items: flex-start; gap: 34px; }
}
@media (max-width: 540px) {
    .provider-profile-hero { padding-block: 48px 72px; }
    .provider-profile-intro h1 { font-size: clamp(55px, 14.6vw, 74px); margin-bottom: 22px; }
    .provider-profile-lead { font-size: 19px; }
    .provider-profile-hero-cta { width: 100%; margin-top: 29px; }
    .provider-profile-visual { min-height: 260px; padding: 30px 24px; }
    .provider-profile-brand strong { font-size: clamp(42px, 11vw, 57px); }
    .provider-profile-section { padding-block: 74px; }
    .provider-profile-section h2, .provider-profile-cta h2 { font-size: clamp(36px, 9vw, 46px); }
    .provider-profile-prose p { font-size: 15px; line-height: 1.83; }
    .provider-profile-format-card { padding: 30px; min-height: 225px; }
    .provider-profile-format-card h3 { font-size: 23px; }
    .provider-profile-cta { padding-block: 74px; }
    .provider-profile-cta .button { width: 100%; }
    .provider-profile-website { padding-block: 30px 48px; }
}

/* PROVIDERS-P1D / Brand logos, original format visuals, clean section headings. */
.provider-profile-hero-grid.without-provider-logo { grid-template-columns: minmax(0, 850px); }
.provider-profile-hero-grid.without-provider-logo .provider-profile-intro { max-width: 850px; }
.provider-profile-visual {
    min-height: 330px;
    background: #111e34;
    padding: clamp(32px, 4vw, 54px);
}
.provider-profile-brand-logo { display: block; width: min(100%, 430px); height: auto; max-height: 180px; object-fit: contain; }
.provider-profile-section h2 { margin-top: 0; }
/* P1E: original white vector symbols on clean navy, no photographic banners. */
.provider-profile-format-card {
    min-height: 360px;
    gap: 0;
    padding: 22px 0 30px;
    overflow: hidden;
}
.provider-profile-format-media {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 188px;
    padding: 5px 24px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}
.provider-profile-format-copy { padding: 15px 31px 0; }
.provider-profile-format-card h3 { margin-bottom: 12px; }
.provider-profile-format-card p { max-width: none; }
/* Only catalog cards get these rules; unaffected by the rest of the site. */
.content-provider-directory .provider-card-refined { min-height: 220px; }
.content-provider-directory .provider-card-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 88px;
    width: 100%;
    max-width: calc(100% - 25px);
}
.content-provider-directory .provider-card-logo img {
    display: block;
    width: min(100%, 200px);
    height: auto;
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
}
.content-provider-directory .provider-card-no-logo { min-height: 220px; }
.content-provider-directory .provider-card-no-logo .provider-card-copy { margin-top: auto; }
@media (max-width: 780px) {
    .provider-profile-hero-grid.without-provider-logo { grid-template-columns: minmax(0, 1fr); }
    .provider-profile-format-card { min-height: 0; }
    .provider-profile-format-media { height: 180px; }
}
@media (max-width: 540px) {
    .provider-profile-format-copy { padding: 12px 27px 0; }
    .provider-profile-format-media { height: 160px; padding-inline: 14px; }
    .provider-profile-format-card { padding: 15px 0 27px; }
    .content-provider-directory .provider-card-refined,
    .content-provider-directory .provider-card-no-logo { min-height: 175px; }
}


/* PROVIDERS-P1F / Optional official game catalog: one unobtrusive link. */
.provider-profile-game-reference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding-inline: 2px;
}
.provider-profile-game-reference-title {
    margin: 0 0 5px;
    color: #edf3ff;
    font-size: 15px;
    font-weight: 640;
    line-height: 1.45;
}
.provider-profile-game-reference-detail {
    margin: 0;
    color: #9aacc9;
    font-size: 13px;
    line-height: 1.65;
}
.provider-profile-game-reference-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    color: #c5d9fa;
    font-size: 14px;
    font-weight: 660;
    line-height: 1.45;
    text-decoration: none;
    text-underline-offset: 5px;
}
.provider-profile-game-reference-link .ui-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}
.provider-profile-game-reference-link:hover,
.provider-profile-game-reference-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}
@media (max-width: 680px) {
    .provider-profile-game-reference {
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
        margin-top: 25px;
    }
}

/* P14: cards link only to the provider profile; official game references
   remain available on the separate provider profile pages. */
.content-provider-directory .provider-directory-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.content-provider-directory .provider-directory-item[hidden] { display: none; }
.content-provider-directory .provider-directory-item > .provider-card { flex: 1 1 auto; }
.content-provider-directory .provider-card-logo img[src$="/platin-gaming.webp"] {
    width: min(100%, 230px);
}

/* CASINO-AGG P35-R2 / provider profile format links. */
.provider-profile-format-card-link { position: relative; color: inherit; text-decoration: none; cursor: pointer; transition: transform .23s ease, background-color .23s ease, box-shadow .23s ease; }
.provider-profile-format-card-link:hover, .provider-profile-format-card-link:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(1,8,20,.35); }
.provider-profile-format-card-link .provider-profile-format-copy { padding-inline-end: 55px; }
.provider-profile-format-arrow { position: absolute; top: 21px; inset-inline-end: 21px; width: 17px; height: 17px; color: #dce8ff; opacity: .75; transition: opacity .2s ease, transform .2s ease; }
.provider-profile-format-card-link:hover .provider-profile-format-arrow, .provider-profile-format-card-link:focus-visible .provider-profile-format-arrow { opacity: 1; transform: translate(2px,-2px); }
.provider-profile-format-card-link:focus-visible { outline: 2px solid #a9c6ff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .provider-profile-format-card-link, .provider-profile-format-arrow { transition: none; } }

/* P49-R1: WCAG AA contrast in provider profile approach paragraphs. */
.provider-profile-approach .provider-profile-prose p { color: #4e5d73; }
