
:root {
    --bg: #020712;
    --bg-alt: #071123;
    --card-bg: #0b1a33;
    --accent: #1f6fe5;
    --accent-soft: #264f97;
    --accent-alt: #f5b020;
    --text: #f5f7ff;
    --muted: #9aa4c0;
    --danger: #c43b4a;
    --success: #3abf7a;
    --border: #1d2b4a;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #10285a 0, #020712 55%);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 7, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.brand img {
    

    width: 32px;
    height: 32px;
    object-fit: contain;
}

.site-header nav {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.site-header nav a {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.site-header nav a:hover {
    background: rgba(31, 111, 229, 0.18);
    color: var(--text);
    transform: translateY(-1px);
}

#nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    margin-left: auto;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after { top: 6px; }

.hero {
    height: 420px;
    background-image: url('/assets/gsp2.png');
    background-size: cover;
    background-position: center;

    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(50px);
    opacity: 0.6;
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(31, 111, 229, 0.8), transparent 60%);
    top: -140px;
    right: -80px;
    animation: float 22s linear infinite alternate;
}

.hero::after {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 176, 32, 0.7), transparent 60%);
    bottom: -140px;
    left: -60px;
    animation: float 26s linear infinite alternate-reverse;
}

@keyframes float {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(12px, -18px, 0); }
}

.hero-content {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.hero-content p {
    max-width: 640px;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #1f6fe5, #274b9e);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(31, 111, 229, 0.55);
}

.btn.secondary {
    background: rgba(11, 26, 51, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
}

.btn.accent {
    background: linear-gradient(135deg, #f5b020, #b8731c);
    border-color: rgba(248, 250, 252, 0.16);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.6);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-meta span {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.8);
}

.home-panels {
    max-width: 1120px;
    margin: 2.5rem auto 2.5rem;
    padding: 0 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.panel {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.05), transparent 60%);
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
}

.panel h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.panel p {
    margin: 0 0 0.6rem;
    color: var(--muted);
    font-size: 0.93rem;
}

.text-link {
    font-size: 0.9rem;
    color: var(--accent-alt);
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}
.page-watermark {
    position: relative;
}

.page-watermark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/gsrp.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 420px auto;
    opacity: 0.06;
    pointer-events: none;
    mix-blend-mode: soft-light;
}


.page-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.8rem;
}

.page-header p {
    margin: 0 0 1.4rem;
    color: var(--muted);
}

.page-body {
    max-width: 1200px; margin: 0 auto;
}

.page-body p {
    color: var(--muted);
    line-height: 1.6;
}


.bullet-list {
    padding-left: 1.2rem !important;
    margin-left: 0 !important;
}
.bullet-list li {
    margin-left: 0 !important;
}


.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.card {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 1));
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
}

.card:hover {
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.35), 0 0 30px rgba(248, 250, 252, 0.35);
    transition: box-shadow 0.22s ease-out;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.leader-name {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dept-card {
    position: relative;
    border-radius: 1.2rem;
    overflow: hidden;
    min-height: 210px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: flex-end;
}


.dept-card:hover {
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.35), 0 0 30px rgba(248, 250, 252, 0.35);
    transition: box-shadow 0.25s ease-out;
}
.dept-neutral {
    background: radial-gradient(circle at top left, #1f2937, #020617);
}

.dept-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.15));
}

.dept-info {
    position: relative;
    padding: 0.95rem 1.1rem 1.1rem;
}

.dept-info h2 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

.dept-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.dept-tag {
    position: absolute;
    top: 0.7rem;
    left: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.4);
}

.dept-tag.open {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.dept-tag.closed {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger);
}

.page-subsection {
    margin-top: 1.5rem;
}

.thumb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.thumb {
    width: 110px;
    height: 70px;
    border-radius: 0.6rem;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
}

.rule-list {
    counter-reset: rules;
    list-style: none;
    padding-left: 0;
}

.rule-list li {
    counter-increment: rules;
    margin-bottom: 0.7rem;
    padding-left: 2rem;
    position: relative;
    color: var(--muted);
}

.rule-list li::before {
    content: counter(rules);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(31, 111, 229, 0.2);
    border: 1px solid var(--accent-soft);
    color: var(--text);
}

.callout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0 1.75rem;
}

.join-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    margin: 0;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.9rem;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.9);
}

.gallery-item figcaption {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.gallery-item.placeholder .gallery-img {
    background: repeating-linear-gradient(135deg, #020617, #020617 6px, #0b1120 6px, #0b1120 12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-grid .card ul {
    margin-top: 0.4rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem 1.25rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    background: rgba(2, 6, 23, 0.96);
}


.hero,
.page,
.features-section {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.65s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rules-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rule-card {
    min-height: 140px;
}

.rule-card h2 {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rule-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rule-card 
.bullet-list {
    padding-left: 1.2rem !important;
    margin-left: 0 !important;
}
.bullet-list li {
    margin-left: 0 !important;
}




@keyframes patrolGlow {
    0% { box-shadow: 0 0 0 rgba(0,122,255,0.0), 0 0 26px rgba(255,0,0,1); }
    40% { box-shadow: 0 0 0 rgba(0,122,255,0.0), 0 0 32px rgba(255,0,0,1); }
    50% { box-shadow: 0 0 26px rgba(0,122,255,1), 0 0 0 rgba(255,0,0,0.0); }
    90% { box-shadow: 0 0 32px rgba(0,122,255,1), 0 0 0 rgba(255,0,0,0.0); }
    100% { box-shadow: 0 0 0 rgba(0,122,255,0.0), 0 0 26px rgba(255,0,0,1); }
}

.panel,
.feature-card {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.05), transparent 60%);
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
    animation: patrolGlow 3.2s ease-in-out infinite;
}


.about-body {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: flex-start;
}

.about-main p + p {
    margin-top: 0.75rem;
}

.about-list-block {
    margin: 1.5rem 0;
}

.about-list-block h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-side {
    display: grid;
    gap: 1rem;
}

.about-card {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.09), transparent 70%);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.6);
    animation: fadeInUp 0.75s ease-out forwards;
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .about-body {
        grid-template-columns: minmax(0, 1fr);
    }
}

.dept-descriptions .card-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dept-descriptions .card {
    width: 100%;
}
@media (max-width: 800px) {
    .site-header nav {
        position: absolute;
        inset: 100% 0 auto 0;
        padding: 0.75rem 1rem 1rem;
        background: rgba(2, 6, 23, 0.98);
        flex-direction: column;
        align-items: flex-start;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid transparent;
        transition: max-height 0.2s ease, border-color 0.2s ease;
    }

    .nav-toggle-label {
        display: block;
    }

    #nav-toggle:checked ~ nav {
        max-height: 320px;
        border-color: var(--border);
    }

    .hero {
    background-image: url('/assets/gsp2.png');
    background-size: cover;
    background-position: center;

    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

    .home-panels {
        grid-template-columns: minmax(0, 1fr);
    }
}

.features-section {
    max-width: 1120px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem 2.5rem;
}
.features-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #ffffff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}
.feature-card {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.05), transparent 60%);
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
}
.feature-card h3 {
    margin-top:0;
    margin-bottom:0.4rem;
}
.feature-card p {
    color: var(--muted);
}

.home-link { color: #ffffff; }

/* Discord top banner (continuous marquee, replaces side banners) */
.discord-top-banner {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.96);
    overflow: hidden;
}

.discord-top-banner a {
    display: block;
}

.discord-top-track {
    display: inline-flex;
    gap: 2.5rem;
    padding: 0.4rem 1.5rem;
    white-space: nowrap;
    font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e5e7eb;
    animation: discordTopScroll 18s linear infinite;
}

.discord-top-track span {
    white-space: nowrap;
}

@keyframes discordTopScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* GSRP BOT */
#gsrp-bot-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--accent);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    cursor:pointer;
    box-shadow:0 0 18px rgba(0,122,255,0.7);
    z-index:9999;
}

#gsrp-bot-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 390px;
    max-height: 540px;
    background: #0b1120;
    border:1px solid var(--border);
    border-radius: 12px;
    display:none;
    flex-direction:column;
    overflow:hidden;
    z-index:9999;
    box-shadow:0 0 25px rgba(0,0,0,0.6);
}

#gsrp-bot-header {
    background: var(--accent);
    padding:10px 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:white;
    font-weight:600;
}

#gsrp-bot-messages {
    flex:1;
    padding:10px;
    overflow-y:auto;
    color:white;
}

 .gsrp-msg {
    margin-bottom:10px;
    padding:7px 9px;
    background:#1a2337;
    border-radius:8px;
    width:max-content;
    max-width:88%;
    font-size:0.86rem;
}

.gsrp-user {
    background:#264f97;
    margin-left:auto;
}

.gsrp-typing {
    opacity:0.7;
    font-style:italic;
}

#gsrp-bot-questions {
    padding:10px;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    background:#0d1529;
}

.gsrp-chip {
    padding:4px 9px;
    background:#1f6fe5;
    border-radius:999px;
    font-size:0.72rem;
    cursor:pointer;
    color:white;
}
}

.gsrp-bot-icon {
    display:inline-block;
    animation: gsrpWave 1.4s ease-in-out infinite;
}

@keyframes gsrpWave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(12deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.leadership-extra {
    margin-top: 2.5rem;
}

/* Vertical Discord side banners */
.side-banner { display: none; }

.side-banner-left {
    left: 0;
}

.side-banner-right {
    right: 0;
}

.side-banner-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e5e7eb;
    padding: 1.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.6);
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.55), rgba(15, 23, 42, 0.98));
    box-shadow: 0 0 36px rgba(37, 99, 235, 0.55);
    overflow: hidden;
}

.side-banner-left .side-banner-track {
    transform: rotate(90deg);
    animation: bannerScrollUp 13s linear infinite;
}

.side-banner-right .side-banner-track {
    transform: rotate(-90deg);
    animation: bannerScrollDown 13s linear infinite;
}

.side-banner-track span {
    white-space: nowrap;
}

@keyframes bannerScrollUp {
    0% { transform: translateY(0) rotate(90deg); }
    100% { transform: translateY(-50%) rotate(90deg); }
}

@keyframes bannerScrollDown {
    0% { transform: translateY(-50%) rotate(-90deg); }
    100% { transform: translateY(0) rotate(-90deg); }
}


}

/* Welcome card on home page */
.welcome-card {
    max-width: 1120px;
    margin: -110px auto 0;
    padding: 0 1.5rem;   /* match .home-panels padding */
    position: relative;
    z-index: 2;
}

.welcome-inner {
    position: relative;
    border-radius: 1.5rem;
    padding: 1.6rem 1.4rem;
    margin: 0 auto;
    max-width: 980px;  /* make the bar narrower than the cards */
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.7s ease-out forwards;
}

.welcome-inner::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(245, 176, 32, 0.25), transparent 60%);
    opacity: 0.85;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: welcomeGlow 11s ease-in-out infinite alternate;
}

.welcome-inner h2 {
    position: relative;
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-inner p {
    position: relative;
    margin: 0;
    max-width: 70rem;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.96rem;
}

.welcome-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 1);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

@keyframes welcomeGlow {
    from { transform: translate3d(-8px, 0, 0); opacity: 0.7; }
    to   { transform: translate3d(8px, -6px, 0); opacity: 1; }
}

/* GSRP video pop-up system */
.video-popup-overlay,
.video-player-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(4px);
    z-index: 1200;
}

.video-popup-circle {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(31, 111, 229, 0.3), rgba(11, 26, 51, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.35rem;
}

.video-popup-circle h2 {
    font-size: 0.95rem;
    margin: 0 0 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.video-popup-circle p {
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 0 0 0.85rem;
    max-width: 95%;
}

.video-popup-btn {
    font-size: 0.9rem;
    padding-inline: 1.4rem;
}

.video-player-overlay {
    display: none;
}

.video-player-box {
    width: min(720px, 92vw);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), rgba(15, 23, 42, 1));
    border-radius: 1.1rem;
    border: 1px solid var(--border);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
    padding: 1rem 1rem 1.2rem;
}

.video-player-box video {
    width: 100%;
    border-radius: 0.75rem;
    outline: none;
    display: block;
    margin-bottom: 0.9rem;
}

.video-exit-btn {
    display: inline-flex;
    margin-left: auto;
    font-size: 0.9rem;
    color: #ffffff;
}

.video-popup-close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* On very small screens, loosen the circular popup */
@media (max-width: 420px) {
    .video-popup-circle {
        width: 240px;
        height: 240px;
        padding: 1.1rem;
    }

    .video-popup-circle h2 {
        font-size: 0.9rem;
    }

    .video-popup-circle p {
        font-size: 0.78rem;
    }
}
