/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #000080;
  --primary-light: #0000D1;
  --primary-dark: #000047;
  --accent: #ff0000;
  --accent-hover: #d4171f;
  --text: #171717;
  --text-dark: #000000;
  --secondary: #54595F;
  --bg: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
}

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

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  color: var(--primary);
}

.clear {
    clear: both;
}

/* ===== Header / Navigation ===== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo img {
  height: 50px;
  width: auto;
  min-width: 90px;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 10px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.main-nav a {
  display: block;
  color: var(--primary);
  padding: 20px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s, border-bottom-color 0.2s;
  border-bottom: 5px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Social icons in header */
.header-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-social a {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--primary);
}

.hero img {
  width: auto;
  height: 500px;
  display: block;
  margin: auto;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(transparent, rgba(38, 34, 98, 0.8));
  color: var(--white);
}

.hero-overlay h1 {
  font-size: 2.4rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-overlay p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== Page Content ===== */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 10px 10px 10px;
}

.page-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== Divider (like PowerPack divider) ===== */
.section-divider {
  display: flex;
  align-items: center;
  margin: 15px 0px 15px 0px;
  gap: 15px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--text);
}

.section-divider span {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ===== Cards / Sections ===== */
.card {
  margin: 15px 0px 15px 0px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  padding: 15px;
}

.card h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 18px 0 8px;
}

.card ul, .card ol {
  margin-left: 24px;
  margin-bottom: 12px;
}

.card li {
  margin-bottom: 6px;
  color: var(--text);
}

.card p {
  margin-bottom: 15px;
  color: var(--text);
}

.card p:last-child {
  margin-bottom: 0;
}

/* ===== Goals Grid ===== */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 15px 0px 15px 0px;
}

.goal-item {
  margin: 0px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  padding: 15px;
  text-align: center;
}

.goal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.goal-item p {
  color: var(--text);
  font-size: 0.95rem;
}

/* ===== Accordion (History page) ===== */
.accordion-item {
  background: var(--white);
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 6px 24px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  text-align: left;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.5px;
}

.accordion-header:hover {
  background: var(--primary-light);
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
}

.accordion-item.open .accordion-header {
  background: var(--accent);
}

.accordion-item.open .accordion-header::after {
  content: '\2212';
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body-inner {
  padding: 24px;
}

.accordion-body-inner h3 {
  color: var(--primary);
  margin: 16px 0 8px;
  font-size: 1.1rem;
}

.accordion-body-inner h3:first-child {
  margin-top: 0;
}

.accordion-body-inner p {
  margin-bottom: 10px;
  color: var(--text);
}

.accordion-body-inner ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.accordion-body-inner li {
  margin-bottom: 4px;
  color: var(--text);
}

.robot-image {
  float: right;
  max-width: 250px;
  margin: 0 0 16px 24px;
  border-radius: 4px;
  border: 2px solid var(--border);
}

.robot-image-center {
  display: block;
  max-width: 300px;
  margin: 16px auto;
  border-radius: 4px;
  border: 2px solid var(--border);
}

.memorial-image {
  float: right;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 0 16px 24px;
  border: 3px solid var(--primary);
  object-fit: cover;
}

/* Video embeds */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 16px 0;
  border-radius: 4px;
  clear: both;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.competition-result {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 0 4px 4px 0;
}

.competition-result strong {
  color: var(--primary);
}

/* ===== Sponsors ===== */
.sponsor-season {
  background: var(--white);
  border-radius: 4px;
  padding: 24px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.sponsor-season h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  letter-spacing: 1px;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 16px 0;
}

.sponsor-logos img {
  max-height: 70px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: transform 0.2s;
}

.sponsor-logos img:hover {
  transform: scale(1.05);
}

.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sponsor-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
}

/* ===== Contact Cards ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border-radius: 4px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.contact-role {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-style: italic;
}

.contact-card a {
  color: var(--accent);
  font-weight: 500;
}

/* ===== Calendar ===== */
.calendar-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 15px 0px 15px 0px;
}

.calendar-link-card {
  background: var(--white);
  border-radius: 4px;
  padding: 5px 5px 5px 5px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.calendar-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.calendar-link-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.calendar-link-card p {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 10px 15px 10px 15px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: var(--white);
}

/* ===== Instagram Grid ===== */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.instagram-grid .instagram-media {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--white);
  text-decoration: none;
}

.site-footer p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
  }

  .header-social {
    display: none;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .robot-image {
    float: none;
    display: block;
    max-width: 200px;
    margin: 16px auto;
  }
}

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    padding: 16px;
  }

  .hero-overlay h1 {
    font-size: 1.4rem;
  }
}
