@charset "UTF-8";
/* =========================================================
   Via-In-Pad_2025A.css
   2025A Modern PCB Technical Page Theme
   Updated: 2025-11-01
========================================================= */

.float_right_out {
  background: #F9FAFB;
  padding: 30px 40px;
  font-family: Verdana, Geneva, sans-serif;
  color: #111;
  line-height: 1.8;
}

/* Headings */
.float_right_out h1 {
  font-size: 24px;
  color: #004080;
  border-bottom: 2px solid #007A29;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.float_right_out h2 {
  font-size: 20px;
  color: #0058A8;
  margin-top: 30px;
  margin-bottom: 12px;
  border-left: 4px solid #007A29;
  padding-left: 10px;
}

.lead {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 18px;
  color: #004080;
}

/* Basic text */
.float_right_out p,
.float_right_out li {
  font-size: 14px;
}

/* Hero Image */
.img-hero {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  margin: 15px 0 25px 0;
  border: 1px solid #d7e5ef;
}

/* Section spacing */
.section_block {
  margin-bottom: 28px;
}

/* Checklist bullets */
.checklist {
  padding-left: 18px;
  margin-top: 5px;
}

.checklist li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}

.checklist li:before {
  content: "✔";
  color: #007A29;
  position: absolute;
  left: 0;
  font-size: 13px;
  top: 2px;
}

/* Dual image block */
.img-block {
  margin: 28px 0;
}

.img-dual {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.img-sec {
  width: 48%;
  border-radius: 6px;
  border: 1px solid #d7e5ef;
}

/* CTA buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  margin: 10px 8px 0 0;
  font-size: 14px;
  text-decoration: none;
}

.btn-primary {
  background: #007A29;
  color: #fff !important;
}

.btn-outline {
  background: #fff;
  border: 1px solid #007A29;
  color: #007A29 !important;
}

.btn-primary:hover,
.btn-outline:hover {
  opacity: 0.85;
}

/* Mobile Optimization */
@media(max-width: 768px) {
  .float_right_out {
    padding: 20px;
  }

  .img-sec {
    width: 100%;
  }

  .img-dual {
    flex-direction: column;
    gap: 10px;
  }
}


.vip-svg-wrap { text-align:center; margin:22px 0; }
.vip-svg { max-width:200px; width:100%; }
.vip-caption { font-size:12px; color:#444; margin-top:6px; }



/* ==== Fix sample image size for Via-In-Pad page ==== */
.vip-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.vip-gallery .gallery-grid img {
  width: 100%;
  height: 220px;          /* uniform height */
  object-fit: cover;      /* clean crop */
  border-radius: 6px;
  border: 2px solid #d6eddc; /* match HDI theme */
  transition: all .2s ease;
}

.vip-gallery .gallery-grid img:hover {
  transform: scale(1.03);
  border-color: #0b5e2d;
}


.vip-gallery-grid img,
.vip-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}


/* ====== Fix Via-In-Pad Sample Image Size ====== */

/* Force new grid sizing */
.vip-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

/* Force picture size (same style as Rogers page) */
.vip-img {
  width: 100%;
  height: 220px;          /* consistent height */
  object-fit: cover;      /* clean crop */
  border-radius: 6px;
  border: 2px solid #d6eddc;
  transition: all .2s ease;
}

.vip-img:hover {
  transform: scale(1.03);
  border-color: #0b5e2d;
}

/* Disable legacy image rules */
.img-sec,
.img-dual img,
.img-hero {
  width: auto !important;
  max-width: 300px !important;
  height: auto !important;
}

/* Safety fix: container center alignment */
.vip-gallery {
  text-align: center;
}




/* =========================================================
   PATCH: Via-In-Pad gallery image size limit
   File: Via-In-Pad_2025A.css
========================================================= */

.vip-gallery-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.vip-gallery-grid .vip-img{
  width: clamp(220px, 48%, 420px);  /* 小屏不爆，大屏不巨大 */
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 10px;
  border: 1px solid #d7dde6;
  background: #fff;
}
