/*-----------------------------------------------------------------------------------
    JRPL Duraplast — Brand Color Override
    Primary: #1b3c6c (Deep Navy Blue)
    Replaces the Bexon template teal (#1e8a8a) color family with JRPL navy family.
-----------------------------------------------------------------------------------*/

:root {
  /* ── Core brand ─────────────────────────────────────── */
  --tj-color-theme-primary:   #1b3c6c;   /* JRPL navy — replaces teal #1e8a8a     */
  --tj-color-theme-bg:        #dce8f5;   /* pale navy tint — replaces #d8e5e5      */
  --tj-color-theme-bg-2:      #c8daf0;   /* slightly richer pale — replaces #cee0e0 */
  --tj-color-theme-bg-3:      #172947;   /* deep navy bg — replaces dark teal #202e30 */

  /* ── Dark shades (mapped from teal darks) ───────────── */
  --tj-color-theme-dark:      #0d1e38;   /* darkest navy — replaces #0c1e21       */
  --tj-color-theme-dark-2:    #142d52;   /* dark navy — replaces #18292c          */
  --tj-color-theme-dark-3:    #2d4f7a;   /* medium navy — replaces #364e52        */
  --tj-color-theme-dark-4:    #5a7fa8;   /* steel blue — replaces #67787a         */
  --tj-color-theme-dark-5:    #6b7a90;   /* muted blue-grey — replaces #676e7a    */

  /* ── Heading & body text ────────────────────────────── */
  --tj-color-heading-primary: #0d1e38;   /* replaces #0c1e21                       */
  --tj-color-text-body:       #2d4a6e;   /* navy-tinted body — replaces #364e52    */
  --tj-color-text-body-2:     #8fa8c8;   /* light blue-grey — replaces #a9b8b8     */
  --tj-color-text-body-3:     #5a7296;   /* medium blue-grey — replaces #67787a    */
  --tj-color-text-body-4:     #142d52;   /* dark navy — replaces #18292c           */

  /* ── Borders ────────────────────────────────────────── */
  --tj-color-border-1:        #c0cfe0;   /* light blue-grey — replaces #c9d1d1     */
  --tj-color-border-2:        #263550;   /* dark navy border — replaces #313d3d    */
  --tj-color-border-5:        rgba(27, 60, 108, 0.15); /* replaces teal rgba */

  /* ── Page background ────────────────────────────────── */
  --tj-color-grey-1:          #eef3f9;   /* very light blue-grey — replaces #ecf0f0 */
  --tj-color-grey-2:          #8fa8c8;   /* replaces #a9b8b8                       */
}


/* ══════════════════════════════════════════════════════════
   DARK BACKGROUND CONTRAST FIXES
   Navy primary on dark navy bg is invisible — use light
   variants for text/accents on dark sections.
   ══════════════════════════════════════════════════════════ */

/* Sub-title badges on dark service section (was navy-on-navy) */
.tj-service-section .sec-heading.style-2 .sub-title {
  color: #8ab4e8 !important;                          /* light sky blue */
  background-color: rgba(138, 180, 232, 0.12);       /* subtle glow bg */
  border-color: rgba(138, 180, 232, 0.25);
}

/* Service section: all sub-titles on dark backgrounds */
.tj-service-section .sec-heading .sub-title {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero slider sub-title & title span — must be visible on dark slider bg */
.tj-slider-item .slider-content .slider-sub-title {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.tj-slider-item .slider-content .slider-title span {
  color: #8ab4e8 !important;
}

.tj-slider-item .slider-content .slider-desc {
  color: rgba(255, 255, 255, 0.75);
}

/* Heading accent <span> on dark backgrounds — must be light, not navy */
.tj-service-section .sec-title span,
.tj-project-section-3 .sec-title span,
.tj-testimonial-section .sec-title span,
.tj-testimonial-section-2 .sec-title span {
  color: #8ab4e8 !important;
}

/* Service item titles (links) on dark background */
.tj-service-section .service-item.style-2 .title a {
  color: #ffffff;
}
.tj-service-section .service-item.style-2 .title a:hover {
  color: #8ab4e8;
}

/* Service item icons on dark bg — use light accent */
.tj-service-section .service-item.style-2 .service-icon i {
  color: #8ab4e8;
}

/* Service item list checkmarks on dark bg */
.tj-service-section .service-item.style-2 .list-items li i {
  color: #8ab4e8;
}

/* Process section step numbers */
.process-item .process-step span {
  color: var(--tj-color-theme-primary);
}

/* Project section on dark bg */
.tj-project-section-3 .sec-heading .sub-title {
  color: #8ab4e8;
  border-color: rgba(138, 180, 232, 0.25);
}

/* Testimonial dark bg sections */
.tj-testimonial-section .sec-heading .sub-title,
.tj-testimonial-section-2 .sec-heading.style-2 .sub-title {
  color: #8ab4e8;
}

/* Footer accent links on dark */
.tj-footer-section a:hover {
  color: #8ab4e8;
}

/* Page header breadcrumb text on dark bg */
.tj-page-header .tj-page-link span a:hover {
  color: #8ab4e8;
}

/* CTA section text — ensure readable */
.cta-content .title {
  color: var(--tj-color-common-white);
}


/* ══════════════════════════════════════════════════════════
   HARDCODED TEAL → NAVY OVERRIDES
   Original template uses rgba(30,138,138,...) in many places
   ══════════════════════════════════════════════════════════ */

/* Mega menu service icon gradient bg */
.mobile_menu ul > li > .mega-menu-service-single .mega-menu-service-icon {
  background: linear-gradient(-45deg, rgba(27, 60, 108, 0.3) 0%, rgba(27, 60, 108, 0) 50%, rgba(27, 60, 108, 0.3) 100%);
  color: var(--tj-color-theme-primary);
}

/* Service item icon gradient bg (style-2) */
.service-item .service-icon {
  background: linear-gradient(-45deg, rgba(27, 60, 108, 0.3) 0%, rgba(27, 60, 108, 0) 50%, rgba(27, 60, 108, 0.3) 100%) !important;
  border-color: rgba(27, 60, 108, 0.15) !important;
}

/* Choose section icon gradient */
.choose-item .choose-icon {
  background: linear-gradient(135deg, rgba(27, 60, 108, 0.3) 0%, rgba(27, 60, 108, 0) 50%, rgba(27, 60, 108, 0.3) 100%);
}

/* FAQ accordion icon gradient */
.tj-faq-section .accordion-icon {
  background: linear-gradient(135deg, rgba(27, 60, 108, 0.3) 0%, rgba(27, 60, 108, 0) 50%, rgba(27, 60, 108, 0.3) 100%);
}


/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */

.tj-primary-btn,
.tj-primary-btn-2 {
  background-color: var(--tj-color-theme-primary);
}

.tj-primary-btn:hover,
.tj-primary-btn-2:hover {
  background-color: #2d5a9e;
}

.tj-primary-btn.btn-dark {
  background-color: #0d1e38;
}

.tj-primary-btn.btn-dark:hover {
  background-color: var(--tj-color-theme-primary);
}

/* Button icon bg */
.tj-primary-btn .btn-icon {
  background-color: #0d1e38;
}

.tj-primary-btn:hover .btn-icon {
  background-color: #142d52;
}


/* ══════════════════════════════════════════════════════════
   ACCENT TEXT & ELEMENTS (LIGHT BACKGROUNDS)
   ══════════════════════════════════════════════════════════ */

/* Links */
a:hover,
.text-btn:hover .btn-text span {
  color: var(--tj-color-theme-primary);
}

/* Section heading sub-titles (light bg context) */
.sec-heading .sub-title {
  color: var(--tj-color-theme-primary);
  border-color: rgba(27, 60, 108, 0.2);
}

/* Span accents inside headings */
.sec-heading .sec-title span,
.sec-heading.style-2 .sec-title span {
  color: var(--tj-color-theme-primary);
}

/* Icon accent */
.tj-icon-box .icon,
.tj-icon-box-2 .icon {
  color: var(--tj-color-theme-primary);
}

/* Category badge / tag */
.categories,
.project-content .categories {
  color: var(--tj-color-theme-primary);
}

/* Counter numbers */
.tj-counter-item .number,
.tj-counter-item .suffix {
  color: var(--tj-color-theme-primary);
}

/* Active nav link */
.mainmenu > ul > li.current-menu-item > a,
.mainmenu > ul > li:hover > a {
  color: var(--tj-color-theme-primary);
}

/* Sub-menu hover */
.mainmenu ul > li > .sub-menu > li:hover > a {
  color: var(--tj-color-theme-primary);
}

/* Breadcrumb active */
.tj-page-link span a:hover {
  color: var(--tj-color-theme-primary);
}

/* Footer heading underline accent */
.footer-widget .title::after {
  background-color: var(--tj-color-theme-primary);
}

/* Back to top button */
#tj-back-to-top {
  background-color: var(--tj-color-theme-primary);
}

/* Progress / skill bars */
.skill-bar .bar-inner {
  background-color: var(--tj-color-theme-primary);
}

/* Pagination active */
.tj-pagination ul li .page-numbers.current,
.tj-pagination ul li .page-numbers:hover {
  background-color: var(--tj-color-theme-primary);
  border-color: var(--tj-color-theme-primary);
}

/* Form focus ring */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--tj-color-theme-primary) !important;
  outline: none;
}

/* Preloader ball */
.tj-preloader-ball {
  background-color: var(--tj-color-theme-primary);
}

/* Choose section icon */
.choose-item .choose-icon i {
  color: var(--tj-color-theme-primary);
}

/* About counter label */
.counter-item .counter-text .title {
  color: var(--tj-color-theme-primary);
}

/* FAQ active accordion */
.accordion-item .accordion-button:not(.collapsed) {
  color: var(--tj-color-theme-primary);
}

/* Blog date badge */
.blog-date {
  background-color: var(--tj-color-theme-primary);
}

/* Tag cloud hover */
.tagcloud a:hover {
  background-color: var(--tj-color-theme-primary);
  border-color: var(--tj-color-theme-primary);
  color: #ffffff;
}

/* Sidebar categories hover */
.widget-categories ul li a:hover {
  color: var(--tj-color-theme-primary);
}

/* Social link hover */
.social-links ul li a:hover {
  background-color: var(--tj-color-theme-primary);
}

/* Header top bar */
.header-top {
  background-color: var(--tj-color-theme-primary);
}


/* ══════════════════════════════════════════════════════════
   PRODUCT IMAGE THUMBNAILS IN SERVICE CARDS
   ══════════════════════════════════════════════════════════ */

.service-item.style-2 .product-thumb {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid rgba(138, 180, 232, 0.2);
  transition: all 0.3s ease;
}

.service-item.style-2 .product-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-item.style-2:hover .product-thumb {
  border-color: rgba(138, 180, 232, 0.5);
}

.service-item.style-2:hover .product-thumb img {
  transform: scale(1.05);
}


/* ══════════════════════════════════════════════════════════
   PORTFOLIO / PRODUCTS PAGE — IMAGE OVERLAY
   ══════════════════════════════════════════════════════════ */

.project-item .project-content .categories {
  color: #8ab4e8;
}

.project-item:hover .project-content {
  border-color: rgba(27, 60, 108, 0.3);
}


/* ══════════════════════════════════════════════════════════
   SLIDER — navy overlay gradient + dark bg
   ══════════════════════════════════════════════════════════ */

.tj-slider-item {
  background-color: #0d1e38;
}

.tj-slider-item::after {
  background: linear-gradient(90deg, rgba(13, 30, 56, 0.95) 20%, rgba(13, 30, 56, 0.4) 60%, rgba(13, 30, 56, 0.1) 100%);
}


/* ══════════════════════════════════════════════════════════
   PORTFOLIO GRID — equal height cards
   ══════════════════════════════════════════════════════════ */

.tj-project-section .row {
  display: flex;
  flex-wrap: wrap;
}

.tj-project-section .row > [class*="col-"] {
  display: flex;
}

.tj-project-section .project-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tj-project-section .project-img {
  flex: 1;
  overflow: hidden;
}

.tj-project-section .project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}


/* ══════════════════════════════════════════════════════════
   CONTACT BOXES — equal height
   ══════════════════════════════════════════════════════════ */

.tj-contact-area .row.row-gap-4 {
  display: flex;
  flex-wrap: wrap;
}

.tj-contact-area .row.row-gap-4 > [class*="col-"] {
  display: flex;
}

.tj-contact-area .contact-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tj-contact-area .contact-item p,
.tj-contact-area .contact-item .contact-list {
  flex: 1;
}

.tj-contact-area .contact-item.style-2 {
  align-items: center;
  text-align: center;
}

.tj-contact-area .contact-item.style-2 .contact-icon {
  margin: 0 auto 20px;
}


/* ══════════════════════════════════════════════════════════
   FOOTER — Disclaimer & Marquee
   ══════════════════════════════════════════════════════════ */

.footer-disclaimer {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-disclaimer .disclaimer-text {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.footer-disclaimer .disclaimer-text strong {
  color: rgba(255, 255, 255, 0.6);
}

.marquee-separator {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
}


/* ══════════════════════════════════════════════════════════
   TESTIMONIAL SECTION — custom carousel cards
   ══════════════════════════════════════════════════════════ */

.jrpl-testimonial-slider .swiper-slide {
  height: auto;
}

.jrpl-testimonial-card {
  background: var(--tj-color-common-white, #fff);
  border: 1px solid var(--tj-color-border-1);
  border-radius: 16px;
  padding: 36px 32px 28px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.jrpl-testimonial-card .testimonial-quote-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tj-color-theme-primary), #2d5a9e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.jrpl-testimonial-card .testimonial-quote-icon i {
  color: #fff;
  font-size: 20px;
}

.jrpl-testimonial-card .testimonial-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tj-color-text-body);
  margin: 0 0 24px !important;
  font-style: normal;
  flex: 1;
}

.jrpl-testimonial-card .testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--tj-color-border-1);
  margin-top: auto;
}

.jrpl-testimonial-card .testimonial-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.jrpl-testimonial-card .author-details {
  min-width: 0;
}

.jrpl-testimonial-card .author-role {
  font-size: 13px;
  color: var(--tj-color-text-body-3);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jrpl-testimonial-card .testimonial-rating {
  flex-shrink: 0;
}

.jrpl-testimonial-card .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tj-color-theme-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.jrpl-testimonial-card .author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tj-color-heading-primary);
  margin: 0 0 2px;
}

.jrpl-testimonial-card .testimonial-rating span {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 2px;
}

.jrpl-testimonial-pagination {
  text-align: center;
  margin-top: 32px;
  position: relative !important;
  bottom: auto !important;
}

.jrpl-testimonial-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--tj-color-border-1);
  opacity: 1;
  margin: 0 5px;
}

.jrpl-testimonial-pagination .swiper-pagination-bullet-active {
  background: var(--tj-color-theme-primary);
  width: 28px;
  border-radius: 5px;
}


/* ══════════════════════════════════════════════════════════
   CERTIFICATION / VALUES CARDS — icon-based, no images
   ══════════════════════════════════════════════════════════ */

.cert-card {
  background: var(--tj-color-common-white, #fff);
  border: 1px solid var(--tj-color-border-1);
  border-radius: 12px;
  padding: 36px 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.cert-card:hover {
  border-color: var(--tj-color-theme-primary);
  box-shadow: 0 12px 40px rgba(27, 60, 108, 0.1);
  transform: translateY(-4px);
}

.cert-card .cert-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27, 60, 108, 0.12) 0%, rgba(27, 60, 108, 0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.cert-card .cert-icon i {
  font-size: 28px;
  color: var(--tj-color-theme-primary);
  transition: all 0.4s ease;
}

.cert-card:hover .cert-icon {
  background: var(--tj-color-theme-primary);
}

.cert-card:hover .cert-icon i {
  color: #fff;
}

.cert-card .cert-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 48px;
  font-weight: 800;
  color: rgba(27, 60, 108, 0.06);
  line-height: 1;
  transition: color 0.4s ease;
}

.cert-card:hover .cert-number {
  color: rgba(27, 60, 108, 0.1);
}

.cert-card .cert-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tj-color-heading-primary);
  margin-bottom: 12px;
}

.cert-card .cert-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--tj-color-text-body);
  margin: 0;
}


/* ══════════════════════════════════════════════════════════
   VIDEO GALLERY — thumbnail + play button overlay
   ══════════════════════════════════════════════════════════ */

.video-gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.video-gallery-thumb video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.video-gallery-thumb .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--tj-color-theme-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(27, 60, 108, 0.4);
}

.video-gallery-thumb:hover .video-play-btn {
  background: #2d5a9e;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-gallery-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 30, 56, 0.25);
  transition: background 0.3s ease;
}

.video-gallery-thumb:hover::after {
  background: rgba(13, 30, 56, 0.15);
}

.video-gallery-thumb .video-play-btn {
  z-index: 2;
}


/* ══════════════════════════════════════════════════════════
   PROJECT HIGHLIGHTS — card grid
   ══════════════════════════════════════════════════════════ */

.jrpl-project-highlights .desc {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--tj-color-text-body);
}

.ph-card {
  background: var(--tj-color-common-white, #fff);
  border: 1px solid var(--tj-color-border-1);
  border-radius: 14px;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.ph-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.ph-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ph-card:hover .ph-card-img img {
  transform: scale(1.05);
}

.ph-card-header,
.ph-title,
.ph-client,
.ph-desc,
.ph-highlights {
  padding-left: 24px;
  padding-right: 24px;
}

.ph-card-header {
  padding-top: 20px;
}

.ph-card:hover {
  border-color: var(--tj-color-theme-primary);
  box-shadow: 0 12px 40px rgba(27, 60, 108, 0.1);
  transform: translateY(-4px);
}

/* Header row — year badge + category */
.ph-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ph-year-badge {
  display: inline-block;
  background: var(--tj-color-theme-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.ph-category-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tj-color-theme-primary);
  background: rgba(27, 60, 108, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

/* Title */
.ph-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--tj-color-heading-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

/* Client line */
.ph-client {
  font-size: 13px;
  color: var(--tj-color-text-body-3);
  margin-bottom: 14px;
  line-height: 1.55;
}

.ph-client i {
  margin-right: 6px;
  color: var(--tj-color-theme-primary);
}

/* Description */
.ph-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tj-color-text-body);
  margin-bottom: 16px;
  flex: 1;
}

/* Highlights list */
.ph-highlights {
  list-style: none;
  margin: 0;
  border-top: 1px solid var(--tj-color-border-1);
  padding: 14px 24px 24px;
}

.ph-highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--tj-color-text-body);
  margin-bottom: 6px;
}

.ph-highlights li:last-child {
  margin-bottom: 0;
}

.ph-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tj-color-theme-primary);
  opacity: 0.6;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .ph-card-header,
  .ph-title,
  .ph-client,
  .ph-desc {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ph-highlights {
    padding: 12px 18px 18px;
  }

  .ph-title {
    font-size: 17px;
  }

  .ph-card-img {
    height: 160px;
  }
}


/* ══════════════════════════════════════════════════════════
   PROJECT DETAIL MODAL — responsive popup
   ══════════════════════════════════════════════════════════ */

.jrpl-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.jrpl-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.jrpl-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.jrpl-modal-overlay.active .jrpl-modal {
  transform: translateY(0) scale(1);
}

.jrpl-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--tj-color-heading-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.jrpl-modal-close:hover {
  background: var(--tj-color-theme-primary);
  color: #fff;
}

.jrpl-modal-img {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.jrpl-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jrpl-modal-badges {
  position: absolute;
  bottom: 16px;
  left: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.jrpl-modal-badges .ph-year-badge {
  background: var(--tj-color-theme-primary);
  color: #fff;
}

.jrpl-modal-badges .ph-category-tag {
  background: rgba(255, 255, 255, 0.95);
  color: var(--tj-color-theme-primary);
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.jrpl-modal-body {
  padding: 28px 28px 32px;
}

.jrpl-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tj-color-heading-primary);
  margin: 0 0 12px;
  line-height: 1.35;
}

.jrpl-modal-client {
  font-size: 14px;
  color: var(--tj-color-text-body-3);
  margin-bottom: 16px;
  line-height: 1.5;
}

.jrpl-modal-client i {
  color: var(--tj-color-theme-primary);
  margin-right: 6px;
}

.jrpl-modal-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tj-color-text-body);
  margin-bottom: 20px;
}

.jrpl-modal-highlights-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tj-color-heading-primary);
  margin-bottom: 12px;
}

.jrpl-modal-body .ph-highlights {
  padding: 0;
  border-top: none;
}

/* Make carousel items look clickable */
.project-item[data-project] {
  cursor: pointer;
}

@media (max-width: 575px) {
  .jrpl-modal-img {
    height: 200px;
  }

  .jrpl-modal-body {
    padding: 20px 20px 24px;
  }

  .jrpl-modal-title {
    font-size: 18px;
  }

  .jrpl-modal {
    max-height: 85vh;
    border-radius: 12px;
  }

  .jrpl-modal-img {
    border-radius: 12px 12px 0 0;
  }
}


/* Anchor highlight — pulse the target card when arriving via #hash */
[id]:target .ph-card {
  border-color: var(--tj-color-theme-primary);
  box-shadow: 0 0 0 3px rgba(27, 60, 108, 0.15), 0 12px 40px rgba(27, 60, 108, 0.12);
  animation: ph-highlight 1.5s ease-out;
}

@keyframes ph-highlight {
  0% { box-shadow: 0 0 0 6px rgba(27, 60, 108, 0.3), 0 12px 40px rgba(27, 60, 108, 0.15); }
  100% { box-shadow: 0 0 0 3px rgba(27, 60, 108, 0.15), 0 12px 40px rgba(27, 60, 108, 0.12); }
}

/* Scroll margin so anchored card isn't hidden behind sticky header */
[id].col-lg-4 {
  scroll-margin-top: 120px;
}


/* ══════════════════════════════════════════════════════════
   MOBILE HERO SLIDER — hide arrows, thumbnails, circle button
   ══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .tj-slider-section .hero-navigation,
  .tj-slider-section .hero-thumb,
  .tj-slider-section .circle-text-wrap {
    display: none !important;
  }

  /* Remove dark left gradient overlay on mobile */
  .tj-slider-item::after,
  .tj-slider-item::before {
    display: none !important;
    background: none !important;
  }
}


/* ══════════════════════════════════════════════════════════
   LEGAL PAGES — Privacy / Terms content
   ══════════════════════════════════════════════════════════ */

.jrpl-legal-content {
  color: var(--tj-color-text-body);
  font-size: 15px;
  line-height: 1.75;
}

.jrpl-legal-content .effective-date {
  color: var(--tj-color-text-body-3);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tj-color-border-1);
}

.jrpl-legal-content h3 {
  color: var(--tj-color-heading-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 14px;
}

.jrpl-legal-content p {
  margin-bottom: 16px;
}

.jrpl-legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.jrpl-legal-content ul li {
  margin-bottom: 8px;
  list-style: disc;
}

.jrpl-legal-content a {
  color: var(--tj-color-theme-primary);
  text-decoration: underline;
}


/* ══════════════════════════════════════════════════════════
   CAREERS PAGE — job cards
   ══════════════════════════════════════════════════════════ */

.jrpl-job-card {
  background: #fff;
  border: 1px solid var(--tj-color-border-1);
  border-radius: 12px;
  padding: 28px 26px;
  height: 100%;
  transition: all 0.3s ease;
}

.jrpl-job-card:hover {
  border-color: var(--tj-color-theme-primary);
  box-shadow: 0 12px 32px rgba(27, 60, 108, 0.08);
  transform: translateY(-3px);
}

.jrpl-job-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.jrpl-job-type {
  background: rgba(27, 60, 108, 0.1);
  color: var(--tj-color-theme-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.jrpl-job-location {
  color: var(--tj-color-text-body-3);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jrpl-job-title {
  color: var(--tj-color-heading-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.jrpl-job-dept {
  color: var(--tj-color-text-body-3);
  font-size: 13px;
  margin-bottom: 14px;
}

.jrpl-job-desc {
  color: var(--tj-color-text-body);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.jrpl-general-apply {
  background: linear-gradient(135deg, rgba(27, 60, 108, 0.05) 0%, rgba(27, 60, 108, 0.02) 100%);
  border: 1px solid var(--tj-color-border-1);
  border-radius: 14px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.jrpl-general-apply h4 {
  color: var(--tj-color-heading-primary);
  margin-bottom: 8px;
}

.jrpl-general-apply p {
  color: var(--tj-color-text-body);
  margin: 0;
  max-width: 560px;
}

.jrpl-general-apply a[href^="mailto"] {
  color: var(--tj-color-theme-primary);
  text-decoration: underline;
}


/* ══════════════════════════════════════════════════════════
   SUBSCRIBE MESSAGE
   ══════════════════════════════════════════════════════════ */

.jrpl-subscribe-msg {
  margin-top: 12px;
  font-size: 14px;
  color: transparent;
  transition: color 0.3s ease;
  min-height: 20px;
}

.jrpl-subscribe-msg.success {
  color: #8ab4e8;
}


/* ══════════════════════════════════════════════════════════
   TOP UTILITY BAR — phone, distributor, socials
   ══════════════════════════════════════════════════════════ */

.jrpl-top-bar {
  background: #0d1e38;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 10px 0;
  position: relative;
  z-index: 99;
}

.jrpl-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 40px;
}

.jrpl-top-left,
.jrpl-top-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.jrpl-top-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.jrpl-top-bar a:hover {
  color: #8ab4e8;
}

.jrpl-top-bar i {
  font-size: 13px;
}

.jrpl-distributor-link {
  background: var(--tj-color-theme-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.jrpl-distributor-link:hover {
  background: #2d5a9e;
  color: #fff !important;
}

.jrpl-top-socials {
  display: flex;
  gap: 10px;
}

.jrpl-top-socials a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.jrpl-top-socials a:hover {
  background: var(--tj-color-theme-primary);
  color: #fff;
}

/* Push main header down when top bar is present */
.jrpl-top-bar + .header-area.header-absolute {
  top: 42px;
}


/* ══════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON — above back-to-top
   ══════════════════════════════════════════════════════════ */

.jrpl-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 40px;
  z-index: 101;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

/* When back-to-top is active (user has scrolled), move WhatsApp up */
.jrpl-whatsapp-btn.scrolled {
  bottom: 110px;
}

.jrpl-whatsapp-btn:hover {
  background: #1fb855;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@media (max-width: 991px) {
  .jrpl-whatsapp-btn {
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .jrpl-whatsapp-btn.scrolled {
    bottom: 80px;
  }
}


/* ══════════════════════════════════════════════════════════
   CLIENT LOGOS — contain fit, no distortion
   ══════════════════════════════════════════════════════════ */

.client-logo {
  width: 320px !important;
  height: 140px !important;
  padding: 16px 24px;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

@media (max-width: 991px) {
  .client-logo {
    width: 240px !important;
    height: 110px !important;
    padding: 14px 20px;
  }
}

@media (max-width: 575px) {
  .client-logo {
    width: 200px !important;
    height: 90px !important;
    padding: 12px 16px;
  }
}


/* ══════════════════════════════════════════════════════════
   FOOTER MARQUEE — tighter gaps, no images
   ══════════════════════════════════════════════════════════ */

.footer-marquee .marquee-item {
  gap: 16px;
  padding-inline-end: 16px;
}

.footer-marquee .marquee-item .marquee-text {
  font-size: 80px;
}

@media (max-width: 991px) {
  .footer-marquee .marquee-item .marquee-text {
    font-size: 50px;
  }
}

@media (max-width: 575px) {
  .footer-marquee .marquee-item .marquee-text {
    font-size: 36px;
  }
}

/* --- Slider image cropping fix ---
   Source images (slider-1/2/3) have aspect 1.49:1, slider-4 is 2.19:1,
   slider-5 is 3.03:1. The container's min-height of 92.5vh makes it ~1.9:1
   on desktop, causing top/bottom to be cropped on narrower images (1/2/3).
   Mobile images are 1000x1786 (portrait, aspect 0.56:1), fits mobile aspect.

   Reduce the slider height slightly and fix background positioning so the
   meaningful content (typically the center/upper portion) stays visible
   without losing the bottom.
*/
.tj-slider-item {
  min-height: 85vh;
}

.tj-slider-item .slider-bg-image {
  background-position: center center;
  background-size: cover;
}

/* On wider/taller desktop viewports, give the slider more room */
@media (min-width: 1400px) {
  .tj-slider-item {
    min-height: 115vh;
  }
}

/* Hide hero thumbnails everywhere */
.hero-thumb {
  display: none !important;
}

/* Mobile: show full portrait image anchored to top, content sits over it */
@media (max-width: 991px) {
  .tj-slider-item {
    min-height: 100vh;
  }
  .tj-slider-item .slider-bg-image {
    background-size: cover;
    background-position: center top;
  }
}

@media (max-width: 767px) {
  .tj-slider-item {
    min-height: 95vh;
  }
}

@media (max-width: 575px) {
  .tj-slider-item {
    min-height: 90vh;
  }
  .tj-slider-item .slider-wrapper {
    padding: 120px 0 180px;
  }
}
