/* UPM public-platform identity layer. Loaded after the shared portal stylesheet. */
:root {
    --ir-navy: #033f61;
    --ir-blue: #045881;
    --ir-sky: #55bfc1;
    --ir-ink: #123746;
    --ir-muted: #617780;
    --ir-cloud: #f1f7f6;
    --ir-line: #d7e7e4;
    --ir-white: #ffffff;
    --ir-gold: #eaba6a;
    --ir-teal: #2b8584;
    --ir-aqua: #69cbca;
    --ir-shadow: 0 26px 70px rgba(4, 88, 129, .12);
}

body {
    background: #f9fbfa;
    color: var(--ir-ink);
}

.ir-navbar {
    position: sticky;
    min-height: 90px;
    color: var(--ir-ink);
    background:
        linear-gradient(90deg, rgba(105, 203, 202, .055), transparent 28%, transparent 72%, rgba(234, 186, 106, .055)),
        rgba(255, 255, 255, .95);
    border-bottom: 1px solid rgba(4, 88, 129, .08);
    box-shadow: 0 13px 38px rgba(4, 88, 129, .075);
    backdrop-filter: blur(18px);
}

.ir-navbar::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--ir-teal), var(--ir-aqua) 44%, var(--ir-gold));
}

.ir-navbar::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(43, 133, 132, .3), transparent);
}

.ir-nav-container { min-height: 90px; gap: 24px; }

.ir-brand {
    position: relative;
    isolation: isolate;
}

.ir-brand::before {
    position: absolute;
    content: "";
    inset: 12px -12px;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(circle, rgba(105, 203, 202, .14), transparent 70%);
    border-radius: 50%;
    transform: scale(.8);
    transition: opacity .3s ease, transform .3s ease;
}

.ir-brand:hover::before { opacity: 1; transform: scale(1); }

.ir-brand img {
    width: 205px;
    height: 70px;
    filter: none;
    transition: transform .3s ease;
}

.ir-brand:hover img { transform: translateY(-2px); }

.ir-nav-links { gap: 4px; }

.ir-navbar .ir-nav-links .nav-link {
    padding: 11px 13px;
    border-radius: 10px;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.ir-navbar .ir-nav-links .nav-link,
.ir-navbar .ir-login-link {
    color: #365864;
}

.ir-navbar .ir-nav-links .nav-link:hover,
.ir-navbar .ir-nav-links .nav-link.active,
.ir-navbar .ir-login-link:hover {
    color: var(--ir-blue);
}

.ir-navbar .ir-nav-links .nav-link:hover {
    background: rgba(43, 133, 132, .065);
    transform: translateY(-1px);
}

.ir-navbar .ir-nav-links .nav-link.active {
    background: linear-gradient(135deg, rgba(105, 203, 202, .12), rgba(234, 186, 106, .08));
}

.ir-navbar .ir-nav-links .nav-link::after {
    right: 50%;
    bottom: 4px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ir-gold), var(--ir-teal));
    border-radius: 3px;
    transform: translateX(50%);
}

.ir-navbar .ir-nav-links .nav-link:hover::after,
.ir-navbar .ir-nav-links .nav-link.active::after { width: 24px; }

.ir-navbar .ir-nav-toggle {
    color: var(--ir-blue);
    background: #f3f8f7;
    border-color: #cfe2df;
}

.ir-login-cta {
    position: relative;
    min-height: 46px;
    padding: 5px 7px 5px 15px;
    color: #fff !important;
    background: linear-gradient(125deg, var(--ir-teal), var(--ir-blue));
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    box-shadow: 0 12px 27px rgba(4, 88, 129, .2);
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: upm-login-breathe 4.5s ease-in-out infinite;
}

.ir-login-cta::before {
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -55%;
    z-index: -1;
    width: 36%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-18deg);
    animation: upm-login-shimmer 4.5s ease-in-out infinite;
}

.ir-login-cta:hover {
    color: #fff !important;
    box-shadow: 0 17px 34px rgba(4, 88, 129, .28);
    transform: translateY(-3px);
}

.ir-login-cta__icon {
    display: grid;
    width: 34px;
    height: 34px;
    color: var(--ir-blue);
    background: #fff;
    border-radius: 10px;
    place-items: center;
    box-shadow: 0 5px 14px rgba(0, 35, 55, .16);
}

.ir-login-cta__arrow {
    margin-inline-start: 3px;
    color: var(--ir-gold);
    font-size: .72rem;
    transition: transform .25s ease;
}

.ir-login-cta:hover .ir-login-cta__arrow { transform: translateX(-3px); }
[dir="ltr"] .ir-login-cta__arrow { transform: scaleX(-1); }
[dir="ltr"] .ir-login-cta:hover .ir-login-cta__arrow { transform: scaleX(-1) translateX(-3px); }

.ir-navbar .ir-btn-primary,
.ir-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ir-teal), var(--ir-blue));
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(43, 133, 132, .22);
}

.ir-navbar .ir-btn-primary:hover,
.ir-btn-primary:hover {
    background: linear-gradient(135deg, #247877, #03496e);
    box-shadow: 0 16px 34px rgba(4, 88, 129, .25);
}

.ir-btn {
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.ir-btn:hover { transform: translateY(-3px); }

/* Hero: an original learning-gateway composition inspired by the UPM arch. */
.ir-hero-editorial {
    min-height: 700px;
    padding: 64px 0 86px;
    color: var(--ir-ink);
    background:
        radial-gradient(circle at 7% 12%, rgba(105, 203, 202, .17), transparent 25%),
        radial-gradient(circle at 92% 82%, rgba(234, 186, 106, .13), transparent 20%),
        linear-gradient(145deg, #f6fbfa 0%, #edf7f6 58%, #fdfaf4 100%);
}

.ir-hero-editorial::before {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 48%;
    height: 100%;
    opacity: .13;
    background: url("../imgs/upm/arches.png") center/cover no-repeat;
    mask-image: linear-gradient(to right, #000, transparent 92%);
}

.ir-hero-wordmark {
    top: 20px;
    left: 2.5%;
    color: transparent;
    font-size: clamp(8rem, 18vw, 17rem);
    letter-spacing: -.04em;
    -webkit-text-stroke: 1px rgba(4, 88, 129, .065);
}

.ir-hero-editorial .ir-hero-shell {
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    gap: 30px;
    min-height: 560px;
    align-items: stretch;
}

.ir-hero-editorial .ir-hero-copy {
    position: relative;
    min-height: 560px;
    padding: 62px 56px;
    color: var(--ir-ink);
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(4, 88, 129, .1);
    border-radius: 18px 54px 18px 18px;
    box-shadow: 0 30px 80px rgba(4, 88, 129, .1);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

[dir="ltr"] .ir-hero-editorial .ir-hero-copy {
    border-radius: 54px 18px 18px 18px;
}

.ir-hero-editorial .ir-hero-copy::before {
    position: absolute;
    content: "";
    top: -155px;
    left: -145px;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(4, 88, 129, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(85, 191, 193, .035), 0 0 0 96px rgba(85, 191, 193, .022);
}

.ir-hero-editorial .ir-hero-copy::after {
    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    width: 115px;
    height: 7px;
    background: linear-gradient(90deg, var(--ir-gold), var(--ir-teal));
    border-radius: 7px 0 0 0;
}

.ir-hero-editorial .ir-eyebrow {
    position: relative;
    align-self: flex-start;
    padding: 8px 13px;
    color: var(--ir-blue);
    background: #edf7f5;
    border: 1px solid #d8ebe7;
    border-radius: 30px;
    font-size: .74rem;
}

.ir-hero-editorial .ir-eyebrow-mark {
    width: 21px;
    background: var(--ir-gold);
}

.ir-hero-editorial .ir-hero-copy h1 {
    gap: .1em;
    max-width: 620px;
    margin: 32px 0 24px;
    color: var(--ir-blue);
    font-size: clamp(2.7rem, 3.7vw, 4.25rem);
    line-height: 1.15;
    letter-spacing: 0;
    word-spacing: .06em;
    text-shadow: none;
}

.ir-hero-editorial .ir-hero-copy h1 > span:last-child {
    color: var(--ir-teal);
}

.ir-hero-editorial .ir-hero-copy h1 > span:last-child::after {
    background: var(--ir-gold);
}

.ir-hero-editorial .ir-hero-copy > p {
    max-width: 590px;
    margin-bottom: 30px;
    color: #56717b;
    font-size: .95rem;
    line-height: 1.95;
}

.ir-hero-editorial .ir-hero-actions { gap: 12px; }

.ir-hero-editorial .ir-btn-light {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ir-teal), var(--ir-blue));
    box-shadow: 0 14px 30px rgba(4, 88, 129, .2);
}

.ir-hero-editorial .ir-btn-ghost {
    color: var(--ir-blue) !important;
    background: #fff;
    border-color: #bfd8d6;
}

.ir-hero-editorial .ir-trust-row {
    gap: 9px;
    margin-top: 25px;
    color: #466873;
}

.ir-hero-editorial .ir-trust-row > span {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid #dceae7;
    border-radius: 10px;
    font-size: .7rem;
}

.ir-hero-editorial .ir-trust-row i { color: var(--ir-teal); }

.ir-hero-editorial .ir-hero-visual {
    min-height: 560px;
    padding: 18px 0 18px 26px;
}

.ir-learning-board {
    min-height: 524px;
    color: #fff;
    background:
        linear-gradient(150deg, rgba(105, 203, 202, .12), transparent 46%),
        linear-gradient(145deg, #07647b 0%, #045881 55%, #033f61 100%);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 54px 18px 18px 18px;
    box-shadow: 0 38px 85px rgba(4, 63, 97, .28);
    animation: upm-board-float 7s ease-in-out infinite;
}

[dir="ltr"] .ir-learning-board { border-radius: 18px 54px 18px 18px; }

.ir-learning-board::before {
    top: -110px;
    left: -100px;
    width: 330px;
    height: 330px;
    border-color: rgba(255, 255, 255, .11);
    box-shadow: 0 0 0 42px rgba(255, 255, 255, .025), 0 0 0 84px rgba(255, 255, 255, .016);
}

.ir-learning-board::after {
    position: absolute;
    content: "";
    right: -80px;
    bottom: -75px;
    width: 290px;
    height: 290px;
    opacity: .08;
    background: url("../imgs/upm/arches.png") center/cover no-repeat;
    transform: rotate(-12deg);
}

.ir-board-header { border-bottom-color: rgba(255, 255, 255, .16); }
.ir-board-header span { color: #b8d7dd; }
.ir-board-header strong { color: #fff; }

.ir-board-header .ir-live-dot {
    color: #ddf7f4;
    background: rgba(105, 203, 202, .16);
    border: 1px solid rgba(105, 203, 202, .2);
}

.ir-live-dot::before { background: #77d7c0; }

.ir-progress-orbit {
    background: conic-gradient(var(--ir-gold) 0 30%, var(--ir-aqua) 30% 78%, rgba(255, 255, 255, .14) 78% 100%);
    box-shadow: 0 18px 40px rgba(0, 30, 49, .2);
}

.ir-progress-orbit > div { background: #064f70; }
.ir-progress-orbit strong { color: #fff; }
.ir-progress-orbit span { color: #c4dde2; }
.ir-focus-copy > span { color: var(--ir-gold); }
.ir-focus-copy h2 { color: #fff; }
.ir-focus-copy p { color: #bdd4db; }

.ir-board-paths {
    border-top-color: rgba(255, 255, 255, .14);
    border-bottom-color: rgba(255, 255, 255, .14);
}

.ir-board-paths > div { border-inline-start-color: rgba(255, 255, 255, .14); }
.ir-board-paths span { color: #86b8c3; }
.ir-board-paths strong { color: #fff; }
.ir-board-paths i { color: var(--ir-gold); }

.ir-signal-card {
    right: -28px;
    color: #173d4b;
    background: linear-gradient(135deg, #f5cc86, var(--ir-gold));
    border: 0;
    box-shadow: 0 22px 45px rgba(4, 63, 97, .25);
}

.ir-signal-icon { color: var(--ir-blue); }
.ir-signal-card div span { color: #5f5138; }

/* Supporting sections */
.ir-section-heading h2,
.ir-about-copy h2,
.ir-impact h2 { color: var(--ir-ink); }

.ir-kicker { color: var(--ir-teal); }
.ir-kicker::before {
    display: inline-block;
    width: 20px;
    height: 3px;
    content: "";
    background: var(--ir-gold);
    border-radius: 3px;
}

.ir-services { background: #fff; }

.ir-service-card {
    min-height: 300px;
    padding: 30px 24px;
    background: linear-gradient(180deg, #fff, #f8fbfa);
    border: 1px solid var(--ir-line);
    border-top: 1px solid var(--ir-line);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(4, 88, 129, .06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.ir-service-card::after {
    top: 0;
    right: 24px;
    bottom: auto;
    left: auto;
    width: 54px;
    height: 4px;
    background: linear-gradient(90deg, var(--ir-gold), var(--ir-teal));
    border-radius: 0 0 5px 5px;
}

.ir-service-card:hover {
    border-color: #b9dcd7;
    box-shadow: 0 24px 54px rgba(4, 88, 129, .12);
    transform: translateY(-8px);
}

.ir-service-icon {
    color: var(--ir-blue);
    background: #eef8f6;
    border-color: #cde6e1;
}

.ir-card-index { color: var(--ir-gold); }

.ir-about { background: linear-gradient(180deg, #f6faf9, #fff); }
.ir-about-visual > img { border-radius: 22px 74px 22px 22px; }

.ir-about-quote {
    color: #fff;
    background: linear-gradient(135deg, var(--ir-teal), var(--ir-blue));
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(4, 88, 129, .22);
}

.ir-about-points span { color: var(--ir-gold); }
.ir-text-link { color: var(--ir-teal) !important; }

.ir-impact {
    padding: 70px 0;
    background:
        radial-gradient(circle at 8% 100%, rgba(105, 203, 202, .11), transparent 24%),
        #fff;
}

.ir-impact-shell {
    grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr);
    gap: 0;
    padding: 10px;
    color: var(--ir-ink);
    background: #f2f8f7;
    border: 1px solid #d9e9e6;
    border-radius: 28px;
    box-shadow: 0 24px 65px rgba(4, 88, 129, .11);
    overflow: visible;
}

.ir-impact-shell::after {
    top: auto;
    right: auto;
    bottom: -34px;
    left: 42%;
    z-index: 0;
    width: 110px;
    height: 110px;
    border: 18px solid rgba(234, 186, 106, .16);
    box-shadow: none;
    pointer-events: none;
}

.ir-impact-intro {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    padding: 42px 38px;
    background:
        radial-gradient(circle at 8% 100%, rgba(105, 203, 202, .18), transparent 38%),
        linear-gradient(145deg, #045881, #033f61);
    border-radius: 22px 64px 22px 22px;
    overflow: hidden;
}

.ir-impact-intro::after {
    position: absolute;
    content: "UPM";
    bottom: -25px;
    left: 18px;
    color: transparent;
    font: 900 5.5rem/1 Arial, sans-serif;
    letter-spacing: -.08em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
}

.ir-impact .ir-kicker-light { color: #c8efea; }
.ir-kicker-light::before { background: var(--ir-gold); }
.ir-impact h2 {
    max-width: 390px;
    margin: 15px 0 0;
    color: #fff;
    font-size: clamp(1.65rem, 2.25vw, 2.35rem);
    line-height: 1.4;
}

.ir-impact-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    align-items: center;
    padding: 28px 30px;
}

.ir-impact-stats::before {
    position: absolute;
    top: 50%;
    right: 11%;
    left: 11%;
    z-index: -1;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, #c6ded9 12%, #c6ded9 88%, transparent);
}

.ir-impact-stats > div {
    position: relative;
    justify-content: center;
    width: 138px;
    height: 138px;
    margin: auto;
    padding: 18px 10px 14px;
    background: #fff;
    border: 1px solid #d5e7e3;
    border-radius: 50%;
    box-shadow: 0 13px 32px rgba(4, 88, 129, .09), inset 0 0 0 7px #f5faf9;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.ir-impact-stats > div:nth-child(even) { transform: translateY(18px); }

.ir-impact-stats > div:hover {
    border-color: var(--ir-gold);
    box-shadow: 0 20px 42px rgba(4, 88, 129, .15), inset 0 0 0 7px #f5faf9;
    transform: translateY(-7px);
}

.ir-impact-stats > div:nth-child(even):hover { transform: translateY(11px); }

.ir-impact-stats i {
    display: grid;
    width: 31px;
    height: 31px;
    margin-bottom: 3px;
    place-items: center;
    color: var(--ir-blue);
    background: #eaf6f3;
    border-radius: 50%;
    font-size: .78rem;
}

.ir-impact-stats strong {
    color: var(--ir-blue);
    font-size: 2rem;
    line-height: 1;
}

.ir-impact-stats span {
    margin-top: 6px;
    color: #58727b;
    font-size: .74rem;
    font-weight: 700;
}

.ir-programs { background: #f7faf9; }
.ir-filter-panel {
    background: rgba(255, 255, 255, .9);
    border-color: #d5e7e3;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(4, 88, 129, .07);
}

.ir-filter-title > span { color: var(--ir-teal); background: #eef8f6; }
.ir-filter-submit { background: linear-gradient(135deg, var(--ir-teal), var(--ir-blue)); }

.ir-program-card {
    border-color: #d9e9e6;
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(4, 88, 129, .065);
}

.ir-program-card:hover {
    box-shadow: 0 26px 56px rgba(4, 88, 129, .14);
    transform: translateY(-8px);
}

.ir-program-image::after {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(to top, rgba(3, 63, 97, .24), transparent 55%);
    pointer-events: none;
}

.ir-program-price { background: var(--ir-gold); color: #32454b; }
.ir-program-license { background: #f0f8f6; }
.ir-program-license dd { color: var(--ir-teal); }

.ir-footer {
    padding-top: 82px;
    background:
        linear-gradient(140deg, rgba(85, 191, 193, .1), transparent 45%),
        #033f61;
}

.ir-footer::before {
    top: -280px;
    right: -110px;
    width: 520px;
    height: 520px;
    border-color: rgba(255, 255, 255, .1);
}

.ir-footer::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: 210px;
    height: 6px;
    background: linear-gradient(90deg, var(--ir-gold), var(--ir-aqua));
}

.ir-footer-brand img {
    width: 215px;
    height: 92px;
    margin-bottom: 20px;
}

.ir-footer-brand p,
.ir-footer-links a { color: #bfd6dc; }

.ir-footer-main {
    grid-template-columns: 1.25fr .68fr .68fr 1.2fr;
    gap: 38px;
    align-items: start;
}

.ir-footer-link-button {
    width: fit-content;
    padding: 0;
    color: #bfd6dc;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: .85rem;
    text-align: start;
    cursor: pointer;
    transition: color .2s ease;
}

.ir-footer-link-button:hover,
.ir-footer-link-button:focus-visible { color: #fff; }

.upm-footer-chat {
    position: relative;
    min-width: 0;
}

.upm-footer-chat__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--ir-gold);
    font-size: .72rem;
    font-weight: 800;
}

.upm-footer-chat > h3 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.upm-footer-chat__trigger {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 11px;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 11px 13px;
    color: #fff;
    text-align: start;
    background: linear-gradient(135deg, var(--ir-teal), var(--ir-blue));
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 17px;
    box-shadow: 0 18px 36px rgba(0, 25, 42, .23);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.upm-footer-chat__trigger:hover {
    box-shadow: 0 22px 42px rgba(0, 25, 42, .3);
    transform: translateY(-3px);
}

.upm-footer-chat__trigger[aria-expanded="true"] { display: none; }

.upm-footer-chat__trigger-icon {
    display: grid;
    width: 42px;
    height: 42px;
    color: var(--ir-blue);
    background: #fff;
    border-radius: 50%;
    place-items: center;
    box-shadow: 0 7px 18px rgba(0, 25, 42, .17);
}

.upm-footer-chat__trigger strong,
.upm-footer-chat__trigger small { display: block; }
.upm-footer-chat__trigger strong { font-size: .92rem; }
.upm-footer-chat__trigger small { margin-top: 3px; color: #d4efec; font-size: .62rem; line-height: 1.55; }
.upm-footer-chat__trigger-arrow { color: var(--ir-gold); }

.upm-footer-chat__dialog {
    width: 100%;
    color: var(--ir-ink);
    background: #f7fbfa;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(0, 20, 36, .34);
    opacity: 0;
    overflow: hidden;
    transform: translateY(12px) scale(.98);
    transform-origin: top center;
    transition: opacity .25s ease, transform .25s ease;
}

.upm-footer-chat__dialog.is-open { opacity: 1; transform: translateY(0) scale(1); }

.upm-footer-chat__header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    gap: 10px;
    align-items: center;
    padding: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--ir-teal), var(--ir-blue));
}

.upm-footer-chat__avatar,
.upm-footer-chat__message-avatar {
    display: grid;
    flex: 0 0 auto;
    color: var(--ir-blue);
    background: #fff;
    border-radius: 50%;
    place-items: center;
}

.upm-footer-chat__avatar { width: 38px; height: 38px; }
.upm-footer-chat__header strong { display: block; font-size: .86rem; }
.upm-footer-chat__header span { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: #d7efec; font-size: .62rem; }
.upm-footer-chat__header span i { width: 6px; height: 6px; background: #8de0bd; border-radius: 50%; box-shadow: 0 0 0 4px rgba(141, 224, 189, .12); }

.upm-footer-chat__close {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 9px;
    cursor: pointer;
    place-items: center;
}

.upm-footer-chat__close:hover { background: rgba(255, 255, 255, .2); }

.upm-footer-chat__messages {
    height: 220px;
    padding: 16px 13px;
    background:
        linear-gradient(rgba(4, 88, 129, .025) 1px, transparent 1px),
        #f7fbfa;
    background-size: 100% 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.upm-footer-chat__message {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.upm-footer-chat__message-avatar {
    width: 28px;
    height: 28px;
    color: #fff;
    background: var(--ir-teal);
    font-size: .7rem;
}

.upm-footer-chat__message > div {
    max-width: calc(100% - 38px);
    padding: 10px 12px;
    color: #34535e;
    background: #fff;
    border: 1px solid #dceae7;
    border-radius: 5px 15px 15px 15px;
    box-shadow: 0 7px 18px rgba(4, 88, 129, .06);
    font-size: .72rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

[dir="ltr"] .upm-footer-chat__message > div { border-radius: 15px 5px 15px 15px; }
.upm-footer-chat__message strong { color: var(--ir-blue); }
.upm-footer-chat__message p { margin: 3px 0 0; }

.upm-footer-chat__message--user { justify-content: flex-end; }
.upm-footer-chat__message--user > div {
    color: #fff;
    background: var(--ir-blue);
    border-color: var(--ir-blue);
    border-radius: 15px 5px 15px 15px;
}

[dir="ltr"] .upm-footer-chat__message--user > div { border-radius: 5px 15px 15px 15px; }
.upm-footer-chat__message.is-thinking > div { color: #789097; font-style: italic; }

.upm-footer-chat__suggestions p { margin-bottom: 8px; }
.upm-footer-chat__suggestions .suggestion-btn {
    width: 100%;
    margin-top: 6px;
    padding: 7px 9px;
    color: var(--ir-blue);
    background: #eef7f5;
    border: 1px solid #d4e8e4;
    border-radius: 9px;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.upm-footer-chat__suggestions .suggestion-btn:hover { border-color: var(--ir-teal); background: #e5f3f0; }

.upm-footer-chat__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
    align-items: end;
    padding: 11px;
    background: #fff;
    border-top: 1px solid #e0ece9;
}

.upm-footer-chat__form textarea {
    width: 100%;
    min-height: 42px;
    max-height: 110px;
    padding: 11px 13px;
    color: var(--ir-ink);
    background: #f7fbfa;
    border: 1px solid #d5e7e3;
    border-radius: 12px;
    outline: 0;
    resize: none;
    font: inherit;
    font-size: .72rem;
    line-height: 1.5;
}

.upm-footer-chat__form textarea:focus { border-color: var(--ir-teal); box-shadow: 0 0 0 3px rgba(43, 133, 132, .1); }

.upm-footer-chat__form button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: var(--ir-teal);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    place-items: center;
}

.upm-footer-chat__form button:hover { background: var(--ir-blue); }

/* Certificate verification dialog */
.upm-verify-dialog { max-width: 570px; }

.upm-verify-modal .modal-content {
    background: #fff;
    border: 1px solid rgba(4, 88, 129, .11);
    border-radius: 24px;
    box-shadow: 0 32px 85px rgba(3, 63, 97, .24);
    overflow: hidden;
}

.upm-verify-modal .modal-header {
    align-items: center;
    padding: 21px 24px;
    background:
        radial-gradient(circle at 8% 20%, rgba(105, 203, 202, .14), transparent 30%),
        linear-gradient(135deg, #f7fbfa, #edf7f5);
    border-bottom: 1px solid #dceae7;
}

.upm-verify-heading {
    display: flex;
    gap: 13px;
    align-items: center;
}

.upm-verify-heading > span {
    display: grid;
    width: 48px;
    height: 48px;
    color: #fff;
    background: linear-gradient(145deg, var(--ir-teal), var(--ir-blue));
    border-radius: 15px;
    box-shadow: 0 11px 24px rgba(4, 88, 129, .19);
    place-items: center;
    font-size: 1.15rem;
}

.upm-verify-heading small {
    display: block;
    margin-bottom: 3px;
    color: var(--ir-teal);
    font-size: .67rem;
    font-weight: 800;
}

.upm-verify-heading h3 {
    margin: 0;
    color: var(--ir-ink);
    font-size: 1.35rem;
    line-height: 1.35;
}

.upm-verify-modal .btn-close {
    width: 34px;
    height: 34px;
    padding: 0;
    background-color: rgba(4, 88, 129, .07);
    background-size: 11px;
    border-radius: 10px;
    opacity: .7;
}

.upm-verify-modal .btn-close:hover { opacity: 1; }

.upm-verify-modal .modal-body { padding: 24px; }

.upm-verify-description {
    margin: 0 0 19px;
    color: #58727b;
    font-size: .84rem;
    line-height: 1.8;
}

.upm-verify-form > label {
    display: block;
    margin-bottom: 7px;
    color: var(--ir-ink);
    font-size: .76rem;
    font-weight: 800;
}

.upm-verify-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    min-height: 52px;
    background: #f8fbfa;
    border: 1px solid #cfE3df;
    border-radius: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.upm-verify-control:focus-within {
    border-color: var(--ir-teal);
    box-shadow: 0 0 0 4px rgba(43, 133, 132, .1);
}

.upm-verify-control > span {
    display: grid;
    width: 42px;
    height: 100%;
    color: var(--ir-teal);
    place-items: center;
}

.upm-verify-control .form-control {
    height: 50px;
    padding: 10px 0 10px 14px;
    color: var(--ir-ink);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: .86rem;
}

.upm-verify-control .form-control:focus { background: transparent; box-shadow: none; }

.upm-verify-help {
    display: block;
    margin-top: 7px;
    color: #758a91;
    font-size: .67rem;
}

.upm-verify-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 49px;
    margin-top: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--ir-teal), var(--ir-blue));
    border: 0;
    border-radius: 13px;
    box-shadow: 0 13px 27px rgba(4, 88, 129, .19);
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
}

.upm-verify-submit:hover { box-shadow: 0 17px 34px rgba(4, 88, 129, .27); transform: translateY(-2px); }
.upm-verify-submit:disabled { cursor: wait; opacity: .72; transform: none; }

.upm-verify-error {
    margin-bottom: 15px;
    padding: 10px 13px;
    color: #8b3131;
    background: #fff2f1;
    border: 1px solid #f3d1cd;
    border-radius: 11px;
    font-size: .75rem;
}

.upm-verify-result { margin-top: 18px; }
.upm-verify-result:empty { margin-top: 0; }
.upm-verify-result .alert { margin: 0; border: 0; border-radius: 14px; }
.upm-verify-result .alert h2 { font-size: 1rem; }
.upm-verify-result .table { margin: 14px 0 0; color: inherit; font-size: .74rem; }
.upm-verify-result .table th,
.upm-verify-result .table td { padding: 8px; border-color: rgba(0, 0, 0, .07); }

.back-to-top.btn-primary { background: var(--ir-teal); border-color: var(--ir-teal); }

@keyframes upm-board-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes upm-reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes upm-login-breathe {
    0%, 100% { box-shadow: 0 12px 27px rgba(4, 88, 129, .2); }
    50% { box-shadow: 0 15px 34px rgba(43, 133, 132, .3); }
}

@keyframes upm-login-shimmer {
    0%, 62% { left: -55%; }
    82%, 100% { left: 125%; }
}

.ir-hero-editorial .ir-hero-copy { animation: upm-reveal .75s ease both; }
.ir-hero-editorial .ir-hero-visual { animation: upm-reveal .85s .08s ease both; }

@media (max-width: 1199.98px) {
    .ir-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upm-footer-chat { grid-column: auto; }
}

@media (max-width: 991.98px) {
    .ir-navbar { min-height: 76px; }
    .ir-navbar .ir-nav-container { min-height: 76px; }
    .ir-brand img { width: 176px; height: 60px; }
    .ir-navbar .navbar-collapse { border-top-color: #dbeae7; }
    .ir-nav-actions { border-top-color: #dbeae7; }
    .ir-login-cta {
        justify-content: center;
        width: 100%;
        max-width: 260px;
        padding-inline: 7px 15px;
    }
    .ir-hero-editorial { padding: 42px 0 64px; }
    .ir-hero-editorial .ir-hero-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        min-height: 0;
    }
    .ir-hero-editorial .ir-hero-copy { min-height: 0; padding: 46px 38px; }
    .ir-hero-editorial .ir-hero-visual { min-height: 500px; margin-top: 0; padding: 0 28px 0 0; }
    .ir-learning-board { min-height: 500px; }
    .ir-impact-shell { grid-template-columns: minmax(0, 1fr); }
    .ir-impact-intro { min-height: 210px; border-radius: 22px 52px 22px 22px; }
    .ir-impact-stats { padding: 34px 24px 42px; }
    .upm-footer-chat__messages { height: 235px; }
}

@media (max-width: 767.98px) {
    .ir-hero-editorial {
        padding: 28px 0 52px;
        background:
            radial-gradient(circle at 88% 5%, rgba(105, 203, 202, .18), transparent 28%),
            linear-gradient(155deg, #f7fbfa, #edf7f6);
    }

    .ir-hero-editorial::before { width: 100%; opacity: .055; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
    .ir-hero-wordmark { top: 55px; left: -20px; font-size: 8rem; }
    .ir-hero-editorial .ir-hero-copy {
        min-height: 0;
        padding: 28px 19px 22px;
        background: rgba(255, 255, 255, .9);
        border-color: rgba(4, 88, 129, .1);
        border-radius: 18px 38px 18px 18px;
        box-shadow: 0 20px 48px rgba(4, 88, 129, .1);
    }

    .ir-hero-editorial .ir-eyebrow { color: var(--ir-blue); background: #edf7f5; border-color: #d8ebe7; }
    .ir-hero-editorial .ir-hero-copy h1 {
        gap: .13em;
        margin: 23px 0 18px;
        color: var(--ir-blue);
        font-size: clamp(1.65rem, 7vw, 1.95rem);
        line-height: 1.22;
        text-shadow: none;
    }

    .ir-hero-editorial .ir-hero-copy h1 > span:last-child { color: var(--ir-teal); }
    .ir-hero-editorial .ir-hero-copy > p { margin-bottom: 21px; color: #58717a; font-size: .8rem; }
    .ir-hero-editorial .ir-hero-actions { grid-template-columns: 1.35fr .8fr; }
    .ir-hero-editorial .ir-hero-actions .ir-btn { min-height: 45px; font-size: .72rem; }
    .ir-hero-editorial .ir-trust-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ir-hero-editorial .ir-trust-row > span { color: #476a73; background: #f7fbfa; border-color: #dcebe8; }
    .ir-hero-editorial .ir-trust-row i { color: var(--ir-teal); }
    .ir-hero-editorial .ir-hero-shell { gap: 18px; }
    .ir-hero-editorial .ir-hero-visual { min-height: 0; margin-top: 0; padding: 0; }
    .ir-learning-board {
        min-height: 0;
        border-radius: 38px 14px 14px 14px;
        animation-duration: 8s;
    }
    .ir-board-header span { color: #b8d7dd; }
    .ir-board-header strong,
    .ir-focus-copy h2,
    .ir-board-paths strong { color: #fff; }
    .ir-impact { padding: 52px 0; }
    .ir-impact-shell { padding: 7px; border-radius: 23px; }
    .ir-impact-intro { min-height: 0; padding: 30px 24px; }
    .ir-impact h2 { margin-top: 10px; font-size: 1.55rem; }
    .ir-impact-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        padding: 28px 15px 32px;
    }
    .ir-impact-stats::before { display: none; }
    .ir-impact-stats > div,
    .ir-impact-stats > div:nth-child(even) {
        width: 125px;
        height: 125px;
        transform: none;
    }
    .ir-impact-stats > div:nth-child(even):hover { transform: translateY(-7px); }
    .upm-footer-chat { grid-column: 1 / -1; }
    .upm-footer-chat__trigger { max-width: 430px; }
    .upm-footer-chat__dialog { max-width: 430px; }
    .ir-footer { padding-top: 48px; }
    .ir-footer-brand {
        display: flex;
        grid-column: 1 / -1;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .ir-footer-brand img {
        grid-row: auto;
        width: 180px;
        height: 72px;
        margin: 0;
    }
    .ir-footer-brand p { max-width: 520px; margin: 0; }
    .ir-social-links { margin-top: 2px; }
}

@media (max-width: 480px) {
    .ir-brand img { width: 154px; }
    .ir-hero-editorial .ir-hero-actions { grid-template-columns: 1.3fr .8fr; }
    .ir-hero-editorial .ir-trust-row { gap: 5px; }
    .ir-hero-editorial .ir-trust-row > span { padding: 7px 3px; font-size: .59rem; }
    .ir-impact-shell { border-radius: 20px; }
    .ir-impact-intro { border-radius: 16px 40px 16px 16px; }
    .ir-impact-stats { gap: 10px; padding-inline: 8px; }
    .ir-impact-stats > div,
    .ir-impact-stats > div:nth-child(even) { width: 116px; height: 116px; }
    .ir-impact-stats strong { font-size: 1.7rem; }
    .ir-footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding-bottom: 27px;
    }
    .ir-footer-brand {
        align-items: center;
        padding-bottom: 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .ir-footer-brand img { width: 190px; height: 78px; }
    .ir-footer-brand p { max-width: 315px; font-size: .72rem; line-height: 1.75; }
    .ir-social-links { justify-content: center; }
    .ir-footer-links {
        gap: 10px;
        padding: 17px 18px;
        background: rgba(255, 255, 255, .045);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 14px;
    }
    .ir-footer-links h3 { margin-bottom: 2px; }
    .upm-footer-chat { margin-top: 2px; }
    .upm-footer-chat__trigger,
    .upm-footer-chat__dialog { max-width: none; }
    .upm-footer-chat__messages { height: 260px; }
    .upm-verify-dialog { margin: 12px; }
    .upm-verify-modal .modal-content { border-radius: 19px; }
    .upm-verify-modal .modal-header { padding: 17px; }
    .upm-verify-heading > span { width: 42px; height: 42px; border-radius: 13px; }
    .upm-verify-heading h3 { font-size: 1.1rem; }
    .upm-verify-heading small { font-size: .6rem; }
    .upm-verify-modal .modal-body { padding: 19px 17px 20px; }
    .upm-verify-description { font-size: .76rem; }
    .ir-footer-bottom {
        justify-content: center;
        min-height: 62px;
        padding: 17px 0 70px;
        text-align: center;
    }
    .ir-footer-bottom p { line-height: 1.7; }
    .back-to-top.btn-primary {
        right: auto;
        bottom: 14px;
        left: 14px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ir-learning-board,
    .ir-hero-editorial .ir-hero-copy,
    .ir-hero-editorial .ir-hero-visual,
    .ir-login-cta,
    .ir-login-cta::before {
        animation: none !important;
    }

    .ir-btn,
    .ir-service-card,
    .ir-program-card,
    .ir-impact-stats > div,
    .upm-footer-chat__trigger,
    .upm-footer-chat__dialog { transition: none !important; }
}
