/* Killer Bees Robotics - Theme CSS */

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

:root {
    --kb-black: #000000;
    --kb-dark: #111111;
    --kb-yellow: #f5c400;
    --kb-white: #ffffff;
    --kb-gray: #1a1a1a;
    --kb-text: #ffffff;
    --kb-muted: #aaaaaa;
    --kb-nav-bg: #000000;
    --kb-nav-height: 90px;
    --kb-max-width: 1200px;
    --kb-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

@font-face {
    font-family: 'DeathRattle';
    src: url('../images/deathrattlebb_reg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--kb-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--kb-text);
    background: var(--kb-black);
    margin: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =====================
   HEADER / NAV
   ===================== */

.site-header {
    background: var(--kb-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 2px solid #222;
}

.nav-inner {
    max-width: var(--kb-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--kb-nav-height);
    padding: 0 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 68px;
    width: auto;
}

.site-logo .site-title {
    font-family: 'DeathRattle', var(--kb-font);
    font-size: 2rem;
    font-weight: normal;
    color: var(--kb-white);
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.primary-nav li {
    position: relative;
}

.primary-nav li a {
    display: block;
    color: #cccccc;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0 1.1rem;
    height: var(--kb-nav-height);
    line-height: var(--kb-nav-height);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.primary-nav li a:hover {
    color: var(--kb-yellow);
    background: rgba(255,255,255,0.04);
    text-decoration: none;
}

/* Active nav item */
.primary-nav li.active > a {
    color: var(--kb-yellow);
    background: rgba(245, 196, 0, 0.08);
    border-bottom: 3px solid var(--kb-yellow);
}

/* Dropdown */
.primary-nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    list-style: none;
    min-width: 180px;
    z-index: 100;
    border-top: 2px solid var(--kb-yellow);
    border: 1px solid #333;
    border-top: 2px solid var(--kb-yellow);
}

.primary-nav li:hover ul { display: block; }

.primary-nav li ul li a {
    height: auto;
    line-height: 1.4;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #222;
    color: #ccc;
}

.primary-nav li ul li.active > a {
    color: var(--kb-yellow);
    border-left: 3px solid var(--kb-yellow);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--kb-white);
    margin: 6px 0;
    transition: all 0.3s;
}

/* =====================
   HERO / BANNER
   ===================== */

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--kb-black);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 620px;
    object-fit: cover;
}

/* Fade from hero bottom into black page body */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, #000000);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0,0,0,0.25);
}

.hero-team-name {
    width: 70%;
    max-width: 720px;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
    position: relative;
    z-index: 2;
}

/* =====================
   PAGE CONTENT
   ===================== */

.page-wrap {
    max-width: var(--kb-max-width);
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.content-section {
    margin-bottom: 2rem;
}

h1, h2, h3, h4 {
    color: var(--kb-white);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 3px solid var(--kb-yellow);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: #cccccc;
}

hr {
    border: none;
    border-top: 1px solid #333;
    margin: 1.5rem 0;
}

/* =====================
   PHOTO GALLERY (4-up grid)
   ===================== */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 1.5rem 0;
}

.photo-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

/* =====================
   SIDEBAR LAYOUT
   ===================== */

.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: var(--kb-max-width);
    margin: 0 auto;
    padding: 2rem 2rem;
}

.sidebar {
    border-left: 3px solid var(--kb-yellow);
    padding-left: 1.5rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--kb-white);
    border-bottom: 2px solid var(--kb-yellow);
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
}

.widget ul li a {
    color: #ccc;
    transition: color 0.2s;
}

.widget ul li a:hover {
    color: var(--kb-yellow);
    text-decoration: none;
}

/* =====================
   EVENT FLYER
   ===================== */

.event-flyer { width: 100%; }

.event-flyer img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* =====================
   FIRST ROBOTICS SECTION
   ===================== */

.first-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.first-section img { max-width: 100px; }

.first-section p {
    font-size: 0.875rem;
    color: var(--kb-muted);
    margin-bottom: 0.5rem;
}

.first-section a {
    color: var(--kb-yellow);
    font-weight: 600;
    font-size: 0.875rem;
}

/* =====================
   SPONSORS PAGE
   ===================== */

.sponsor-tier { margin-bottom: 2.5rem; }

.sponsor-tier h3 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--kb-muted);
    border-bottom: 2px solid var(--kb-yellow);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.sponsor-logos img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 4px;
}

/* =====================
   GOLF OUTING PAGE
   ===================== */

.golf-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.golf-info-card {
    background: #111;
    border-radius: 6px;
    padding: 1.25rem;
    border-left: 4px solid var(--kb-yellow);
}

.golf-info-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--kb-muted);
    margin-bottom: 0.4rem;
    border-bottom: none;
}

.golf-info-card .info-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--kb-white);
}

/* Registration Form */
.reg-form-wrap {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.reg-form-wrap h2 {
    font-size: 1.4rem;
    border-bottom: 3px solid var(--kb-yellow);
    padding-bottom: 0.4rem;
    margin-bottom: 1.5rem;
    color: var(--kb-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ccc;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: var(--kb-font);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    background: #1a1a1a;
    color: var(--kb-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--kb-yellow);
    box-shadow: 0 0 0 3px rgba(245,196,0,0.15);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.price-summary {
    background: #1a1400;
    border: 1px solid var(--kb-yellow);
    border-radius: 6px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.price-summary h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--kb-muted);
    margin-bottom: 0.75rem;
    border-bottom: none;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #ccc;
}

.price-line:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 10px;
    color: var(--kb-white);
}

.price-line .amount { color: var(--kb-yellow); font-weight: 600; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-primary { background: var(--kb-yellow); color: #000; }
.btn-primary:hover { background: #e0b000; color: #000; text-decoration: none; }
.btn-full { width: 100%; display: block; }

.stripe-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--kb-muted);
}

/* =====================
   CONTACT PAGE
   ===================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* =====================
   RESOURCES
   ===================== */

.resource-file {
    background: #111;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #222;
}

.resource-file a.download {
    background: var(--kb-yellow);
    color: #000;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    text-decoration: none;
}

.resource-file a.download:hover { background: #e0b000; }

/* =====================
   FOOTER
   ===================== */

.site-footer {
    background: #0a0a0a;
    color: var(--kb-white);
    padding: 2.5rem 2rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #222;
}

.footer-inner {
    max-width: var(--kb-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--kb-yellow);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    line-height: 1.9;
    text-decoration: none;
    display: block;
}

.footer-col a:hover { color: var(--kb-yellow); text-decoration: none; }

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: var(--kb-white) !important;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.2s;
    text-decoration: none;
}

.footer-socials a:hover { background: var(--kb-yellow); color: #000 !important; }

.footer-bottom {
    border-top: 1px solid #1e1e1e;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 1024px) {
    .primary-nav li a { padding: 0 0.75rem; font-size: 0.875rem; }
    .site-logo .site-title { font-size: 1.6rem; }
}

@media (max-width: 900px) {
    .photo-gallery { grid-template-columns: repeat(2, 1fr); }
    .golf-info-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .page-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { border-left: none; border-top: 3px solid var(--kb-yellow); padding-left: 0; padding-top: 1.5rem; }
    .hero-team-name { width: 85%; }
}

@media (max-width: 768px) {
    :root { --kb-nav-height: 70px; }
    .nav-toggle { display: block; }
    .site-logo .site-title { font-size: 1.3rem; }
    .site-logo img { height: 50px; }

    .primary-nav {
        display: none;
        position: absolute;
        top: var(--kb-nav-height);
        left: 0;
        right: 0;
        background: #0d0d0d;
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 0;
        border-bottom: 2px solid var(--kb-yellow);
    }

    .primary-nav.open { display: flex; }

    .primary-nav li a {
        height: auto;
        line-height: 1.4;
        padding: 0.85rem 1.5rem;
        border-bottom: 1px solid #1e1e1e;
    }

    .primary-nav li.active > a {
        border-bottom: 1px solid #1e1e1e;
        border-left: 3px solid var(--kb-yellow);
    }

    .primary-nav li ul {
        position: static;
        display: block;
        background: rgba(255,255,255,0.03);
        border-top: none;
        border: none;
    }

    .primary-nav li ul li a { padding-left: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero-team-name { width: 90%; }
}

@media (max-width: 480px) {
    .photo-gallery { grid-template-columns: 1fr 1fr; }
}

/* =====================
   HOME PAGE SPECIFIC
   ===================== */

/* Hero subtitle text */
.hero-subtitle {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    margin-top: 1rem;
    max-width: 800px;
    border-bottom: none;
    position: relative;
    z-index: 2;
}

/* Home body: main content left, sidebar right */
.home-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: var(--kb-max-width);
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.home-main { min-width: 0; }

/* Fix about text — force white, not yellow */
.home-main p {
    color: #ffffff !important;
}

.home-main h2 {
    color: #ffffff;
    border-bottom: 3px solid var(--kb-yellow);
}

/* Photo grid: 3 small across top */
.photo-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 1.5rem;
}

.photo-grid-top img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

/* Photo grid: 1 large below */
.photo-grid-bottom {
    margin-top: 8px;
}

.photo-grid-bottom img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

/* Home sidebar */
.home-sidebar {
    border-left: 3px solid var(--kb-yellow);
    padding-left: 1.5rem;
}

/* Responsive home layout */
@media (max-width: 900px) {
    .home-body {
        grid-template-columns: 1fr;
    }
    .home-sidebar {
        border-left: none;
        border-top: 3px solid var(--kb-yellow);
        padding-left: 0;
        padding-top: 1.5rem;
    }
    .photo-grid-top img { height: 120px; }
    .photo-grid-bottom img { height: 220px; }
    .hero-subtitle { font-size: 1.2rem; }
}

/* =====================
   HOME BODY — FULL WIDTH (override previous grid)
   ===================== */

.home-body {
    display: block !important;
    max-width: var(--kb-max-width);
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.home-sidebar { display: none !important; }

.first-row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.first-row p { color: #fff; }

.home-footer-widgets {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
}

.home-footer-widgets .widget-title {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .first-row { flex-direction: column; }
    .home-footer-widgets { flex-direction: column; gap: 1.5rem; }
}

/* =====================
   ABOUT SECTION — text left, photos right
   ===================== */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text h2 {
    color: #ffffff;
    border-bottom: 3px solid var(--kb-yellow);
}

/* Yellow about text, white for "FIRST Robotics Competition" */
.about-para {
    color: var(--kb-yellow) !important;
    font-size: 1rem;
    line-height: 1.7;
}

.about-para .white {
    color: #ffffff !important;
}

.about-photos .photo-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.about-photos .photo-grid-top img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 3px;
}

.about-photos .photo-grid-bottom img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr;
    }
    .about-photos { margin-top: 1.5rem; }
}

/* =====================
   FIRST ROBOTICS — inverted white section
   ===================== */

.first-robotics-section {
    background: #ffffff;
    border-radius: 6px;
    padding: 2rem 2.5rem;
    margin-top: 2.5rem;
}

.first-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    justify-content: space-between;
}

.first-heading {
    color: #111111 !important;
    border-bottom: 3px solid var(--kb-yellow);
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
}

.first-hr {
    border-top: 1px solid #ddd !important;
    margin: 0.75rem 0 1rem !important;
}

.first-text p {
    color: #333333 !important;
}

.first-link {
    color: var(--kb-yellow) !important;
    font-weight: 600;
    font-size: 0.95rem;
}

.first-logo {
    max-width: 160px;
    flex-shrink: 0;
}

/* =====================
   SOCIAL LIST WITH ICONS
   ===================== */

.social-list {
    list-style: none !important;
    padding: 0 !important;
}

.social-list li {
    border-bottom: 1px solid #222 !important;
    padding: 0 !important;
}

.social-list li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    color: #ccc;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.social-list li a:hover {
    color: var(--kb-yellow);
    text-decoration: none;
}

.social-list li a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* =====================
   FOOTER WIDGETS — left/right
   ===================== */

.home-footer-widgets {
    display: flex !important;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
}

.home-footer-widgets .widget {
    flex: 1;
}

@media (max-width: 768px) {
    .first-row { flex-direction: column; }
    .first-logo { max-width: 120px; }
    .home-footer-widgets { flex-direction: column; gap: 1.5rem; }
}

/* =====================
   EVENTS SECTION
   ===================== */

.events-section { margin-top: 2.5rem; }

.events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.event-card {
    display: flex;
    gap: 1.25rem;
    background: #111;
    border: 1px solid #222;
    border-left: 4px solid var(--kb-yellow);
    border-radius: 6px;
    padding: 1.25rem;
    flex: 1 1 400px;
    align-items: flex-start;
}

.event-card .event-flyer {
    flex-shrink: 0;
    width: 130px;
}

.event-card .event-flyer img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.event-details { flex: 1; }

.event-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    border-bottom: none !important;
}

.event-date, .event-location {
    font-size: 0.875rem;
    color: #aaa !important;
    margin-bottom: 0.35rem;
}

.event-btn {
    margin-top: 0.75rem;
    font-size: 0.8rem !important;
    padding: 8px 14px !important;
    display: inline-block;
}

@media (max-width: 600px) {
    .event-card { flex-direction: column; }
    .event-card .event-flyer { width: 100%; }
}

/* =====================
   GOLF OUTING FORM TOGGLE
   ===================== */

.form-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    max-width: 500px;
}

.toggle-btn {
    flex: 1;
    padding: 14px 20px;
    background: #111;
    border: none;
    color: #aaa;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--kb-font);
}

.toggle-btn:first-child { border-right: 1px solid #333; }

.toggle-btn.active {
    background: var(--kb-yellow);
    color: #000;
}

.toggle-btn:hover:not(.active) {
    background: #1a1a1a;
    color: #fff;
}

/* =====================
   SPONSOR LEVEL CARDS
   ===================== */

.sponsor-levels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sponsor-level-card {
    background: #111;
    border: 1px solid #222;
    border-left: 4px solid var(--kb-yellow);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
}

.sponsor-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.sponsor-level-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.sponsor-level-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--kb-yellow);
}

.sponsor-level-card ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.sponsor-level-card ul li {
    color: #aaa;
    font-size: 0.9rem;
    padding: 3px 0;
    border: none;
}

/* =====================
   SPONSOR FOURSOME NOTICE
   ===================== */

.foursome-notice {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 4px solid var(--kb-yellow);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* =====================
   PAGE CONTENT — rendered markdown
   ===================== */

.page-content a {
    color: var(--kb-yellow);
    text-decoration: underline;
}

.page-content a:hover {
    color: #fff;
}

.page-content ul, .page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content ul li, .page-content ol li {
    color: #ccc;
    padding: 0.2rem 0;
}

.page-content strong {
    color: #fff;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.page-content h2 {
    margin-top: 1.5rem;
}

.page-content hr {
    border-top: 1px solid #333;
    margin: 1.5rem 0;
}

/* =====================
   HISTORY PAGE
   ===================== */

.season-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #1e1e1e;
    align-items: start;
}

.season-row:last-child { border-bottom: none; }

/* LEFT column */
.season-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.robot-photo {
    width: 100%;
    max-width: 200px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #222;
}

.season-year-badge {
    width: 140px;
    height: 140px;
    background: #111;
    border: 2px solid var(--kb-yellow);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--kb-yellow);
    font-family: var(--kb-font);
}

.robot-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tba-link {
    font-size: 0.8rem;
    color: var(--kb-yellow) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.tba-link:hover { color: #fff !important; }

/* RIGHT column */
.season-right { min-width: 0; }

.season-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.season-year-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--kb-yellow);
    line-height: 1;
}

.season-game {
    font-size: 0.85rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 3px 10px;
    border-radius: 20px;
}

.season-record {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(245,196,0,0.1);
    border: 1px solid rgba(245,196,0,0.3);
    padding: 3px 10px;
    border-radius: 20px;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-list li {
    color: #ccc;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-list li:last-child { border-bottom: none; }

.achievement-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--kb-yellow);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .season-row {
        grid-template-columns: 1fr;
    }
    .season-left {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }
    .season-year-badge {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    .robot-photo {
        width: 120px;
        height: 90px;
        flex-shrink: 0;
    }
}

/* =====================
   JOIN THE TEAM PAGE
   ===================== */

.page-content img {
    display: block;
    margin: 1rem auto;
}

/* =====================
   SPONSOR TILES
   ===================== */

.sponsor-tier {
    margin-bottom: 3rem;
}

.sponsor-tier h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #aaa;
    border-bottom: 2px solid var(--kb-yellow);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sponsor-tile {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sponsor-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,196,0,0.2);
}

.sponsor-tile a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sponsor-tile img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Platinum sponsors bigger */
.sponsor-tier:first-child .sponsor-tile {
    width: 220px;
    height: 150px;
}

@media (max-width: 768px) {
    .sponsor-tile { width: 140px; height: 95px; }
    .sponsor-tier:first-child .sponsor-tile { width: 160px; height: 110px; }
}

/* =====================
   SPONSOR PACKET BANNER
   ===================== */

.sponsor-packet-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #111;
    border: 1px solid #2a2a2a;
    border-left: 4px solid var(--kb-yellow);
    border-radius: 6px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.sponsor-packet-text h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    border: none;
}

.sponsor-packet-text p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

.sponsor-packet-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem !important;
    padding: 12px 20px !important;
}

/* =====================
   SPONSORSHIP LEVEL INFO CARDS
   ===================== */

.sponsor-levels-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1e1e1e;
}

.sponsor-level-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sponsor-level-info-card {
    background: #111;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    border-top: 4px solid #333;
}

.sponsor-level-info-card.platinum { border-top-color: #e5e4e2; }
.sponsor-level-info-card.gold     { border-top-color: var(--kb-yellow); }
.sponsor-level-info-card.silver   { border-top-color: #aaa; }
.sponsor-level-info-card.bronze   { border-top-color: #cd7f32; }

.slevel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slevel-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slevel-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--kb-yellow);
}

.sponsor-level-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sponsor-level-info-card ul li {
    color: #aaa;
    font-size: 0.875rem;
    padding: 4px 0;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sponsor-level-info-card ul li:last-child { border-bottom: none; }

.sponsor-level-info-card ul li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--kb-yellow);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

@media (max-width: 768px) {
    .sponsor-packet-banner { flex-direction: column; align-items: flex-start; }
    .sponsor-level-grid { grid-template-columns: 1fr; }
}

/* =====================
   GOLF OUTING TOGGLE — centered
   ===================== */

.form-toggle {
    max-width: 700px !important;
    margin: 0 auto 2rem auto !important;
}
