/* ==========================================================
   Projects listing (projects.php) + project details (project-details.php)
   Uses the theme blue #0872b6 and Montserrat
   ========================================================== */

/* ---------- hero slider ---------- */
.pd-hero {
    position: relative;
    background: #111;
    overflow: hidden;
}
.pd-slider { margin: 0; }
.pd-slider .pd-slide { position: relative; outline: none; }
.pd-slider .pd-slide a { display: block; cursor: zoom-in; }
.pd-slider .pd-slide img {
    display: block;
    width: 100%;
}
/* hide all but the first slide until slick has started (no tall image flash) */
.pd-slider:not(.slick-initialized) .pd-slide:not(:first-child) { display: none; }

/* dark fade at the bottom so the name stays readable on any photo */
.pd-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ---------- name on the image ---------- */
.pd-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding-bottom: 48px;
    z-index: 2;
    pointer-events: none;
}
.pd-caption a { pointer-events: auto; }
.pd-crumbs {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    font-family: montserrat;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .75);
}
.pd-crumbs li { display: inline; }
.pd-crumbs li + li::before { content: "\203A"; margin: 0 8px; }
.pd-crumbs a { color: rgba(255, 255, 255, .9); }
.pd-crumbs a:hover { color: #fff; text-decoration: underline; }
.pd-tag {
    display: inline-block;
    background: #0872b6;
    color: #fff;
    font-family: montserrat;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    margin-bottom: 14px;
}
.pd-title {
    color: #fff;
    font-family: montserrat;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    max-width: 900px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.pd-tag-completed { background: #1f9d55; }
/* Configuration | Place | Area */
.pd-meta {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: #fff;
    font-family: montserrat;
    font-size: 17px;
    font-weight: 500;
}
.pd-meta li { display: flex; align-items: center; }
.pd-meta li + li::before {
    content: "";
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, .5);
    margin: 0 18px;
}
.pd-meta .fa { color: #4fb3f2; margin-right: 8px; font-size: 16px; }

/* ---------- arrows + counter ---------- */
.pd-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    font-size: 28px;
    line-height: 46px;
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.pd-arrow:hover, .pd-arrow:focus { background: #0872b6; border-color: #0872b6; outline: none; }
.pd-prev { left: 24px; }
.pd-next { right: 24px; }
.pd-counter {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    color: #fff;
    font-family: montserrat;
    font-size: 14px;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, .45);
    padding: 6px 12px;
}

/* ---------- thumbnails ---------- */
.pd-thumbs-wrap { background: #f4f6f8; padding: 14px 0; }
.pd-thumbs .pd-thumb { padding: 0 6px; cursor: pointer; outline: none; }
.pd-thumbs .pd-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    opacity: .55;
    border: 3px solid transparent;
    transition: opacity .2s, border-color .2s;
}
.pd-thumbs .pd-thumb:hover img { opacity: .85; }
.pd-thumbs .slick-current img { opacity: 1; border-color: #0872b6; }

/* ---------- details ---------- */
.pd-description { font-size: 15px; line-height: 1.8; margin-bottom: 30px; }
.pd-facts {
    background: #fff;
    border-top: 4px solid #0872b6;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    padding: 28px;
    margin-bottom: 30px;
}
.pd-facts h5 {
    font-family: montserrat;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.pd-facts ul { list-style: none; margin: 0 0 22px; padding: 0; }
.pd-facts li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.pd-facts li span { color: #777; flex-shrink: 0; }
.pd-facts li strong { color: #222; text-align: right; font-weight: 600; }
.pd-cta {
    display: block;
    background: #0872b6;
    color: #fff !important;
    text-align: center;
    font-family: montserrat;
    font-weight: 600;
    padding: 12px 16px;
    transition: background .2s;
}
.pd-cta:hover { background: #065a91; }

/* ---------- related projects ---------- */
.pd-related { margin-top: 40px; border-top: 1px solid #eee; padding-top: 40px; }
.pd-related h4 { font-family: montserrat; font-weight: 700; margin-bottom: 24px; }
.pd-card { display: block; position: relative; margin-bottom: 30px; overflow: hidden; }
.pd-card-img { display: block; overflow: hidden; }
.pd-card-img img { width: 100%; height: 240px; object-fit: cover; transition: transform .5s; }
.pd-card:hover .pd-card-img img { transform: scale(1.06); }
.pd-card-name {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 18px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
    color: #fff;
    font-family: montserrat;
    font-weight: 600;
    font-size: 16px;
}
.pd-card-name small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    opacity: .85;
    margin-top: 4px;
}

/* ==========================================================
   projects.php - filter tabs + cards
   ========================================================== */
.pj-tabs {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.pj-tabs a {
    display: inline-block;
    border: 2px solid #0872b6;
    color: #0872b6;
    font-family: montserrat;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 20px;
    border-radius: 30px;
    transition: background .2s, color .2s;
}
.pj-tabs a span {
    display: inline-block;
    min-width: 22px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(8, 114, 182, .12);
    font-size: 12px;
    line-height: 20px;
}
.pj-tabs a:hover, .pj-tabs a.active { background: #0872b6; color: #fff; }
.pj-tabs a:hover span, .pj-tabs a.active span { background: rgba(255, 255, 255, .25); }

.pj-card {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
    margin-bottom: 30px;
    transition: box-shadow .3s, transform .3s;
}
.pj-card:hover { box-shadow: 0 12px 34px rgba(0, 0, 0, .14); transform: translateY(-4px); }
.pj-card-img { display: block; position: relative; overflow: hidden; }
.pj-card-img img { display: block; width: 100%; height: 230px; object-fit: cover; transition: transform .5s; }
.pj-card:hover .pj-card-img img { transform: scale(1.06); }
.pj-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #0872b6;
    color: #fff;
    font-family: montserrat;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
}
.pj-badge.pj-completed { background: #1f9d55; }
.pj-card-body { padding: 22px 24px 24px;  height: 280px;}
.pj-card-body h5 { font-family: montserrat; font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.pj-card-body h5 a { color: #222; }
.pj-card-body h5 a:hover { color: #0872b6; }
.pj-config { color: #0872b6; font-weight: 600; font-size: 14px; margin: 0 0 14px; }
.pj-meta { list-style: none; margin: 0 0 18px; padding: 0; }
.pj-meta li { font-size: 14px; color: #555; padding: 4px 0; }
.pj-meta .fa { width: 18px; color: #0872b6; text-align: center; margin-right: 6px; }
.pj-more {
    font-family: montserrat;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #0872b6;
}
.pj-more .fa { margin-left: 6px; transition: margin .2s; }
.pj-more:hover .fa { margin-left: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .pd-slider .pd-slide img { height: 460px; }
    .pd-title { font-size: 34px; }
}
@media (max-width: 767px) {
    .pd-slider .pd-slide img { height: 340px; }
    .pd-caption { padding-bottom: 28px; }
    .pd-title { font-size: 24px; }
    .pd-meta { font-size: 13px; margin-top: 10px; }
    .pd-meta li { width: 100%; padding: 2px 0; }
    .pd-meta li + li::before { display: none; }
    .pd-crumbs { display: none; }
    .pd-tag { font-size: 10px; padding: 4px 8px; margin-bottom: 10px; }
    .pd-arrow { width: 38px; height: 38px; margin-top: -19px; font-size: 22px; line-height: 32px; top: 28%; }
    .pd-prev { left: 10px; }
    .pd-next { right: 10px; }
    .pd-counter { top: 12px; bottom: auto; right: 12px; font-size: 12px; }
    .pd-thumbs .pd-thumb img { height: 60px; }
}
