:root {
    --psm-bg: #050814;
    --psm-bg-alt: #0b1020;
    --psm-surface: #111827;
    --psm-border: #1f2937;
    --psm-text: #f9fafb;
    --psm-text-muted: #9ca3af;
    --psm-accent: #2563eb; /* electric blue */
    --psm-accent-soft: rgba(37, 99, 235, 0.12);
    --psm-radius: 6px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--psm-bg);
    color: var(--psm-text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--psm-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.psm-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

/* Header */

.psm-header {
    border-bottom: 1px solid var(--psm-border);
    background: var(--psm-bg-alt);
}

.psm-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.psm-logo img {
    height: 40px;
}

.psm-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.psm-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
}

.psm-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--psm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.psm-nav a:hover {
    color: var(--psm-text);
}

/* Sections */

.psm-section {
    margin-bottom: 2.5rem;
}

.psm-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.psm-section-header h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--psm-text-muted);
}

/* Grid */

.psm-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Post cards */

.psm-post-card {
    background: var(--psm-surface);
    border-radius: var(--psm-radius);
    overflow: hidden;
    border: 1px solid var(--psm-border);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.psm-post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.psm-post-card-figure {
    margin: 0;
    overflow: hidden;
    max-height: 180px;
}

.psm-post-card-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psm-post-card-content {
    padding: 0.9rem 1rem 1rem;
}

.psm-post-card-title {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.psm-post-card-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--psm-text-muted);
    margin-bottom: 0.4rem;
}

.psm-post-card-excerpt {
    font-size: 0.85rem;
    color: var(--psm-text-muted);
    margin: 0;
}

.psm-post-card:hover {
    transform: translateY(-2px);
    border-color: var(--psm-accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Article / Page */

.psm-article,
.psm-page {
    max-width: 720px;
    margin: 0 auto;
}

.psm-article-header,
.psm-page-header {
    margin-bottom: 1.5rem;
}

.psm-article-title,
.psm-page-title {
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.psm-article-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--psm-text-muted);
}

.psm-article-figure {
    margin: 1.5rem 0 0;
}

.psm-article-figure img,
.psm-page-content img {
    width: 100%;
    border-radius: var(--psm-radius);
}

/* Content */

.psm-article-content,
.psm-page-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--psm-text);
}

.psm-article-content p,
.psm-page-content p {
    margin: 0 0 1.1rem;
}

/* Pagination */

.psm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--psm-text-muted);
}

.psm-pagination a {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--psm-border);
    background: var(--psm-bg-alt);
}

.psm-pagination a:hover {
    border-color: var(--psm-accent);
}

/* Footer */

.psm-footer {
    border-top: 1px solid var(--psm-border);
    background: var(--psm-bg-alt);
    margin-top: 2rem;
}

.psm-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    color: var(--psm-text-muted);
}

/* Koenig editor required classes */

.kg-width-wide {
    max-width: 1200px;
    margin: 2rem auto;
}

.kg-width-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Responsive */

@media (max-width: 768px) {
    .psm-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .psm-nav ul {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .psm-main {
        padding: 1.75rem 1rem 2.5rem;
    }
}
/* -----------------------------------------
   GLOBAL SECTION SPACING
----------------------------------------- */
.psm-section {
    padding: 40px 0;
    border-bottom: 1px solid #222;
}

.psm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.psm-section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

/* -----------------------------------------
   POST GRID LAYOUT
----------------------------------------- */
.psm-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.psm-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* -----------------------------------------
   “MORE” LINK STYLING
----------------------------------------- */
.psm-more-link {
    font-size: 0.95rem;
    color: #ff3b3b;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.psm-more-link:hover {
    opacity: 0.7;
}

/* -----------------------------------------
   RESPONSIVE BEHAVIOR
----------------------------------------- */
@media (max-width: 900px) {
    .psm-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .psm-post-grid {
        grid-template-columns: 1fr;
    }

    .psm-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .psm-section-header h2 {
        font-size: 1.5rem;
    }
}

/* -----------------------------------------
   OPTIONAL: Section-specific color accents
----------------------------------------- */
.psm-section-wrestling h2 { color: #ff3b3b; }
.psm-section-football h2 { color: #4caf50; }
.psm-section-soccer h2 { color: #00c4ff; }
.psm-section-basketball h2 { color: #ff9800; }
.psm-section-baseball h2 { color: #9c27b0; }
.psm-section-volleyball h2 { color: #03a9f4; }
.psm-section-track h2 { color: #e91e63; }
.psm-section-cheer h2 { color: #ffc107; }


/* -----------------------------------------
   MEMBERSHIP CTA BLOCK
----------------------------------------- */
.psm-membership-cta {
    background: #111;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid #ff3b3b;
    text-align: center;
}

.psm-cta-inner h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.psm-cta-inner p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 20px;
}

.psm-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.psm-cta-button {
    background: #ff3b3b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.psm-cta-button:hover {
    opacity: 0.8;
}

.psm-cta-link {
    color: #fff;
    text-decoration: underline;
    font-size: 0.95rem;
}


/* MEMBERSHIP CTA BUTTON — BLUE VERSION */
.psm-cta-button {
    background: #007bff; /* blue */
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.psm-cta-button:hover {
    opacity: 0.85;
}

/* -----------------------------------------
   GLOBAL COLOR OVERRIDES — RED → BLUE
----------------------------------------- */

/* Replace red brand color */
:root {
    --psm-accent: #007bff; /* blue */
}

/* Buttons */
.psm-cta-button,
button,
input[type="submit"],
.psm-button {
    background: var(--psm-accent) !important;
    border-color: var(--psm-accent) !important;
}

/* Button hover */
.psm-cta-button:hover,
button:hover,
input[type="submit"]:hover,
.psm-button:hover {
    opacity: 0.85;
}

/* Links that used to be red */
a,
.psm-more-link,
.psm-cta-link:hover {
    color: var(--psm-accent) !important;
}

/* Section headers that used to be red */
.psm-section-header h2 {
    color: var(--psm-accent) !important;
}

/* Borders that used to be red */
.psm-membership-cta {
    border-top: 2px solid var(--psm-accent) !important;
}

/* Any red text accents */
.psm-accent,
.text-accent {
    color: var(--psm-accent) !important;
}

/* Fix dark text on dark background for upload portal */
.psm-page-content,
.psm-page-content p,
.psm-page-content label,
.psm-page-content input,
.psm-page-content textarea,
.psm-page-content select {
    color: #ffffff !important;
}

.psm-page-content a {
    color: #ff4d4d !important; /* red link color for visibility */
}

.psm-page-content input,
.psm-page-content textarea,
.psm-page-content select {
    background: #1a1a1a !important;
    border: 1px solid #444 !important;
    color: #fff !important;
}

.psm-page-content button,
.psm-page-content input[type="submit"] {
    background: #e60000 !important;
    color: #fff !important;
    border: none !important;
}

/* Membership CTA button: white text on blue */
.psm-membership-cta .psm-cta-button {
    background: #0066ff !important;   /* bright, readable blue */
    color: #ffffff !important;        /* white text */
    border: none !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Make the "Already a member? Log in" link readable */
.psm-membership-cta .psm-cta-link {
    color: #ffffff !important;
    opacity: 0.85;
}

.psm-membership-cta .psm-cta-link:hover {
    opacity: 1;
}

/* Contact page form fix: dark text on light background */
.psm-page-content input,
.psm-page-content textarea,
.psm-page-content select {
    background: #ffffff !important;   /* white background */
    color: #0a0a0a !important;        /* dark text */
    border: 1px solid #ccc !important;
}

.psm-page-content input::placeholder,
.psm-page-content textarea::placeholder {
    color: #666666 !important;        /* medium gray placeholder */
}

.psm-page-content label {
    color: #0a0a0a !important;        /* dark label text */
}

/* Buttons on the contact page */
.psm-page-content button,
.psm-page-content input[type="submit"] {
    background: #0066ff !important;   /* your blue */
    color: #ffffff !important;        /* white text */
    border: none !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
}

/* Fix stretched/smashed staff photo */
.psm-page-content img,
.psm-staff-photo img {
    width: 100%;
    height: auto !important;      /* maintain aspect ratio */
    object-fit: cover !important; /* crop instead of stretch */
    max-width: 600px;             /* optional: keeps it from getting huge */
    display: block;
    margin: 0 auto;
}

/* Sticky header base */
.psm-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #0a0a0a; /* match your theme */
    transition: all 0.25s ease;
}

/* Desktop: default large logo */
@media (min-width: 900px) {
    .psm-logo img {
        max-height: 90px;
        transition: max-height 0.25s ease;
    }
}

/* Shrunk header state */
.psm-header.shrink {
    padding-top: 4px;
    padding-bottom: 4px;
}

.psm-header.shrink .psm-logo img {
    max-height: 55px; /* shrunk size */
}

.psm-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--psm-border);
}

.psm-share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.psm-share-btn {
    background: var(--psm-accent);
    padding: 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.psm-share-btn:hover {
    opacity: 0.85;
}

.psm-share-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

