/* ============================================================
   Perun Games Theme
   ============================================================ */

:root {
    --accent:      #FF0E1F;
    --accent-dark: #cc0b19;
    --bg:          #000000;
    --bg-card:     #111111;
    --bg-section:  #0d0d0d;
    --text:        #ffffff;
    --muted:       #c0c0c0;
    --border:      rgba(255,255,255,0.08);
    --font-heading: 'Rubik', sans-serif;
    --font-body:    'Rubik', sans-serif;
}

/* ── Base ──────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* Pages with a full-bleed hero start behind the transparent navbar */
body.home main,
body.has-hero main { padding-top: 0; }
/* All other pages need offset so content clears the fixed navbar */
body:not(.home):not(.has-hero) main { padding-top: 80px; }

/* ── Buttons ───────────────────────────────────────────────── */

.btn-accent {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-outline-accent {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 34px;
    border-radius: 0;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff;
}

/* ── Navbar ────────────────────────────────────────────────── */

.pg-nav {
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 12px 0;
    transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
    z-index: 1000;
}

.pg-nav--scrolled,
body:not(.home):not(.has-hero) .pg-nav {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--border);
}

.pg-nav__logo.navbar-brand img,
.pg-nav__logo img {
    height: 50px;
    width: auto;
    max-width: none;
}

.pg-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 16px !important;
    position: relative;
    transition: color 0.2s;
}

.pg-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.pg-nav .nav-link:hover,
.pg-nav .nav-link.active {
    color: var(--text);
}

.pg-nav .nav-link:hover::after,
.pg-nav .nav-link.active::after {
    transform: scaleX(1);
}

.pg-nav__toggler {
    border-color: var(--border);
    filter: invert(1);
}

/* ── Section title ─────────────────────────────────────────── */

.pg-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.pg-section-title h2 {
    font-size: 2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pg-section-title .pg-separator {
    display: block;
    margin: 0 auto;
}

/* ── Hero ──────────────────────────────────────────────────── */

.pg-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.pg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.05) 60%,
        rgba(0,0,0,0.0)  100%
    );
}

.pg-hero__particles {
    position: absolute;
    inset: 0;
    background: url('../images/bg-particles.png') center center / cover no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.pg-hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.pg-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.pg-hero__subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ── Projects Section (home slider) ────────────────────────── */

.pg-projects {
    padding: 80px 0 60px;
    background: url('../images/bg-games.jpg') center center / cover no-repeat fixed;
    position: relative;
}

.pg-projects::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.50);
}

.pg-projects .container { position: relative; z-index: 1; }

.pg-project-slide {
    padding: 1.5rem 0 0.5rem;
}

.pg-project-slide__img {
    width: 100%;
    max-width: 360px;
    border-radius: 12px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.pg-project-slide__subtitle {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.pg-project-slide__desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

.pg-projects-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.pg-projects-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255,255,255,0.35);
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pg-projects-indicators button.active {
    background-color: var(--accent);
}

/* ── Games Section (games page cards) ──────────────────────── */

.pg-games {
    padding: 80px 0;
    background: url('../images/bg-games.jpg') center center / cover no-repeat fixed;
    position: relative;
}

.pg-games::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.pg-games .container { position: relative; z-index: 1; }

.pg-game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.pg-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(255,14,31,0.3);
    border-color: var(--accent);
}

.pg-game-card__img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.pg-game-card__body {
    padding: 1.5rem;
}

.pg-game-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pg-game-card__text {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* ── Team Section ──────────────────────────────────────────── */

.pg-team {
    display: flex;
    min-height: 580px;
}

.pg-team__left {
    flex: 0 0 50%;
    background: #17161a;
    padding: 100px 10% 100px 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.pg-team__right {
    flex: 0 0 50%;
    background: url('../images/team-photo.png') center center / cover no-repeat;
}

.pg-team__title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.pg-team__text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* ── News Section ──────────────────────────────────────────── */

.pg-news {
    padding-top: 75px;
    padding-bottom: 65px;
    background-image: url('../images/bg-news-parallax.png');
    background-repeat: no-repeat;
    background-color: transparent;
    background-attachment: fixed;
    background-position: 50% -168px;
    margin-bottom: 0;
    position: relative;
}

.pg-news::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.20);
}

.pg-news .container { position: relative; z-index: 1; }

.pg-news-feature {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.pg-news-feature__img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.pg-news-feature__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 8px;
}

.pg-news-feature__date {
    font-size: 0.8rem;
    color: var(--text);
    background: #333;
    padding: 3px 10px;
}

.pg-news-feature__tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
}

.pg-news-feature__title {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.pg-news-feature:hover .pg-news-feature__title {
    color: var(--accent);
}

/* ── News card (listing page) ──────────────────────────────── */

.pg-news-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
    height: 100%;
}

.pg-news-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    color: var(--text);
}

.pg-news-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.pg-news-card__body {
    padding: 1.25rem;
}

.pg-news-card__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.4;
}

.pg-news-card:hover .pg-news-card__title { color: var(--accent); }

.pg-news-card__desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Single post ────────────────────────────────────────────── */

.pg-post {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.pg-post__inner {
    max-width: 800px;
    margin: 0 auto;
}

.pg-post__cover {
    margin-bottom: 2rem;
}

.pg-post__cover-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.pg-post__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.pg-post__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

.pg-post__body {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.pg-post__body h2,
.pg-post__body h3 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pg-post__body ul,
.pg-post__body ol {
    padding-left: 1.5rem;
}

.pg-post__body a {
    color: var(--accent);
}

.pg-post__body a:hover {
    color: var(--accent-dark);
}

.pg-post__back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ── Page hero (inner pages like Latest News) ──────────────── */

.pg-page-hero {
    position: relative;
    height: 538px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0); /* clips the fixed pseudo-element to this box */
    box-shadow: 15px 15px 21px 0 rgba(1,1,1,0.3);
}

.pg-page-hero::before {
    content: '';
    position: fixed;      /* still fixed to viewport for parallax */
    inset: -20px;         /* slightly oversized to avoid edge gaps */
    background: url('../images/bg-latest-news.png') center top / auto 538px no-repeat;
    z-index: -1;
    will-change: transform;
}

@media (max-width: 1024px) {
    .pg-page-hero {
        height: auto !important;
        min-height: 0;
    }
}

.pg-page-hero--plain {
    box-shadow: none;
    height: auto;
    min-height: 160px;
}

.pg-page-hero--plain::before {
    display: none;
}

.pg-page-hero--projects::before {
    background-image: url('../images/bg-our-projects.png');
}

.pg-page-hero--team::before {
    background-image: url('../images/team-hero-bg.png');
}

.pg-page-hero--team .pg-page-hero__overlay {
    background: rgba(0,0,0,0.2);
}

.pg-page-hero--contact::before {
    background-image: url('../images/bg-contact.png');
}

.pg-page-hero--contact .pg-page-hero__overlay {
    background: rgba(0, 0, 0, 0.25);
}

/* ── Project detail page ────────────────────────────────────── */

.pg-project-hero {
    position: relative;
    height: 538px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    overflow: hidden;
}

.pg-project-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.pg-project-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.pg-project-hero__title {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: .08em;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

.pg-project-body {
    padding: 60px 0 80px;
}

.pg-project-body__row {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.pg-project-body__main {
    flex: 1 1 0;
    min-width: 0;
}

.pg-project-body__slider {
    margin-bottom: 40px;
}

.pg-project-body__slider .carousel,
.pg-project-body__cover-img {
    width: 100%;
    display: block;
}

.pg-project-body__cover-img {
    height: auto;
}

.pg-project-body__text {
    color: var(--muted);
    line-height: 1.75;
}

.pg-project-body__text p { margin-bottom: 1rem; }
.pg-project-body__text strong { color: #fff; }

.pg-project-body__sidebar {
    flex: 0 0 220px;
    width: 220px;
}

.pg-project-meta__group {
    margin-bottom: 24px;
}

.pg-project-meta__label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.pg-project-meta__link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    margin-bottom: 2px;
}

a.pg-project-meta__link:hover { color: var(--accent); }

.pg-project-body__back {
    margin-top: 48px;
}

@media (max-width: 767px) {
    .pg-project-body__row { flex-direction: column; }
    .pg-project-body__sidebar { flex: none; width: 100%; }
    .pg-project-hero { height: auto; min-height: 220px; background-attachment: scroll; }
}

/* ── Our Projects catalog ───────────────────────────────────── */

.pg-projects-catalog {
    padding: 60px 0 80px;
}

.pg-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 576px) {
    .pg-projects-grid {
        grid-template-columns: 1fr;
    }
}

.pg-projects-grid__img-link {
    display: block;
    overflow: hidden;
}

.pg-projects-grid__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.pg-projects-grid__img-link:hover .pg-projects-grid__img {
    transform: scale(1.05);
}

.pg-projects-grid__title {
    margin: 12px 0 6px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pg-projects-grid__title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.pg-projects-grid__title a:hover {
    color: var(--accent);
}

.pg-projects-grid__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pg-projects-grid__tags .pg-news-feature__tag {
    background: transparent;
    color: #b8b8b8;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.pg-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
}

.pg-page-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.pg-page-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 80px 20px;
}

/* ── News catalog (listing page) ───────────────────────────── */

.pg-news-catalog {
    padding: 60px 0 80px;
}

.pg-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pg-news-list__item {
    display: block;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.pg-news-list__item:last-child {
    border-bottom: none;
}

.pg-news-list__thumb-link {
    display: block;
    width: 100%;
    margin-bottom: 16px;
}

.pg-news-list__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.pg-news-list__body {
    width: 100%;
}

.pg-news-list__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 8px 0 10px;
    line-height: 1.4;
}

.pg-news-list__title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.pg-news-list__title a:hover {
    color: var(--accent);
}

.pg-news-list__desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Pagination ─────────────────────────────────────────────── */

.pg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pg-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pg-pagination__btn:hover,
.pg-pagination__btn--active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ── Generic page ──────────────────────────────────────────── */

.pg-page {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.pg-page__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* ── Error pages ───────────────────────────────────────────── */

.pg-error-page {
    padding: 120px 0 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.pg-error-page__code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.pg-error-page__message {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* ── Legal pages ───────────────────────────────────────────── */

.pg-legal {
    padding: 80px 0;
    max-width: 860px;
    margin: 0 auto;
}

.pg-legal__title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 48px;
}

.pg-legal h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 32px 0 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pg-legal p,
.pg-legal li {
    color: var(--muted);
    line-height: 1.8;
    font-size: .95rem;
}

.pg-legal ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.pg-legal a {
    color: var(--accent);
    text-decoration: none;
}

.pg-legal a:hover {
    text-decoration: underline;
}

/* ── Footer ────────────────────────────────────────────────── */

.pg-footer {
    background: #1c1c1c;
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.pg-footer__copy {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.pg-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    margin: 0;
    list-style: none;
}

.pg-footer__links a {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    transition: color 0.2s;
}

.pg-footer__links a:hover { color: var(--accent); }

.pg-footer__sep {
    color: var(--muted);
    margin: 0 10px;
    font-size: 0.75rem;
}

.pg-footer__social {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pg-footer__social a {
    font-size: 13px;
    color: var(--muted);
    margin: 0 12px;
    transition: color 0.2s;
}

.pg-footer__social a:hover {
    color: var(--accent);
}

/* ── Team page ──────────────────────────────────────────────── */

.pg-section-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin-bottom: 16px;
}

.pg-section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 36px;
}

.pg-team-vision {
    padding: 80px 0 60px;
    text-align: center;
}

.pg-team-vision__text {
    max-width: 600px;
    margin: 0 auto 48px;
    color: var(--muted);
    line-height: 1.75;
}

.pg-team-vision__text p { margin-bottom: 1rem; }

.pg-team-vision__img img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.pg-team-who {
    padding: 60px 0 80px;
    text-align: center;
    background-color: rgba(29, 27, 31, 1);
    background-image: url('../images/team-who-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.pg-team-who__intro {
    max-width: 600px;
    margin: 0 auto 56px;
    color: var(--muted);
    line-height: 1.75;
}

.pg-team-members {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
}

.pg-team-member {
    display: flex;
    flex-direction: row;
    background: #111;
    border: 1px solid var(--border);
    overflow: hidden;
}

.pg-team-member__photo {
    width: 220px;
    min-width: 220px;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center top;
    display: block;
    flex-shrink: 0;
}

.pg-team-member__info {
    padding: 28px 32px;
    flex: 1;
}

.pg-team-member__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.pg-team-member__role {
    font-size: .8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.pg-team-member__bio {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.pg-team-member__linkedin {
    color: var(--muted);
    font-size: 1.2rem;
    transition: color .2s;
}

.pg-team-member__linkedin:hover { color: #0077b5; }

@media (max-width: 767px) {
    .pg-team-member { flex-direction: column; }
    .pg-team-member__photo { width: 100%; min-width: 0; height: 260px; }
    .pg-section-title { font-size: 1.5rem; }
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .pg-nav .navbar-collapse {
        background: rgba(0,0,0,0.97);
        padding: 16px 0;
        border-top: 1px solid var(--border);
        margin-top: 8px;
    }

    .pg-nav .nav-link::after { display: none; }

    .pg-team {
        flex-direction: column-reverse;
    }

    .pg-team__left {
        flex: none;
        padding: 60px 8%;
    }

    .pg-team__right {
        flex: none;
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .pg-hero__title { font-size: 2.25rem; }
}
