.container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.class {
  margin-top: 5%;
  font-size: 2rem;
  font-weight: 700;
  background: #0d47a1;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 60px;
  letter-spacing: 2px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  text-shadow: none;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.class::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  border-radius: 2px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.3);
}

.image-container {
  width: 100%;
  height: 230px;
  overflow: hidden;
  position: relative;
}

.speaker-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.6s ease;
  filter: brightness(1) contrast(1.05) saturate(1.1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.card:hover .speaker-image {
  transform: scale(1.1);
  filter: brightness(1.05) contrast(1.1) saturate(1.15);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
  z-index: 1;
}

.card-content {
  padding: 18px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.speaker-name {
  font-size: 1.2em;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 8px;
  text-shadow: none;
}

.speaker-title {
  font-size: 0.9em;
  color: #334155;
  line-height: 1.6;
  min-height: auto;
  text-shadow: none;
  margin-bottom: 10px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 12px;
  overflow: hidden;
  height: auto;
  margin-bottom: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  transform: translateX(-200px);
  opacity: 0;
}

.card:hover .social-icon {
  transform: translateX(0);
  opacity: 1;
}

.card:hover .social-icon:nth-child(1) {
  transition-delay: 0.1s;
}

.card:hover .social-icon:nth-child(2) {
  transition-delay: 0.2s;
}

.card:hover .social-icon:nth-child(3) {
  transition-delay: 0.3s;
}

.card:hover .social-icon:nth-child(4) {
  transition-delay: 0.4s;
}

.social-icon:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.78em;
  font-weight: 600;
  margin-top: auto;
  margin-bottom: 0;
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  align-self: flex-start;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .image-container {
    height: 280px;
  }
}

.gcdem-footer {
    margin-top: 5%;
    background: #0d46ff;
    padding: 70px 6% 20px;
    color: #fff;
    font-family: "Poppins", sans-serif;
}

/* TOP ROW → Always 1 Row */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 40px;
}

/* LEFT */
.footer-left {
    width: 30%;
    min-width: 260px;
}

.footer-form {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.footer-form input {
    padding: 10px;
    width: 60%;
    border: none;
    border-radius: 6px;
}

.footer-form button {
    background: #fff;
    color: #0d46ff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

.footer-form button:hover {
    opacity: 0.8;
}

/* Social icons */
.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #0d46ff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 18px;
    transition: 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    transform: scale(1.1);
}

/* MIDDLE */
.footer-middle {
    width: 18%;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
}

.footer-middle ul li a {
    text-decoration: none;
    font-size: 17px;
    color: #fff;
    opacity: 0.9;
    line-height: 2;
}

.footer-middle ul li a:hover {
    padding-left: 5px;
    opacity: 1;
}

/* RIGHT → Fixed Logo Grid */
.footer-right {
    width: 45%;
}

/* PERFECT 2×3 GRID LIKE SAMPLE IMAGE */
.assoc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    gap: 25px;
}

/* LOGO STYLE */
.assoc-grid img {
    width: 100%;
    height: 110px;        /* uniform height */
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}

/* CENTER LOGO FULL WIDTH */
.assoc-grid img:nth-child(3) {
    grid-column: 1 / 3;   /* span across 2 columns */
    height: 120px;        /* slightly bigger */
}

/* COPYRIGHT */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 15px;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-top {
        flex-wrap: wrap;
        text-align: center;
    }

    .footer-left, .footer-middle, .footer-right {
        width: 100%;
    }

    .footer-form {
        justify-content: center;
    }

    .assoc-grid {
        grid-template-columns: 1fr 1fr;
    }

    .assoc-grid img:nth-child(3) {
        grid-column: 1 / 3;
    }
}


