/* Press Releases listing and detail pages. Shares the dark palette of the blog pages. */
.pr-page {
    --pr-bg: #060c16;
    --pr-panel: #0c1728;
    --pr-ink: #eaf3ff;
    --pr-muted: #9cabc0;
    --pr-line: rgba(179, 205, 235, .13);
    --pr-accent: #65d8d1;
    --pr-accent-ink: #07151a;
    color: var(--pr-ink);
    background: var(--pr-bg);
    font-family: 'Poppins', sans-serif;
}
.pr-page *, .pr-page *::before, .pr-page *::after { box-sizing: border-box; }
.pr-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.pr-narrow { width: min(880px, calc(100% - 48px)); }

/* Hero */
.pr-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    border-bottom: 1px solid var(--pr-line);
    background:
        radial-gradient(ellipse 60% 70% at 85% 0%, rgba(101, 216, 209, .18), transparent 70%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(56, 120, 220, .16), transparent 70%),
        var(--pr-bg);
}
.pr-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(101, 216, 209, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(101, 216, 209, .07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}
.pr-hero-grid::after {
    /* A slow scan line across the grid. */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(101, 216, 209, .10) 50%, transparent 100%);
    background-size: 100% 220px;
    background-repeat: no-repeat;
    animation: pr-scan 9s linear infinite;
}
@keyframes pr-scan { from { background-position: 0 -220px; } to { background-position: 0 calc(100% + 220px); } }
@media (prefers-reduced-motion: reduce) { .pr-hero-grid::after { animation: none; } }

.pr-hero-inner { position: relative; z-index: 1; }
.pr-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.05;
}
.pr-hero--detail h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.15; }
.pr-hero p { max-width: 640px; margin: 22px 0 0; color: #c4d2e5; font-size: 1.1rem; line-height: 1.75; }
.pr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--pr-accent);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.pr-kicker::before { width: 28px; height: 1px; background: currentColor; content: ''; }

/* Breadcrumb */
.pr-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    font-size: .88rem;
    color: var(--pr-muted);
}
.pr-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.pr-breadcrumb li + li::before { margin: 0 10px; color: rgba(156, 171, 192, .6); content: '›'; }
.pr-breadcrumb a { color: var(--pr-ink); text-decoration: none; transition: color .2s ease; }
.pr-breadcrumb a:hover { color: var(--pr-accent); }
.pr-breadcrumb [aria-current] { overflow: hidden; max-width: 46ch; text-overflow: ellipsis; white-space: nowrap; color: var(--pr-muted); }

/* Sections */
.pr-body { padding: 72px 0 96px; }
.pr-section + .pr-section { margin-top: 80px; }
.pr-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 32px;
    color: #fff;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -.02em;
}
.pr-section-title::after { flex: 1; height: 1px; background: var(--pr-line); content: ''; }

.pr-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--pr-accent);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.pr-date--hero { margin: 24px 0 0; color: #c4d2e5; }
.pr-date--hero::before { width: 8px; height: 8px; border-radius: 50%; background: var(--pr-accent); content: ''; }

.pr-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(101, 216, 209, .08) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(101, 216, 209, .08) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(135deg, #0f2036, #0a1424);
}

.pr-button {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border: 1px solid var(--pr-accent);
    border-radius: 8px;
    background: var(--pr-accent);
    color: var(--pr-accent-ink);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, gap .2s ease;
}
.pr-button:hover { gap: 14px; background: transparent; color: var(--pr-accent); }

/* Card grid: mirrors the Course Category page cards. */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.pr-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(87, 197, 199, .25);
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 25px rgba(87, 197, 199, .15);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pr-card:hover { transform: translateY(-8px); border-color: #57c5c7; box-shadow: 0 0 40px rgba(87, 197, 199, .3); }
.pr-card-media { display: block; overflow: hidden; height: 180px; padding: 10px 10px 0; }
.pr-card-media img,
.pr-card-media .pr-placeholder { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; transition: transform .5s ease; }
.pr-card:hover .pr-card-media img { transform: scale(1.04); }
.pr-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 22px; }
.pr-card-body .pr-date { margin-bottom: 10px; font-size: .78rem; }
.pr-card-body h3 { min-height: 2.8em; margin: 0 0 8px; font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 700; line-height: 1.4; }
.pr-card-body h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #57c5c7;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color .2s ease;
}
.pr-card-body h3 a:hover { color: #8ce4e4; }
.pr-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: #e0e0e0;
    font-size: .95rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
/* "Read More" inside a card uses the Course Category "View Course" button style. */
.pr-card .pr-link {
    justify-content: center;
    padding: 10px 25px;
    border-radius: 8px;
    background: linear-gradient(90deg, #57c5c7, #3bb0b2);
    box-shadow: 0 0 15px rgba(87, 197, 199, .2);
    color: #000;
    transition: background .3s ease, box-shadow .3s ease, gap .2s ease;
}
.pr-card .pr-link:hover { background: #fff; box-shadow: 0 0 25px rgba(87, 197, 199, .4); color: #000; }
.pr-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--pr-accent);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap .2s ease;
}
.pr-link:hover { gap: 12px; color: var(--pr-accent); }

.pr-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pr-pagination a {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--pr-line);
    border-radius: 8px;
    background: var(--pr-panel);
    color: var(--pr-ink);
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.pr-pagination a:hover { border-color: var(--pr-accent); color: var(--pr-accent); }
.pr-pagination a.is-active { border-color: var(--pr-accent); background: var(--pr-accent); color: var(--pr-accent-ink); font-weight: 600; }

.pr-empty { padding: 32px; border: 1px solid var(--pr-line); border-radius: 14px; background: var(--pr-panel); color: var(--pr-muted); text-align: center; }

/* Listing page: compact hero and background matching the Course Category page. */
.pr-page--listing { background: radial-gradient(circle at top, #060a0e, #010203); }
.pr-page--listing .pr-shell { width: min(1200px, calc(100% - 32px)); }
.pr-hero--listing {
    padding: 72px 0 48px;
    background: radial-gradient(ellipse 60% 80% at 85% 0%, rgba(87, 197, 199, .14), transparent 70%);
}
.pr-hero--listing .pr-breadcrumb ol { margin-bottom: 18px; }
.pr-hero--listing .pr-breadcrumb a { color: #8ce4e4; }
.pr-hero--listing h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pr-hero--listing h1 span { color: #57c5c7; }
.pr-hero--listing p { max-width: 720px; margin-top: 12px; color: #a9b5bb; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.7; }
.pr-hero--listing .pr-count {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 12px;
    border: 1px solid rgba(87, 197, 199, .35);
    border-radius: 999px;
    color: #a9dfe0;
    font-size: .85rem;
    line-height: 1.4;
}
.pr-page--listing .pr-body { padding: 48px 0 90px; }

/* Detail */
.pr-article { padding: 56px 0 24px; }
.pr-article-image { overflow: hidden; margin: 0 0 40px; border: 1px solid var(--pr-line); border-radius: 16px; background: #0a1424; }
.pr-article-image img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.pr-lead { margin: 0 0 32px; padding-left: 20px; border-left: 3px solid var(--pr-accent); color: #d3deec; font-size: 1.2rem; line-height: 1.8; }
.pr-content { color: #d3deec; font-size: 1.05rem; line-height: 1.9; overflow-wrap: anywhere; }
.pr-content h1, .pr-content h2, .pr-content h3, .pr-content h4, .pr-content h5, .pr-content h6 { margin: 1.8em 0 .7em; color: #fff; font-weight: 600; line-height: 1.3; }
.pr-content p, .pr-content ul, .pr-content ol, .pr-content blockquote, .pr-content pre, .pr-content figure { margin: 0 0 1.4em; }
.pr-content li + li { margin-top: .4em; }
.pr-content a { color: var(--pr-accent); }
.pr-content strong { color: #fff; }
.pr-content img { max-width: 100%; height: auto; border-radius: 10px; }
.pr-content blockquote { padding: 18px 22px; border-left: 3px solid var(--pr-accent); border-radius: 6px; background: var(--pr-panel); color: #eaf3ff; font-style: italic; }
.pr-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.pr-content th, .pr-content td { padding: 10px 14px; border: 1px solid var(--pr-line); }
.pr-content hr { border: 0; border-top: 1px solid var(--pr-line); }

.pr-article-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--pr-line);
}
.pr-article-footer .pr-link { margin-top: 0; }
.pr-share { display: flex; align-items: center; gap: 10px; color: var(--pr-muted); font-size: .9rem; }
.pr-share a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--pr-line);
    border-radius: 50%;
    color: var(--pr-ink);
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.pr-share a:hover { border-color: var(--pr-accent); color: var(--pr-accent); }
.pr-related { padding: 64px 0 96px; }
.pr-not-found { padding: 120px 0; text-align: center; }
.pr-not-found h1 { margin: 0 0 16px; color: #fff; font-weight: 600; }
.pr-not-found p { margin: 0 auto 32px; max-width: 520px; color: var(--pr-muted); }
.pr-not-found .pr-button { align-self: center; }

/* Mobile */
@media (max-width: 767px) {
    .pr-shell, .pr-narrow { width: calc(100% - 32px); }
    .pr-hero { padding: 64px 0 56px; }
    .pr-breadcrumb ol { margin-bottom: 24px; }
    .pr-breadcrumb [aria-current] { max-width: 24ch; }
    .pr-body { padding: 48px 0 64px; }
    .pr-section + .pr-section { margin-top: 56px; }
    .pr-grid { grid-template-columns: 1fr; }
    .pr-hero--listing { padding: 48px 0 36px; }
    .pr-page--listing .pr-body { padding: 36px 0 64px; }
    .pr-article { padding-top: 36px; }
    .pr-lead { font-size: 1.08rem; }
    .pr-content { font-size: 1rem; }
    .pr-related { padding: 48px 0 64px; }
}

/* "Press Releases" / "Latest Events" sections that CMS page blocks place on the home page and other pages.
   Layout mirrors the Popular Courses section: same width, spacing, card frame and grid breakpoints. */
.pr-feed { padding: 80px 0; background: radial-gradient(circle at top, #060a0e, #010203); }
.pr-feed .pr-shell { width: min(1200px, calc(100% - 32px)); }
.pr-feed__head { text-align: center; }
.pr-feed__title { margin: 0; color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.2; }
.pr-feed__title span { color: #57c5c7; }
.pr-feed__foot { display: flex; justify-content: center; margin-top: 20px; }
.pr-feed__all { display: inline-flex; align-items: center; gap: 8px; color: #8ce4e4; font-weight: 600; text-decoration: none; transition: gap .2s ease, color .2s ease; }
.pr-feed__all:hover { gap: 12px; color: #fff; }
.pr-feed__all:focus-visible { outline: 2px solid #57c5c7; outline-offset: 3px; }

/* Grid: three per row, centered when fewer, like the Popular Courses cards. */
.pr-feed__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 30px; padding-bottom: 20px; }
.pr-feed .pr-card {
    flex: 0 0 calc((100% - 56px) / 3);
    min-width: 0;
    border: 1px solid rgba(87, 197, 199, .18);
    border-radius: 16px;
    background: #0c1318;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    text-align: left;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.pr-feed .pr-card:hover {
    transform: translateY(-6px);
    border-color: rgba(87, 197, 199, .55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(87, 197, 199, .15);
}
/* Edge-to-edge 16:9 frame; the whole image is fitted inside it so every card lines up. */
.pr-feed .pr-card-media { position: relative; flex: 0 0 auto; height: auto; aspect-ratio: 16 / 9; padding: 0; background: #0f1a20; }
.pr-feed .pr-card-media img,
.pr-feed .pr-card-media .pr-placeholder { position: absolute; inset: 0; border-radius: 0; object-fit: contain; }
.pr-feed .pr-card:hover .pr-card-media img { transform: none; }
.pr-feed .pr-card-body { gap: 16px; padding: 22px; }
.pr-feed .pr-card-body .pr-date,
.pr-feed .pr-card-body h3,
.pr-feed .pr-card-body p { margin: 0; }
/* Read More: full width and pinned to the bottom so buttons line up across a row. */
.pr-feed .pr-card .pr-link { min-height: 46px; margin-top: auto; padding: 0 18px; border-radius: 10px; }
.pr-feed .pr-card .pr-link:focus-visible,
.pr-feed .pr-card-body h3 a:focus-visible { outline: 2px solid #57c5c7; outline-offset: 3px; }

@media (max-width: 1024px) {
    .pr-feed__grid { gap: 24px; }
    .pr-feed .pr-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
    .pr-feed__grid { gap: 20px; }
    .pr-feed .pr-card { flex-basis: 100%; max-width: 420px; }
}
@media (max-width: 600px) { .pr-feed { padding: 56px 0; } }
@media (prefers-reduced-motion: reduce) {
    .pr-feed .pr-card { transition: none; }
    .pr-feed .pr-card:hover { transform: none; }
}
