.font-poppins {
  font-family: 'Poppins', sans-serif;
}

.banner {
  width: 100%;
  position: relative;
  text-align: center;
  color: white;
  padding: 1px;
}
.banner img {
    width: 100%;
}

.banner-text {
  background: #f9f9f9;
  font-size: 50px;
  text-align: left;
  font-weight: 500;
  position: absolute;
  bottom: 70px;
  padding: 10px 50px 10px 50px;
}

.banner-text img {
  width: 50%;
  height: auto;
}

.intro {
  font-size: clamp(16px, 2.1vw, 20px);
  background: #1b005d;
  color: #fff;
  padding: clamp(36px, 9vw, 80px) clamp(10px, 8vw, 96px);
  margin: 25px auto;
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.7px;
  max-width: 1100px;
  border-radius: 14px;
}

.iic-header-container {
  font-weight: 500;
  font-size: 40px;
  background: #270D5C;
  position: absolute;
  top: 50px;
  padding: 10px 50px 10px 50px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: #555555 2px 2px 2px;
}
.iic-info {
    max-width: 1100px;
    margin: 40px auto 70px auto;
    padding: 0 20px;
}

.iic-block {
    background: #f6f7ff;
    border-left: 5px solid #1f247d;
    padding: 25px 30px;
    margin-bottom: 35px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.iic-block h2 {
    color: #1f247d;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

.iic-block ul {
    padding-left: 18px;
    list-style-type: disc;
}

.iic-block li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.55;
    color: #222;
}

/* Responsive */
@media (max-width: 600px) {
    .iic-block {
        padding: 20px 18px;
    }
    .iic-block h2 {
        font-size: 1.4rem;
    }
}

.iic-activities {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
}

.iic-title {
    font-size: 2rem;
    color: #1f247d;
    margin-bottom: 40px;
    font-weight: 700;
}

.iic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 35px;
    max-width: 1100px;
    margin: auto;
}

.iic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.iic-item img {
    width: 60px;   /* adjust icon size */
    height: auto;
}

.iic-item p {
    color: #1f247d;
    font-weight: 600;
    font-size: 1rem;
    max-width: 150px;
}

.iic-gallery {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.gallery-title {
    font-size: 1.9rem;
    color: #1f247d;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Carousel Wrapper */
.carousel {
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
    position: relative;
}

/* Track that scrolls */
.carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
}

/* Images */
.carousel-track img {
    height: 180px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Infinite scroll animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .carousel-track img {
        height: 130px;
    }
}

#iic-intro {
    background-color: #f4f4f9;
    padding: 40px 0;
    text-align: center;
}

#iic-intro .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

#iic-intro h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

#iic-intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #iic-intro h2 {
        font-size: 1.5rem;
    }

    #iic-intro p {
        font-size: 1rem;
    }
}



/* Student Members / Domains */
.iic-students {
  padding: clamp(36px, 8vw, 80px) 5% clamp(40px, 9vw, 90px);
  background: #f7f7fb;
  text-align: center;
  align-items: center;
}
.iic-students h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1b005d;
  margin: 0 0 24px;
  text-align: center;
}

/* Generic grid (legacy support for older sections) */
.iic-students-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Domain leads grid (new layout) */
.iic-students-grid.domain-leads {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
  justify-content: center;
}
.iic-students-grid.domain-leads .member-card {
  grid-column: auto; /* ignore 12-col span logic */
  max-width: 560px;
  margin-inline: 0;
}

/* Single lead (domain with only head, no coordinator) */
.iic-students-grid.domain-leads.single-lead {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin-inline: auto;
}

/* Triple layout (1 head + 2 coordinators) */
.iic-students-grid.domain-leads.triple-layout {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

/* Legacy domains grid (kept for compatibility) */
.iic-students-grid.domains .member-card {
  grid-column: span 3;
}

@media (max-width: 1100px) {
  .iic-students-grid.domains .member-card { grid-column: span 4; }
}
@media (max-width: 800px) {
  .iic-students-grid.core-leads .member-card { grid-column: span 12; }
  .iic-students-grid.domains .member-card { grid-column: span 6; }
  .iic-students-grid.domain-leads { grid-template-columns: 1fr; }
  .iic-students-grid.domain-leads.triple-layout { grid-template-columns: 1fr; }
  .iic-students-grid.domain-leads.single-lead { max-width: 100%; }
}
@media (max-width: 520px) {
  .iic-students-grid.domains .member-card { grid-column: span 12; }
}

.member-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
  border: 1px solid rgba(27,0,93,0.08);
}
.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.member-card .avatar {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}
.member-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover overlay with LinkedIn logo */
.member-card .overlay-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(27,0,93,0.0) 0%, rgba(27,0,93,0.6) 100%);
  opacity: 0;
  transition: opacity 200ms ease;
  text-decoration: none;
}
.member-card:hover .overlay-link { opacity: 1; }
.member-card .overlay-link .linkedin-logo {
  width: 56px;
  height: 56px;
  padding: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.member-card .info {
  padding: 14px 16px 18px;
}
.member-card .info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #270D5C;
  letter-spacing: 0.2px;
}
.member-card .info .name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

/* Role accents (new roles + legacy kept) */
.role-head .info h3 { color: #7b2cff; }
.role-coordinator .info h3 { color: #ff6b35; }
.role-convener .info h3 { color: #7b2cff; }
.role-coconvener .info h3 { color: #ff6b35; }
.domain .info h3 { color: #1b005d; }

/* Domain section container */
.domain-section {
  max-width: 1100px;
  margin: clamp(22px, 4vw, 34px) auto;
  background: #fff;
  border: 1px solid rgba(27,0,93,0.08);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 32px);
  text-align: left;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.domain-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #270D5C;
}
.domain-intro {
  margin: 0 0 20px;
  color: #444;
  line-height: 1.8;
}

/* Domain members list */
.domain-members {
  margin-top: 22px;
}
.domain-members h4 {
  margin: 0 0 12px;
  color: #270D5C;
  font-size: 18px;
  font-weight: 700;
}
.members-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.members-list li {
  background: #f7f7fb;
  border: 1px solid rgba(27,0,93,0.08);
  color: #333;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* Objectives section placeholder polish to better match */
.objectives {
  padding: clamp(24px, 6vw, 48px) 5% clamp(12px, 4vw, 32px);
}
.objectives .objectives-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.objectives .objective {
  min-height: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.objectives .objective-img {
  min-height: 180px;
  background: #eee;
  border-radius: 12px;
}

/* Header strip under global header for alignment */
.header-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 5%;
  background: linear-gradient(135deg, #f7f7fb 0%, #ffffff 100%);
  border-bottom: 2px solid rgba(27,0,93,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-text img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 200ms ease;
}
.header-text img:hover {
  transform: scale(1.05);
}
.header-text p {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: #270D5C;
  text-align: center;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .header-text {
    flex-direction: column;
    padding: 16px 5%;
    gap: 10px;
  }
  .header-text img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .header-text img {
    height: 40px;
  }
}

/* Center the first two student member cards (legacy core leaders support) */
.iic-students-grid.core-leads {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}
.iic-students-grid.core-leads .member-card {
  grid-column: auto; /* override earlier span */
  max-width: 360px;
  margin-inline: auto;
}

@media (max-width: 800px) {
  .iic-students-grid.core-leads {
    grid-template-columns: 1fr;
  }
  .domain-section {
    padding: clamp(18px, 6vw, 26px);
  }
}

@media (max-width: 640px) {
  .intro {
    padding: clamp(24px, 9vw, 48px) 8%;
  }
  .domain-section {
    margin: clamp(18px, 6vw, 28px) 12px;
  }
  .members-list {
    gap: 8px;
  }
  .iic-students {
    padding: clamp(28px, 9vw, 50px) 4% clamp(32px, 10vw, 64px);
  }
}

@media (max-width: 480px) {
  .domain-section {
    padding: clamp(16px, 8vw, 24px);
  }
  .members-list li {
    font-size: 13px;
    padding: 7px 10px;
  }
  .objectives .objective,
  .objectives .objective-img {
    min-height: 140px;
  }
}

.iic-flagship {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.flagship-title {
    font-size: 1.9rem;
    color: #1f247d;
    font-weight: 700;
    margin-bottom: 40px;
}

.flagship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.flagship-card {
    background: #f6f7ff;
    border-left: 6px solid #1f247d;
    padding: 25px 25px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    text-align: left;
}

.flagship-card h3 {
    color: #1f247d;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.flagship-card p {
    color: #333;
    line-height: 1.55;
    margin: 0;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .flagship-card {
        padding: 20px;
    }
}

.iic-social-contact {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ---------- Social Section ---------- */

.iic-social {
    text-align: center;
    margin-bottom: 50px;
}

.iic-social h2 {
    color: #1f247d;
    font-size: 1.7rem;
    margin-bottom: 20px;
}

.iic-social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f6f7ff;
    padding: 12px 20px;
    border-radius: 6px;
    border-left: 4px solid #1f247d;
    text-decoration: none;
    font-weight: 600;
    color: #1f247d;
    transition: 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.social-link img {
    width: 26px;
    height: 26px;
}

.social-link:hover {
    background: #e7e9ff;
    transform: translateY(-3px);
}

/* ---------- Contact Section ---------- */

.iic-contact h2 {
    color: #1f247d;
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 20px;
}

.contact-card {
    background: #f6f7ff;
    border-left: 5px solid #1f247d;
    margin: 15px auto;
    padding: 20px 25px;
    border-radius: 6px;
    max-width: 550px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.contact-card p {
    margin: 0;
    color: #222;
    line-height: 1.5;
}

.contact-card a {
    color: #1f247d;
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    .social-link {
        width: 100%;
        justify-content: center;
    }
}

.faculty {
    padding: clamp(20px, 6vw, 54px);
    text-align: center;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
}

.faculty-member {
    max-width: 240px;
    margin: 0 auto;
}

.faculty-member img {
    width: 100%;
    border-radius: 8px;
}

.faculty-member p {
    margin-top: 5px;
    font-size: 14px;
}
