@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #040439, #880c61);
    color: #e0e0ff;
    transition: background 0.5s ease;
}

.container {
    width: 100%;
    /* max-width: 500px; */
    margin: 0 auto;
    
    min-height: calc(100vh - 100px); /* account for fixed header height */
    padding: 1rem;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center;     /* horizontal centering */
    
    overflow: auto;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #1b1b33;
    box-shadow: 0 2px 8px rgba(0, 0, 50, 0.7);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    z-index: 1000;
}

.site-header > .header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #b6b6ff;
    margin: 1rem;
}

h3{
    text-align: center;
    margin: .5rem;
}

p {
    text-align: center;
    max-width: 900px;
    margin: .5rem;
}

.logo-small {
    display: block;
    max-width: 200px; /* adjust size */
    height: auto;
    margin: 1rem auto; /* center it with spacing */
}


form {
    display: flex;
    flex-direction: column; /* stack inputs vertically */
    align-items: center;    /* center horizontally */
}


form input, form select, form button {
    width: 100%;
    max-width: 600px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

form input, form select {
    background-color: #2a2a4a;
    color: #e0e0ff;
    border: 1px solid #3e3e6b;
    transition: border 0.3s ease;
}

form input:focus, form select:focus {
    outline: none;
    border: 1px solid #8a84ff;
}

form button {
    background: linear-gradient(to right, #6a5acd, #8a2be2);
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    letter-spacing: 0.5px;
}

form button:hover {
    background: linear-gradient(to right, #8a2be2, #6a5acd);
    transform: translateY(-2px);
}

a {
    color: #b6b6ff;
    display: inline-block;
    margin-top: 1rem;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #d3cfff;
    text-shadow: 0 0 5px #8a2be2;
}

.flash {
    background-color: #8a2be2;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}



.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 50px;
    width: auto;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-nav ul li a {
    color: #e0e0ff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-nav ul li a:hover {
    color: #c9c9ff;
    text-shadow: 0 0 6px #6a5acd;
}

.site-footer {
            flex-shrink: 0;
            background-color: #1b1b33;
            color: #e0e0ff;
            padding: 1.5rem 2rem;
            text-align: center;
            box-shadow: 0 -2px 8px rgba(0, 0, 50, 0.7);
            margin-top: 2rem;
        }

/* menu toggle code */

/* Hamburger base */
.menu-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100; /* above nav */
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #e0e0ff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile view */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #1b1b33;
    position: absolute;
    top: 100px; /* height of header */
    left: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 50, 0.7);
    padding: 1rem 0;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav.active {
    display: flex;
  }
}

/* Animate to X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* exec memeber posts */
.team-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* always 3 columns */
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}


/* -----------------------------------
   Sponsors & Affiliates Section
----------------------------------- */
.partners-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.partners-section h2 {
    color: #b6b6ff;
    margin-bottom: 1.5rem;
}

/* Grid layout */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
    margin-bottom: 3rem;
}

/* Make logos look uniform and interactive */
.partners-grid a {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partners-grid img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    background-color: #e8e2f3;
    padding: 10px;
    border: 1px solid #3e3e6b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partners-grid a:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.5);
}

/* Affiliates section with text */
.partners-grid.affiliates {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.affiliate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.affiliate-item img {
    max-width: 120px;
    margin-bottom: 0.5rem;
}

.affiliate-item p {
    color: #b6b6ff;
    font-size: 0.9rem;
    margin: 0;
}



/* For tablets/phones, adjust to 1–2 per row */
@media (max-width: 900px) {
    .team-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-container {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background-color: #2a2a4a;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    width: 100%;
}

@media (min-width: 1200px) {
    .team-card {
        max-width: 350px;
    }
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.team-card img { 
    width: 100%; /* take full card width */ 
    height: auto; /* keep aspect ratio */ 
    object-fit: cover; 
    border-radius: 5%; 
    margin-bottom: 1rem; 
    border: 3px solid #8a2be2; 
    transition: border-color 0.3s ease; 
} 
.team-card img:hover { 
    border-color: #b6b6ff; 
} 
.team-card h4 { 
    margin: 0; 
    font-weight: 600; 
    color: #e0e0ff; 
} 
.team-card .team-desc { 
    font-size: 0.9rem; 
    color: #b6b6ff; 
    margin-top: 0.5rem; 
}
