/* ============================================
   PROJECT DETAIL PAGE STYLES
   Prefix: pj- (to avoid conflicts with global CSS)
   ============================================ */

/* Remove Astra container clipping and display flex */
.site-content .ast-container,
#primary {
  overflow: visible !important;
  display: block;
}

/* ── HERO ── */
.pj-hero {
  position: relative;
  width: 100vw !important;
  height: 350px;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}
.pj-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
}
.pj-hero-content {
  position: absolute;
  bottom: clamp(24px, 5vw, 60px);
  left: 100px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pj-hero-text {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.5px;
  font-family: Arial, sans-serif;
  line-height: 1.1;
}

/* ── BREADCRUMB (inside hero) ── */
.pj-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.pj-breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.pj-breadcrumb a:hover { color: #fff; }
.pj-breadcrumb .pj-sep {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}
.pj-breadcrumb .pj-current {
  color: #fff;
  font-weight: 600;
}

/* ── MAIN CONTENT ── */
.pj-page-wrapper {
  padding: clamp(30px, 5vw, 60px) 100px;
}

/* Meta line */
.pj-meta-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.pj-meta-line .pj-divider {
  flex: 0 0 60px;
  height: 1px;
  background: #ccc;
}

/* Title */
.pj-title {
  font-family: Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #111;
  line-height: 1.1;
  margin-bottom: 24px;
}

/* Share */
.pj-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.pj-share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}
.pj-share-icons {
  display: flex;
  gap: 10px;
}
.pj-share-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  color: #444;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  font-size: 0.85rem;
}
.pj-share-icons a:hover {
  border-color: #E8650A;
  color: #E8650A;
}
.pj-share-icons svg { width: 15px; height: 15px; fill: currentColor; }

/* Two-column layout */
.pj-two-col {
/*   display: grid !important; */
  grid-template-columns: 1fr 45% !important;
  gap: clamp(24px, 4vw, 60px) !important;
  align-items: start !important;
}

/* LEFT: text content */
.pj-left-col {}

.pj-section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 18px;
}

.pj-body-text {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 24px;
}

.pj-en-body-text {
  font-size: 16px;
  line-height: 1;
  color: #0d6efd;
}

.pj-right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Project images */
.pj-images {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pj-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* RIGHT: info card */
.pj-info-card {
  background: #E50110;
  color: #fff;
  padding: 0;
}
.pj-info-item {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.pj-info-item:last-child { border-bottom: none; }
.pj-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  opacity: 0.9;
}
.pj-info-value {
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Project detail table */
.pj-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 18px;
}
.pj-detail-table,
.pj-detail-table tr,
.pj-detail-table td,
.pj-detail-table th {
  border: none !important;
  box-shadow: none !important;
}
.pj-detail-table td {
  padding: 6px 0;
  color: #444;
  line-height: 1.6;
  vertical-align: top;
}
.pj-detail-table td:first-child {
  font-weight: 700;
  color: #111;
  width: 220px;
  padding-right: 30px;
  background: transparent;
}

/* ===============================
   PROJECT IMAGE SLIDER
   Works for all project pages
================================ */

.pj-slider{
  position:relative;
  width:100%;
  
  margin-top:0px !important;
  overflow:hidden;
}

.pj-right-col .pj-slider {
  width: 100%;
}

.pj-slider-track{
  display:flex;
  transition:transform .5s ease;
}

.pj-slide{
  min-width:100%;
}

.pj-slide img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}

.pj-slide img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
  user-select:none;
  pointer-events:none;
}

.pj-slider-track{
  display:flex;
  transition:transform .5s ease;
  will-change: transform;
}

/* arrows */

.pj-slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,.4);
  border:none;
  color:#fff;
  font-size:22px;
  width:40px;
  height:40px;
  cursor:pointer;
  z-index:2;
}

.pj-prev,
.pj-next{
  display:none;
}

/* slider dots */

.pj-slider-dots{
  text-align:center;
  margin-top:12px;
}

.pj-dot{
  display:inline-block;
  width:18px;
  height:4px;
  background:#bbb;
  margin:0 5px;
  cursor:pointer;
  transition:all 0.3s ease;
}

/* active dot */

.pj-dot.active{
  width:40px;
  height:4px;
  background:#E50110;
}

.pj-slider{
  cursor: grab;
}

.pj-slider:active{
  cursor: grabbing;
}

/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
 
  .pj-page-wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }
 
  .pj-hero-content {
    left: 40px;
  }
 
  .pj-two-col {
    grid-template-columns: 1fr !important;
  }
 
  .pj-slide img {
    height: 360px;
  }
 
  .pj-slider {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    box-sizing: border-box;
  }
 
  .pj-slide {
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
  }
 
}
 
/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {
 
  .pj-page-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
 
  .pj-hero-content {
    left: 20px;
  }
 
  .pj-left-col {
    width: 100% !important;
  }
 
  .pj-slider {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    box-sizing: border-box;
  }
 
  .pj-slide {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
 
}
 
/* ── SMALL MOBILE (≤640px) ── */
@media (max-width: 640px) {
 
  .pj-page-wrapper {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
 
  .pj-hero-content {
    left: 16px;
  }
 
  .pj-slide img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
 
  .pj-slider {
    overflow: hidden;
  }
 
  .pj-slide {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
 
  .pj-slider-dots {
    margin-top: 10px;
  }
 
  .pj-dot {
    width: 14px;
  }
 
  .pj-dot.active {
    width: 32px;
  }
 
}