/* ===== NETWORKING SECTION – FINAL RESPONSIVE VERSION ===== */

.network-pro-section {
  padding: 70px 5%;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* HEADER */
.network-pro-header {
  text-align: center;
  margin-bottom: 50px;
}

.network-pro-eyebrow {
  color: #ff8c00;
  letter-spacing: 3px;
  font-size: 15px;
  font-weight: 600;
}

.network-pro-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 10px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255,140,0,0.7);
}

.network-pro-header p {
  color: #dddddd;
  margin-top: 10px;
}

/* ===== GRID LAYOUT ===== */

.network-pro-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 20px 40px;
}

/* ===== CARD DESIGN ===== */

.network-pro-card {
  border-radius: 22px;
  position: relative;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 140, 0, 0.2);

  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  padding: 6px;
  width: 100%;
  overflow: hidden;
}

/* ===== IMAGE CONTAINER ===== */

.network-pro-img {
  position: relative;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
}

/* MAIN FIX – PREVENT CROPPING */
.network-pro-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* THIS FIXES CROPPING */
  object-position: center;
  background: rgba(0,0,0,0.6);
  transition: 0.5s ease;
}

/* YEAR BADGE */
.network-pro-year {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #ff8c00;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
  z-index: 2;
}

/* ===== HOVER EFFECTS ===== */

.network-pro-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 40px rgba(255,140,0,0.4);
}

/* ===== SHINY BORDER EFFECT ===== */

.network-pro-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,140,0,0.9),
    transparent
  );

  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.network-pro-card:hover::before {
  opacity: 1;
  animation: shine-border 1.8s linear infinite;
}

@keyframes shine-border {
  0% { background-position: -200%; }
  100% { background-position: 200%; }
}

/* ===== RESPONSIVE DESIGN (CLEAN & WORKING) ===== */

/* LARGE LAPTOPS */
@media (max-width: 1400px) {
  .network-pro-container {
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 20px;
    gap: 30px;
  }
}

/* TABLETS */
@media (max-width: 1100px) {
  .network-pro-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 30px;
  }

  .network-pro-img {
    height: 400px;
  }
}

/* SMALL TABLETS */
@media (max-width: 900px) {
  .network-pro-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .network-pro-img {
    height: 360px;
  }
}

/* MOBILE PHONES – THIS FIXES YOUR SCREENSHOT ISSUE */
@media (max-width: 600px) {

  .network-pro-section {
    padding: 60px 4%;
  }

  .network-pro-header h2 {
    font-size: 26px;
  }

  /* IMPORTANT: Convert grid to swipeable row */
  .network-pro-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 10px;
  }

  .network-pro-card {
    min-width: 300px;       /* PREVENT THIN CARDS */
    scroll-snap-align: center;
  }

  .network-pro-img {
    height: 340px;
  }

  .network-pro-year {
    font-size: 11px;
  }
}

/* VERY SMALL PHONES */
@media (max-width: 400px) {

  .network-pro-card {
    min-width: 260px;
  }

  .network-pro-img {
    height: 300px;
  }
}
/* Remove top padding specifically for mobile */
@media (max-width: 768px) {
  .network-pro-section {
    padding-top: 0px !important;
    padding-bottom: 40px !important;   /* keep bottom spacing normal */
  }

  .network-pro-header {
    margin-top: 0px !important;
    margin-bottom: 30px !important;
  }
}
@media (max-width: 768px) {
  .network-pro-header h2 {
    margin-top: 0px !important;
  }
}
