/*--------------------------------------------------------------
# Modern Execom Styling
# Created specifically for CSI Execom pages
# Matches the modern design of the main website
--------------------------------------------------------------*/

/* ===== Base / Page Reset ===================================== */
.execom-modern {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  /* Account for the standard fixed header (~70px) */
  padding-top: 70px;
}

.execom-modern .team {
  background: transparent;
  padding: 40px 0;
}

/* ===== Execom Hero Banner ==================================== */
.execom-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  padding: 60px 0 50px 0;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.execom-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 70%
  );
  animation: headerShimmer 8s ease infinite;
}

@keyframes headerShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.execom-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.execom-subtitle {
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.85;
  margin-top: 12px;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

/* ===== Section Headers ======================================= */
.section-header {
  text-align: center;
  margin: 60px 0 40px 0;
  position: relative;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #1e90ff, #4169e1);
  border-radius: 2px;
}

.section-description {
  font-size: 1rem;
  color: #666;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
  padding: 0 16px;
}

/* ===== Card Grid ============================================= */
.execom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 60px;
  padding: 0 15px;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.execom-grid .member-card {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  min-width: 260px;
}

/* ===== Member Cards ========================================== */
.member-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-card.image-loading .member-photo {
  background: linear-gradient(135deg, #eef2f7, #dde5ef);
  border-radius: 50%;
}

.member-card.image-loading .member-photo img {
  opacity: 0.18;
  filter: blur(1px);
}

.member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e90ff, #4169e1, #9b59b6);
  border-radius: 20px 20px 0 0;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
}

/* Member Photo */
.member-photo {
  position: relative;
  margin: 0 auto 20px auto;
  width: 110px;
  height: 110px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.member-card:hover .member-photo img {
  transform: scale(1.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* Member Info */
.member-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.member-position {
  font-size: 0.88rem;
  color: #1e90ff;
  font-weight: 600;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Social Links */
.member-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #e9ecef;
  border-radius: 50%;
  color: #666;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}
.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: #ffffff;
}

.social-link.linkedin:hover {
  background: linear-gradient(135deg, #0077b5, #005885);
  border-color: #0077b5;
}
.social-link.instagram:hover {
  background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
  border-color: #e4405f;
}
.social-link.github:hover {
  background: linear-gradient(135deg, #333, #24292e);
  border-color: #333;
}
.social-link.twitter:hover {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
  border-color: #1da1f2;
}

/* ===== Leadership Cards ====================================== */
.leadership-section .execom-grid {
  gap: 36px;
}

.leadership-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(30, 144, 255, 0.08);
}

.leadership-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
  border-radius: 24px 24px 0 0;
}

.leadership-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
  border-color: rgba(30, 144, 255, 0.25);
}

.leadership-card .member-photo {
  width: 130px;
  height: 130px;
  margin-bottom: 24px;
}

.leadership-card .member-info h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.leadership-card .member-position {
  font-size: 1rem;
  color: #d4a853;
  font-weight: 700;
}

/* ===== Animation Classes ===================================== */
/* Animations are now handled by AOS */

/* ===== Tablet: 2 Cards Per Row =============================== */
@media (max-width: 1024px) and (min-width: 769px) {
  .execom-grid .member-card {
    flex: 0 0 calc(50% - 14px);
    max-width: calc(50% - 14px);
  }
  .execom-title {
    font-size: 2.6rem;
  }
}

/* ===== Mobile: 1 Card Per Row ================================ */
@media (max-width: 768px) {
  .execom-modern {
    padding-top: 70px; /* keep standard header offset */
  }

  .execom-header {
    padding: 40px 16px 36px 16px;
    margin-bottom: 30px;
  }

  .execom-title {
    font-size: 1.8rem;
    line-height: 1.25;
    padding: 0 8px;
  }

  .execom-subtitle {
    font-size: 0.9rem;
    margin-top: 10px;
  }

  .section-header {
    margin: 40px 0 28px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .execom-grid {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 12px;
    margin-bottom: 30px;
  }

  .execom-grid .member-card {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: auto;
    width: 100%;
  }

  .member-card {
    padding: 22px 16px;
  }

  .leadership-card {
    padding: 28px 16px;
  }

  .leadership-section .execom-grid {
    gap: 18px;
  }

  .member-photo {
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
  }

  .leadership-card .member-photo {
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
  }

  .member-info h4 {
    font-size: 1.1rem;
  }

  .leadership-card .member-info h4 {
    font-size: 1.2rem;
  }
}

/* ===== Small phones ========================================== */
@media (max-width: 480px) {
  .execom-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .member-card {
    padding: 18px 14px;
  }

  .member-photo {
    width: 80px;
    height: 80px;
  }

  .leadership-card .member-photo {
    width: 100px;
    height: 100px;
  }

  .member-info h4 {
    font-size: 1rem;
  }

  .member-position {
    font-size: 0.8rem;
  }
}

/* ===== Print Styles ========================================== */
@media print {
  .execom-modern {
    background: white !important;
  }
  .member-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  .social-link {
    display: none;
  }
}
