.cptc-carousel { padding-bottom: 40px; }
.cptc-card { border:1px solid #e3e7ec; border-radius:8px; overflow:hidden; }
/* ===== Carousel layout ===== */
.cptc-img { display:block; }
.cptc-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
a.cptc-btn {
    color: #F6F7F9 !important;
}
.cptc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
}
.cptc-title {
    color: #0154BB;
    font-size: 24px;
}
.cptc-btn { background:linear-gradient(135deg,#0b4a9e,#1a7ae0); color:#fff; padding:8px 24px; border-radius:6px; text-decoration:none; line-height:1; }
.cptc-carousel .swiper-pagination-bullet-active { background:#0b4a9e; }
.cptc-carousel .swiper-pagination {
    position: static;
    margin-top: 20px;
}
.cptc-carousel {
    padding-bottom: 0; /* เอาช่องว่างที่เคยเผื่อไว้ให้จุดออก */
}
/* ===== Grid layout ===== */
.cptc-grid {
    display: grid;
    grid-template-columns: repeat(var(--cptc-cols, 2), 1fr);
    gap: 24px;
}

/* Mobile responsive CSS */
@media (max-width: 767px) {
    .cptc-grid { grid-template-columns: 1fr; }
}

/* IPad responsive CSS */
@media screen and (max-width: 1024px) {
  .cptc-title {
    font-size: 18px;
}
}
