/* Layout Styles - Upper Moreland Wrestling Club */

/* Main Content Area */
main {
  flex: 1;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Layout Container for Sidebars and Content */
.layout-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  padding: 0 2rem;
}

.content-area {
  flex: 1;
  max-width: 800px;
  order: 2;
}

.sidebar-left {
  width: 300px;
  flex-shrink: 0;
  order: 1;
}

.sidebar-right {
  width: 300px;
  flex-shrink: 0;
  order: 3;
}

/* Sponsor Section */
.sponsor-container {
  background: var(--bg-primary);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 2px solid var(--accent-color);
  width: 100%;
}

.sponsor-container h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.sponsor-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.sponsor-wrapper img {
  max-height: 100px;
  width: auto;
  filter: grayscale(100%);
  transition: var(--transition);
}

.sponsor-wrapper img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Special background for JC Campoli logo */
.sponsor-wrapper a[href*="jccampoli"] img {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #718096 100%);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
}

/* Responsive Layout */
@media only screen and (max-width: 920px) {
  .sponsor-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  
  .sponsor-wrapper img {
    max-height: 80px;
  }
}

@media only screen and (max-width: 768px) {
  .layout-container {
    flex-direction: column;
    padding: 0 1rem;
  }
  
  .sidebar-left,
  .sidebar-right {
    width: 100%;
    order: 2;
  }
  
  .content-area {
    order: 1;
  }
  
  .sponsor-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .layout-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .sidebar-left,
  .sidebar-right {
    width: 100%;
  }
}
