
/* =========================
   UPCR TRAINING PAGE (TP)
   Fully Scoped CSS
========================= */



.tp-container {
  padding: 110px 20px;
  max-width: 1200px;
  margin: auto;
  background-color:#e2e5eb;
}

/* HEADER */
.tp-header {
  text-align: center;
  margin-bottom: 30px;
}

.tp-title {
  font-size: 30px;
  font-weight: 700;
  color: #0b2c4a;
  margin-bottom: 10px;
}

.tp-subtitle {
  font-size: 15px;
  color:#0b2c4a;
}




/* =========================
   TP FILTER BAR (FINAL)
========================= */
/* Scrollable bar */
.tp-filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 5px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}


.tp-filter-bar {
  padding: 10px 30px; /* space for arrows */
}
/* hide scrollbar */
.tp-filter-bar::-webkit-scrollbar {
  display: none; /* Chrome */
}


/* Prevent button shrink */
.tp-filter-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 20px;
  background: #0b2c4a;
  cursor: pointer;
}


.tp-filter-btn.active {
  background: #0d6efd;
  color: #fff;
}

/* HOVER *//* 👉 Scroll hint (fade + arrow) */
.tp-filter-wrapper {
  position: relative;
}

/* RIGHT → arrow */
.tp-filter-wrapper::after {
  content: "→";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 18px;
  color: #666;

  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 20px;

  background: linear-gradient(to right, transparent, #fff 70%);
  z-index: 5;

  animation: slideRight 1s infinite alternate;
}

/* LEFT ← arrow */
.tp-filter-wrapper::before {
  content: "←";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 18px;
  color: #187009;

  height: 100%;
  display: flex;
  align-items: center;
  padding-right: 20px;

  background: linear-gradient(to left, transparent, #fff 70%);
  z-index: 5;

  animation: slideLeft 1s infinite alternate;
}

/* Animations */
@keyframes slideRight {
  from { transform: translateY(-50%) translateX(0); }
  to { transform: translateY(-50%) translateX(6px); }
}

@keyframes slideLeft {
  from { transform: translateY(-50%) translateX(0); }
  to { transform: translateY(-50%) translateX(-6px); }
}

/* Hide when scrolled */
.tp-filter-wrapper.scrolled-right::after {
  display: none;
}

.tp-filter-wrapper.scrolled-left::before {
  display: none;
}





/* SEARCH */
.tp-search-box {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto 30px auto;
  padding: 12px 16px;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: 0.25s ease;
}

.tp-search-box:focus {
  outline: none;
  border-color: #0b2c4a;
  box-shadow: 0 0 0 3px rgba(11,44,74,0.1);
}

.tp-hide {
  display: none !important;
}

/* Show more */

.tp-card-extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease;
}

.tp-card-extra.show {
  max-height: 700px;
  opacity: 1;
}







/* =========================
   DOMAIN SECTION
========================= */

.tp-domain {
  margin-bottom: 50px;
}

.tp-domain-title {
  font-size: 22px;
  font-weight: 700;
  color: #0b2c4a;
  margin-bottom: 20px;
  border-left: 4px solid #0b2c4a;
  padding-left: 12px;
}

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

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

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

.tp-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.1);
}

/* TITLE */
.tp-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #0b2c4a;
  margin-bottom: 6px;
}

.tp-card-sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

/* =========================
   EXPAND SECTION
========================= */

.tp-card-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.tp-card-extra.show {
  max-height: 500px;
  margin-top: 10px;
}

/* DESCRIPTION */
.tp-card-desc {
  font-size: 13px;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* META LIST */
.tp-card-meta {
  padding-left: 16px;
  margin-bottom: 12px;
}

.tp-card-meta li {
  font-size: 13px;
  margin-bottom: 5px;
  color: #333;
}

/* =========================
   BUTTONS
========================= */

.tp-btn {
  display: inline-block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.25s ease;
}

/* PRIMARY */
.tp-btn-primary {
  background: #0b2c4a;
  color: #fff;
  border: none;
}

.tp-btn-primary:hover {
  background: #144a75;
}

/* OUTLINE */
.tp-btn-outline {
  border: 1px solid #0b2c4a;
  color: #0b2c4a;
  background: transparent;
}

.tp-btn-outline:hover {
  background: #0b2c4a;
  color: #fff;
}

/* SMALL BUTTON */
.tp-btn-sm {
  background: #f1f1f1;
  color: #333;
  border: none;
}

.tp-btn-sm:hover {
  background: #ddd;
}


/* =========================
   PDF MODAL
========================= */

.tp-pdf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.tp-pdf-modal.active {
  display: flex;
}

/* BOX */
.tp-pdf-box {
  width: 90%;
  max-width: 900px;
  height: 85%;
  background: #fff;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* CLOSE */
.tp-pdf-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  z-index: 10;
}

.tp-pdf-close:hover {
  color: red;
}

/* IFRAME */
.tp-pdf-frame {
  flex: 1;
  width: 100%;
  border: none;
}

/* DOWNLOAD BUTTON */
.tp-pdf-box .tp-btn {
  border-radius: 0;
  text-align: center;
}




/* =========================
   SEARCH HIDE CLASS
========================= */

.tp-hide {
  display: none !important;
}

/* =========================
   RESPONSIVE
========================

/* RESPONSIVE */
@media (max-width: 768px) {
  .tp-title {
    font-size: 24px;
  }

  .tp-navbar {
    font-size: 16px;
    text-align: center;
  }

  .tp-filter-bar {
    gap: 8px;
  }

  .tp-filter-btn {
    font-size: 13px;
    padding: 8px 12px;
  }

 .tp-domain-title {
    font-size: 18px;
  }

  .tp-card {
    padding: 15px;
  }

  .tp-card-title {
    font-size: 16px;
  }  
  
  
  
}
















