/* ===============================
   NAVBAR
================================*/
/* Navbar styles are now handled in main.css */
/* Removed old red navbar styles to match home.html design */

/* ===============================
   ABOUT SECTION
================================*/
.about-section {
  padding: 60px 20px;
}
.about-section h2 {
  font-size: 42px;
  color: var(--red);
  margin-bottom: 25px;
  text-align: center;
}
.about-section h3 {
  padding: 30px 0 0;
}
.about-section .innerdiv-inner {
  padding-top: 40px;
}
.about-section p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-weight: 300;
  font-size: 18px;
  text-align: justify;
  color: var(--gray);
}
.about-section p:first-child::first-letter {
  color: var(--red);
  float: left;
  font-size: 60px;
  line-height: 40px;
  padding-top: 4px;
  padding-right: 3px;
}

/* Quote highlight */
.about-section blockquote {
  font-size: 20px;
  font-style: italic;
  color: var(--red);
  margin: 40px auto;
  text-align: center;
  max-width: 700px;
  line-height: 1.5;
  position: relative;
}
.about-section blockquote::before,
.about-section blockquote::after {
  content: '"';
  font-size: 32px;
  color: var(--light-gray);
  position: absolute;
}
.about-section blockquote::before {
  left: -15px;
  top: -10px;
}
.about-section blockquote::after {
  right: -15px;
  bottom: -10px;
}

/* ===============================
   TEAM SECTION
================================*/
.team-section .section-innerdiv {
  padding: 0 0 40px;
}
.team-section .innerdiv-inner {
  width: 100%;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: stretch;
}
.team-member {
  width: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.img-holder {
  width: 50%;
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
  border: 1px solid black;
  border-radius: 50%;
  overflow: hidden;
}
.img-holder img {
  width: 100%;
  height: auto;
}
.member-info h3 {
  color: var(--red);
  font-weight: 400;
  padding-bottom: 10px;
}
.member-info p {
  font-weight: 300;
  text-align: center;
  color: var(--gray);
  text-transform: uppercase;
}

/* Email + LinkedIn links */
.member-info a {
  display: inline-block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.member-info a[href^="mailto:"]::before {
  content: "📧 ";
}
.member-info a:hover {
  color: var(--red);
  text-decoration: underline;
  transform: scale(1.05);
}
.linkedin-link {
  text-decoration: none;
  color: inherit;
}
.linkedin-link i {
  font-size: 16px;
  color: #0077b5;
  margin-right: 6px;
  vertical-align: middle;
}
.linkedin-link:hover i {
  color: #005582;
}

/* ===============================
   CONTACT LINK
================================*/
.contact-link {
  background-color: var(--cream);
}
.contact-link h3 {
  color: var(--red);
  font-weight: 400;
  font-size: 33px;
  padding-bottom: 35px;
}

/* ===============================
   PREVIOUS TEAM (EXPANDABLE LIST)
================================*/
.more-team-container {
  text-align: center;
  margin: 20px 0;
}
#toggle-more-team {
  background-color: var(--red);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
#toggle-more-team:hover {
  background-color: var(--light-gray);
  color: var(--gray);
}
#more-team-list {
  display: none;
  margin: 20px auto;
  text-align: center;
}
#more-team-list h3 {
  margin-bottom: 20px;
  color: var(--gray);
}
#more-team-list ul {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 40px;
}
#more-team-list li {
  font-size: 16px;
  margin: 6px 0;
  color: var(--gray);
  break-inside: avoid;
}
#more-team-list a {
  color: #0077b5;
  text-decoration: none;
}
#more-team-list a:hover {
  text-decoration: underline;
}

/* ===============================
   HACKATHON SECTION
================================*/
.hackathon-section .innerdiv-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  width: 100%;
  padding-top: 20px;
}
.hackathon-section .team-member {
  width: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

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

/* Tablets */
@media (max-width: 1024px) {
  .about-section h2 { font-size: 32px; }
  .about-section p { font-size: 16px; }
  .team-member, 
  .hackathon-section .team-member { width: 45%; }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .about-section { padding: 40px 15px; }
  .about-section h2 { font-size: 28px; }
  .about-section blockquote { font-size: 18px; max-width: 90%; }
  .team-member, 
  .hackathon-section .team-member { width: 80%; }
  #more-team-list ul { column-count: 1; max-width: 95%; }
}

/* Mobile phones */
@media (max-width: 480px) {
  .about-section h2 { font-size: 22px; }
  .about-section p { font-size: 14px; line-height: 1.5; }
  .team-member, 
  .hackathon-section .team-member { width: 100%; padding: 15px; }
  .img-holder { width: 70%; }
  #toggle-more-team { width: 100%; font-size: 14px; }
  #more-team-list li { font-size: 14px; }
}
