/* style/style.css */

/* === Base layout === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #050608;
    --bg-elevated: #111318;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text: #f5f5f5;
    --text-muted: #a0a4b8;
    --accent: #ff3366;
    --accent-soft: rgba(255, 51, 102, 0.2);
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #151728 0, #050608 55%, #000 100%);
    color: var(--text);
}

/* Utility container */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

/* =======================
   HEADER & NAVIGATION
   ======================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 6, 8, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.logo img {
    display: block;
    max-height: 52px;
    height: auto;
}

/* Desktop navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* Optional “auth” style button */
.auth-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.auth-link:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* Hamburger button (hidden by default, shown on mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 18px;
    background: var(--text);
    border-radius: 99px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate hamburger into X when open */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* === Page layout === */
#pageMiddle,
.page-middle {
    flex: 1;
    padding: 2rem 0 3rem;
}

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    background: #050608;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-tagline {
    font-style: italic;
}

/* === Generic cards & sections === */
.card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem;
    border: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 1.8rem;
    margin: 0 0 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
}

/* === Contact form styling === */
.contact-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem 1.75rem;
    border: 1px solid var(--border-subtle);
}

.contact-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.contact-header h1 {
    font-size: 1.9rem;
    margin: 0 0 0.5rem;
}

.contact-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form controls */
.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.input-control,
textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 0.7rem;
    border: 1px solid #33374a;
    background: #050608;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input-control::placeholder,
textarea::placeholder {
    color: #5b6075;
}

.input-control:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
    background: #050608;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* Errors & success */
.form-errors {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ffb3b8;
    font-size: 0.9rem;
}

.form-errors ul {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

/* Button primary */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #ff3366, #ff8a3b);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

/* Secondary button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* === Home hero & layout === */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.home-hero-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-title {
    font-size: 2.2rem;
    margin: 0 0 0.5rem;
}

.home-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.home-description {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55em;
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-buttons a {
    padding: 0.8rem 1.4rem;
    font-size: 0.9rem;
}

.small-hero-embed {
    padding-top: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.home-cta {
    text-align: center;
    margin-top: 3rem;
}

.home-cta p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Legacy home hero/grid (kept for compatibility) */
.home-hero-old {
    margin-bottom: 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-main .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.hero-main .section-title {
    margin-bottom: 0.5rem;
}

.hero-main .section-subtitle {
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
}

.hero-video .video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #000;
    box-shadow: var(--shadow-soft);
}

.hero-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Home sections */
.home-section {
    margin-bottom: 2.75rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.stream-card h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.stream-card .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

/* Video cards (JS-based latest videos) */
.cards-grid--videos .video-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    padding-bottom: 56.25%;
    background: radial-gradient(circle at top, #2b2f55, #050608);
}

.video-body {
    padding: 1rem 1.1rem 1.15rem;
}

.video-body h3 {
    margin: 0 0 0.4rem;
}

.video-body .meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==== Sponsor sections (home & sponsors page) ==== */
.home-sponsor,
.home-sponsor-list {
    margin-top: 2rem;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.sponsor-item {
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-subtle);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* More detailed sponsors section (older layout) */
.sponsors-section .section-title {
    margin-bottom: 0.25rem;
}

.sponsors-section .sponsor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.75rem;
}

.sponsor-cta .sponsor-list {
    margin: 0 0 1.15rem;
    padding-left: 1.1rem;
    font-size: 0.92rem;
}

.sponsor-cta .sponsor-list li {
    margin-bottom: 0.35rem;
}

.small-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sponsor-strip h3 {
    margin-top: 0;
}

.sponsor-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0 0.5rem;
}

.sponsor-logo {
    border-radius: 0.75rem;
    border: 1px dashed var(--border-subtle);
    padding: 1.1rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

/* === Live indicator === */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--text-muted);
}

.live-indicator--on {
    border-color: #ff3b47;
    background: rgba(255, 59, 71, 0.16);
    color: #ffb3b8;
}

.live-indicator--on .dot {
    background: #ff3b47;
    box-shadow: 0 0 0 4px rgba(255, 59, 71, 0.26);
}

.live-indicator--off .dot {
    background: var(--text-muted);
}

/* === Sponsors page === */
.sponsors-page__header {
    margin-bottom: 2rem;
}

.sponsor-packages {
    margin-bottom: 2.5rem;
}

.sponsor-tier ul {
    margin: 0.6rem 0 0.75rem;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.sponsor-tier ul li {
    margin-bottom: 0.3rem;
}

.sponsor-tier__price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.sponsor-inquiry {
    margin-bottom: 2.5rem;
}

.form-success {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(25, 135, 84, 0.14);
    border: 1px solid rgba(25, 135, 84, 0.55);
    color: #bff2d3;
    font-size: 0.9rem;
}

/* === About page layout === */
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.about-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-hero-media {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.about-hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    background: radial-gradient(circle at top left, rgba(255, 51, 102, 0.25), transparent 55%),
                radial-gradient(circle at bottom right, rgba(255, 138, 59, 0.2), transparent 55%),
                #050608;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.about-hero-banner h2 {
    margin: 0.5rem 0 0.5rem;
    font-size: 1.4rem;
}

.about-hero-banner p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent-soft);
}

/* Two-column layout for main content + side mission */
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-main p + h2 {
    margin-top: 1.6rem;
}

/* Story and CTA */
.about-story {
    margin-bottom: 1.5rem;
}

.about-story p + p {
    margin-top: 0.7rem;
}

.about-cta {
    text-align: center;
}

.about-cta p {
    margin: 0.4rem 0;
}

/* Additional about blocks (legacy) */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.about-block h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.about-block p {
    margin-top: 0;
    font-size: 0.95rem;
}

.about-note {
    margin-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.25rem;
}

/* === Responsive video embeds === */
.video-embed-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-top: 1rem;
}

.video-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-embed-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === YouTube grid (latest videos include) === */
.yt-section {
    margin-top: 2rem;
}

.yt-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.yt-card {
    background: var(--bg-elevated);
    border-radius: 0.9rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.yt-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.yt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    border-color: var(--accent);
}

.yt-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.yt-thumb-wrap img,
.yt-thumb-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222533;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.yt-info {
    padding: 0.85rem 0.9rem 1rem;
}

.yt-title {
    font-size: 0.98rem;
    margin: 0 0 0.35rem;
}

.yt-meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.yt-error {
    color: #ffb3b8;
    font-size: 0.9rem;
}

/* =======================
   RESPONSIVE TWEAKS
   ======================= */

/* General mobile tweaks */
@media (max-width: 900px) {

    .header-inner {
        padding: 0.5rem 0;
    }

    /* Show hamburger on mobile */
    .nav-toggle {
        display: flex;
    }

    /* Mobile nav: hidden by default */
    .main-nav {
        position: absolute;
        top: 68px; /* adjust to match header height */
        left: 0;
        width: 100%;
        background: rgba(5, 6, 8, 0.98);
        padding: 0.75rem 1rem 1rem;
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
        justify-content: flex-start;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .main-nav li a {
        display: block;
        padding: 0.5rem 0;
        border-bottom: none;
        font-size: 1.05rem;
        text-align: center;
    }

    .auth-link {
        margin-top: 0.75rem;
        width: 100%;
        text-align: center;
    }

    .home-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-buttons {
        justify-content: center;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sponsors-section .sponsor-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {

    #pageMiddle,
    .page-middle {
        padding: 1.5rem 0 2.5rem;
    }

    .contact-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 600px) {
    .about-hero-banner h2 {
        font-size: 1.15rem;
    }
}

@media (min-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Auto sponsor logo grid on home */
.home-sponsor-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* up to 3 equal columns */
    gap: 1rem;
    margin-top: 1rem;
}

.home-sponsor-logos .sponsor-logo {
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-subtle);
    padding: 1.25rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.home-sponsor-logos img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive: fewer columns on smaller screens */
@media (max-width: 900px) {
    .home-sponsor-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-sponsor-logos {
        grid-template-columns: 1fr;
    }
}

/* === Home hero grid with responsive ordering === */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas:
        "title   video"
        "tagline video"
        "desc    video"
        "buttons video";
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.home-title {
    grid-area: title;
    font-size: 2.2rem;
    margin: 0 0 0.25rem;
}

.home-tagline {
    grid-area: tagline;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0;
}

.home-hero-video {
    grid-area: video;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-description {
    grid-area: desc;
    margin: 0;
    font-size: 1rem;
    line-height: 1.55em;
}

.home-buttons {
    grid-area: buttons;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Keep hero video prominent */
.small-hero-embed {
    padding-top: 56.25%; /* 16:9 */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Mobile ordering: title -> tagline -> video -> desc -> buttons */
@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "tagline"
            "video"
            "desc"
            "buttons";
        text-align: center;
    }

    .home-buttons {
        justify-content: center;
    }

    .home-hero-video {
        margin-top: 0.5rem;
    }
}

/* Smaller latest-video cards on mobile so they don't dwarf the hero video */
@media (max-width: 900px) {
    .yt-grid {
        justify-content: center;
    }

    .yt-card {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* ============================
   SPONSOR LOGO SIZE OVERRIDES
   (safe: affects ONLY sponsor grids)
   ============================ */

/* Works for BOTH pages:
   - sponsors.php uses .sponsor-grid .sponsor-item
   - home.php uses .home-sponsor-grid .home-sponsor-item
*/
.sponsor-grid,
.home-sponsor-grid{
  display: grid; /* in case something else overwrote it */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  margin-top: 25px;
}

/* Make each tile a fixed “logo box” so big images can’t blow up layout */
.sponsor-item,
.home-sponsor-item{
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;      /* prevents overlap/stacking */
  text-align: center;
}

/* Make the link fill the tile so clicks are reliable */
.sponsor-item a,
.home-sponsor-item a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* THIS is the actual “make logos smaller” part */
.sponsor-item img,
.home-sponsor-item img{
  max-width: 160px;   /* change this smaller if you want */
  max-height: 70px;   /* change this smaller if you want */
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

/* Responsive columns */
@media (max-width: 900px){
  .sponsor-grid,
  .home-sponsor-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px){
  .sponsor-grid,
  .home-sponsor-grid{
    grid-template-columns: 1fr;
  }
}