/* Sponsor Page Specific Styles */
.sponsor-page {
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Provides spacing between the main sections */
}

/* New Comparison Table Styles */


.sponsorship-comparison {
  display: grid;
  grid-template-columns: 1fr;
  overflow: auto;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
  position: relative; /* Create stacking context for z-index */
}

.sponsorship-comparison::before {
  content: '';
  grid-row: 1 / 1;
  grid-column: 1 / 1;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  z-index: 0; /* Ensure background is behind content */
}


.comparison-table {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
  border-collapse: collapse;
  background: transparent; /* Ensures pseudo-element is visible */
  z-index: 1; /* Position table on top of the background */
}

.comparison-table th, .comparison-table td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  background-color: transparent; /* Ensure container background shows through */
}

.comparison-table th {
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  /* position: sticky was removed as it was causing layout collapse */
}

.comparison-table th span {
  display: block;
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: bold;
}

.comparison-table td:not(:first-child) {
  font-size: 1.2rem;
  color: #4CAF50; /* Green checkmark color */
}



.sponsor-layout-container {
  display: grid;
  grid-template-columns: 350px 1fr; /* Fixed column for rocket, flexible for table */
  gap: 2rem;
  padding: 2rem 0;
}



/* Desktop view: hide overflow for rounded corners */




/* Stacking layout for smaller screens */


@media (max-width: 992px) {
  .sponsor-layout-container {
    display: block;
  }

  .comparison-table {
    min-width: 700px; /* Force table to be wide enough to scroll */
  }

  .rocket-diagram {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
  }
}

.hero-sponsor {
  text-align: center;
  padding: 2rem 1rem;
}

.hero-sponsor h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-sponsor p {
  font-size: 1.2rem;
}

.rocket-diagram {
  text-align: center;
  padding: 2rem 0;
}

.sponsorship-tiers {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

/* Adjustments for larger screens to fit all cards in one row */
@media (min-width: 1200px) {
  .sponsorship-tiers {
    flex-wrap: nowrap; /* Prevent wrapping on large screens */
    gap: 1.5rem; /* Adjust gap for better spacing */
  }

  .tier-card {
    width: 18%; /* Adjust width to fit 5 cards with gap */
    max-width: 200px; /* Ensure cards don't get too large */
  }
}

.tier-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  width: 200px;
  text-align: center;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
}



/* Tier-specific hover effects */
.tier-card[data-tier="bronze"]:hover { box-shadow: 0 8px 24px rgba(205, 127, 50, .3); }
.tier-card[data-tier="silver"]:hover { box-shadow: 0 8px 24px rgba(192, 192, 192, .3); }
.tier-card[data-tier="gold"]:hover   { box-shadow: 0 8px 24px rgba(255, 215, 0, .3); }
.tier-card[data-tier="platinum"]:hover { box-shadow: 0 8px 24px rgba(229, 228, 226, .3); }
.tier-card[data-tier="title"]:hover { box-shadow: 0 8px 24px rgba(180, 145, 200, .3); }

.tier-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.tier-card .price {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.tier-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.tier-card ul li {
  margin-bottom: 0.5rem;
}

.modal-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem; /* Creates space between the disclaimer and the button */
  margin-top: 1.5rem;
}

.modal-footer .disclaimer {
  margin: 0; /* Reset margin */
  text-align: left;
}

.join-sponsors {
  text-align: center;
  padding: 2rem 0;
}

.join-sponsors p {
  margin-top: 1rem;
}

/* Modal Styles */
.modal {
  display: none; /* Initially hidden */
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.5); 
  /* Flexbox for centering */
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  margin: auto; /* Remove fixed margin, auto handles centering in flex */
  padding: 2rem;
  width: 80%;
  max-width: 500px;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}

.close-button:hover,
.close-button:focus {
  color: #fff; /* Changed from black to white */
  text-decoration: none;
  cursor: pointer;
}

#modal-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

#modal-price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--text);
}

#modal-perks {
  list-style: none;
  padding: 0 0 1.5rem 0; /* Add padding to the bottom */
  margin-bottom: 1.5rem;
}

#modal-perks li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#modal-inherited-disclaimer {
  margin-bottom: 1rem;
}

#modal-perks li.included {
  color: #a7e9af; /* A light green for included perks */
}

#modal-perks li.excluded {
  color: #f4a2a2; /* A light red for excluded perks */
  text-decoration: line-through;
  opacity: 0.7;
}

.disclaimer {
  font-style: italic;
  color: var(--text-muted);
}