/* Container and Base Elements */
.project-listing-container {max-width: 1700px;margin: 0 auto;padding: 20px;}

/* Header Section: Count & Sort */
.project-listing-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 35px;border-bottom: 1px solid #f1f5f9;padding-bottom: 20px;}
.project-count {color: #6b7a8d;font-size: 14px;font-weight: 600;text-transform: lowercase;}
.project-count-number {font-size: 14px;margin-right: 4px;}
.project-sorting {display: flex;align-items: center;gap: 10px;}
.sort-by-label {font-size: 14px;font-weight: 500;color: #3c5266;}
.project-sort-dropdown-wrap {position: relative;display: inline-block;}
.project-sort-select {appearance: none;-webkit-appearance: none;-moz-appearance: none;background-color: #ffffff;border: 1px solid #e2e8f0;
border-radius: 8px;padding: 8px 36px 8px 16px;font-size: 14px;font-weight: 600;color: #003060;cursor: pointer;outline: none;transition: all 0.2s ease;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B3D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
background-repeat: no-repeat;background-position: right 12px center;background-size: 14px;}
.project-sort-select:hover, .project-sort-select:focus {border-color: #cbd5e1;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);}

/* Grid Layout */
.project-grid {display: grid;grid-template-columns: repeat(3, 1fr);gap: 30px;margin-bottom: 40px;}

/* Project Card Styles */
.project-card {background: #ffffff;border-radius: 16px;overflow: hidden;box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);border: 1px solid rgba(226, 232, 240, 0.6);display: flex;flex-direction: column;height: 100%;transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);}
.project-card:hover {transform: translateY(-6px);box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);}

/* Image section & Badge override */
.project-card-image-wrap {position: relative;width: 100%;aspect-ratio: 1.6;overflow: hidden;background-color: #f1f5f9;}
.project-card-image {width: 100%;height: 100% !important;object-fit: cover;transition: transform 0.5s ease;display: block;}
.project-card:hover .project-card-image {transform: scale(1.04);}
.project-card-placeholder-image {width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;background-color: #e2e8f0;color: #94a3b8;}
.project-card-placeholder-image .dashicons {font-size: 48px;width: 48px;height: 48px;}
.project-card-badge {position: absolute;top: 16px;left: 16px;background-color: #0b1b3d;color: #ffffff;padding: 6px 14px;border-radius: 30px;font-size: 10px;font-weight: 700;text-transform: uppercase;letter-spacing: 0.5px;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);pointer-events: none;z-index: 5;}

/* Content block styling */
.project-card-content {padding: 24px;display: flex;flex-direction: column;flex-grow: 1;}
.project-card-title {margin: 0 0 12px 0;font-size: 19px;line-height: 1.4;font-weight: 700;}
.project-card-title a {color: #003060;font-size: 18px;font-weight: 600;text-decoration: none;transition: color 0.2s ease;}
.project-card-title a:hover {color: #0088cc;}
.project-card-description {font-size: 14px;line-height: 1.6;color: #5a6a85;margin-bottom: 20px;flex-grow: 1;}
.project-card-description p {margin: 0;display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;color: #6b7a8d;font-size: 13px;line-height: 1.55;}
.project-card-date {font-size: 12px;font-weight: 700;color: #009cd9;margin-top: auto;}

/* Custom Pagination styles */
.project-pagination {display: flex;justify-content: center;align-items: center;gap: 8px;margin-top: 50px;}
.project-pagination .page-numbers {display: inline-flex;align-items: center;justify-content: center;width: 40px;height: 40px;border-radius: 10px;
border: 1px solid #e4ecf3;color: #5a6a85;font-size: 14px;font-weight: 700;text-decoration: none;transition: all 0.2s ease;}
.project-pagination .page-numbers:hover {border-color: #009cd9;background-color: #f8fafc;color: #009cd9;transform: translateY(-2px);}
.project-pagination .page-numbers.current {background-color: #009cd9;color: #ffffff !important;border-color: #009cd9;}
.project-pagination .page-numbers .dashicons {font-size: 14px;width: 14px;height: 14px;line-height: 14px;}

/* Empty/Not Found message layout */
.project-not-found {text-align: center;padding: 50px 0;color: #64748b;font-size: 16px;}

.ast-two-container .ast-container {display: block;max-width: 100%;padding: 0; }



/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
    .project-grid {grid-template-columns: repeat(2, 1fr);gap: 24px;}
    .project-listing-header {margin-bottom: 25px;}
}

@media screen and (max-width: 768px) {
    .project-grid {grid-template-columns: 1fr;gap: 24px;}
    .project-listing-header {flex-direction: column;align-items: flex-start;gap: 15px;}
    .project-sorting {width: 100%;justify-content: flex-start;}
    .project-sort-dropdown-wrap, .project-sort-select {width: 85%;}
    .project-card-title {font-size: 18px;}
    .project-listing-container {padding: 0;}
}

/* Single Project Page Styling */
.project-single-header {background-color: #0b1b3d;color: #ffffff;padding: 60px 0;text-align: center;}
.project-single-categories {font-size: 13px;text-transform: uppercase;font-weight: 700;color: #0088cc;letter-spacing: 1px;margin-bottom: 15px;}
.project-single-title {color: #ffffff;font-size: 36px;font-weight: 800;margin: 0 0 15px 0;line-height: 1.2;}
.project-single-meta {font-size: 14px;color: #94a3b8;}
.project-single-body {padding: 50px 0;background-color: #f8fafc;}
.project-single-featured-image {margin-bottom: 40px;border-radius: 16px;overflow: hidden;box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);}
.project-single-featured-image img {width: 100%;height: auto;display: block;}
.project-single-content {font-size: 16px;line-height: 1.8;color: #334155;}
.project-single-content p {margin-bottom: 24px;}
.project-single-footer {margin-top: 50px;border-top: 1px solid #e2e8f0;padding-top: 30px;}
.project-single-back-btn {display: inline-flex;align-items: center;gap: 8px;color: #0088cc;text-decoration: none;font-weight: 700;font-size: 14px;transition: color 0.2s ease;}
.project-single-back-btn:hover {color: #0b1b3d;}


/* Project Detail */

/* =========================================================
   PROJECT DETAIL PAGE
========================================================= */

.project-detail-page {background: #ffffff;color: #173f67;padding-top: 130px;}
.project-detail-container {width: auto;margin: 0 auto; overflow: visible;padding: 0 56px;}
.project-detail-meta svg {width: 15px;height: 15px;color: #009cd9;vertical-align: sub;}


/* =========================================================
   BREADCRUMB
========================================================= */

.project-breadcrumb {display: flex;align-items: center;gap: 10px;padding-top: 18px;margin-bottom: 28px;font-size: 13px;color: #7c91a6;}
.project-breadcrumb a {color: #009cd9;text-decoration: none;}
.project-breadcrumb a:hover {color: #003060;}

/* =========================================================
   HERO
========================================================= */

.project-detail-hero {display: grid;grid-template-columns: minmax(0, 1fr) minmax(400px, 0.8fr);gap: 60px;align-items: center;padding: 10px 0 60px;}
.project-detail-hero-content {max-width: 650px;}
.project-detail-title {margin: 0 0 18px;color: #003060;font-size: clamp(38px, 4vw, 52px);line-height: 1.08;font-weight: 300;}
.project-detail-short-description {color: #3c5266;font-size: 14px;line-height: 1.7;max-width: 650px;}
.project-detail-short-description p {margin: 0;}
.project-detail-meta {display: flex;flex-wrap: wrap;gap: 0;margin-top: 25px;padding-top: 17px;border-top: 1px solid #dce7ef;color: #55718a;
font-size: 11px;}
.project-detail-meta span {position: relative;padding-right: 18px;margin-right: 18px;}
.project-detail-meta strong {color: #174b76;margin-right: 5px;}
.project-detail-hero-image {width: 100%;}
.project-featured-image {display: block;width: 100%;height: 310px;object-fit: cover;border-radius: 12px;}
.project-detail-hero-content .project-card-description p {font-size: 14px;}

/* =========================================================
   MAIN CONTENT
========================================================= */

.project-detail-main {display: grid;grid-template-columns: minmax(0, 1fr) 432px;gap: 35px;padding-bottom: 75px;}
.project-detail-content {min-width: 0;}
.project-content-section {margin-bottom: 32px;}
.project-content-section h2,
.project-results-section h2 {margin: 0 0 13px;color: #174c7b;font-size: 22px;line-height: 1.3;font-weight: 400;}
.project-section-text {color: #526f88;font-size: 13px;line-height: 1.75;}
.project-section-text p {margin: 0 0 12px;}
.project-section-text p:last-child {margin-bottom: 0;}

/* =========================================================
   SIDEBAR
========================================================= */

.project-detail-sidebar {position: relative;}
.project-details-card {padding: 24px;border: 1px solid #e4ecf3;border-radius: 16px;background: #f6fafd;}
.project-details-card h3 {margin: 0 0 12px;color: #003060;font-size: 15px;font-weight: 700;}
.project-detail-row {display: flex;align-items: flex-start;justify-content: space-between;gap: 15px;padding: 12px 0;border-bottom: 1px dotted #cddae4;font-size: 11px;}
.project-detail-row:last-child {border-bottom: 0;}
.project-detail-row span {color: #6b7a8d;font-size: 13.5px;}
.project-detail-row strong {max-width: 150px;color: #003060;text-align: right;font-weight: 600;font-size: 13.5px;}

/* =========================================================
   CTA
========================================================= */

.project-detail-cta {margin-top: 15px;padding: 24px;border-radius: 16px;background: linear-gradient(135deg, var(--primary-blue) 0%, #014a82 100%);}
.project-detail-cta h3 {margin: 0 0 10px;color: #ffffff;font-size: 15px;font-weight: 700;}
.project-detail-cta p {margin: 0 0 17px;color: rgba(255,255,255,.78);font-size: 13.5px;line-height: 1.6;}
.project-cta-button {display: flex;align-items: center;justify-content: center;width: 100%;padding: 12px 24px;border-radius: 8px;background: #009cd9;color: #ffffff;font-size: 16px;font-weight: 500;text-decoration: none;box-shadow: 0 10px 24px rgba(0, 156, 217, .24);gap: 10px;}
.project-cta-button span {font-size: 18px;}
.project-cta-button:hover {background: #009cd9;color: #ffffff;opacity: 0.9;transform: translateY(-2px);box-shadow: 0 14px 30px rgba(0, 48, 96, .24);}

.project-detail-content h3 {color: #003060;font-size: clamp(21px,2.2vw,26px);margin: 34px 0 14px;font-weight: 300;}
.project-detail-content p {color: #3c5266;font-size: 15px;margin: 0 0 4px;line-height: 1.7;}
.project-detail-content ul li {color: #3c5266;font-size: 15px;margin: 0 0 4px;line-height: 1.7;}
.project-detail-content ul {list-style: none;margin: 0;padding: 0;}
.project-detail-content ul li {position: relative;padding-left: 26px;}
.project-detail-content ul li::before {content: "";position: absolute;left: 0;top: 8px;width: 9px;height: 9px;border-radius: 50%;background: #009cd9;}
.pd-stats {display: grid;grid-template-columns: repeat(4, 1fr);gap: 16px;margin: 8px 0 20px;}
.pd-stat {background: #f6fafd;border: 1px solid #e4ecf3;border-radius: 14px;padding: 18px 16px;display: flex;flex-direction: column;gap: 4px;}
.pd-stat span {font-size: clamp(20px, 2.4vw, 26px);font-weight: 700;color: #003060;}

/* =========================================================
   RECENT PROJECTS
========================================================= */

.project-recent-section {padding: 70px 0 80px;background: #f5f9fc;}
.project-recent-heading {margin-bottom: 30px;}
.project-section-eyebrow {display: block;margin-bottom: 12px;color: #0096d5;font-size: 10px;font-weight: 700;letter-spacing: 2px;}
.project-recent-heading h2 {margin: 0 0 10px;color: #174c7b;font-size: 30px;line-height: 1.2;font-weight: 400;}
.project-recent-heading p {margin: 0;color: #7790a5;font-size: 13px;}
.project-section-eyebrow {display: inline-block;font-size: 14px;font-weight: 600;letter-spacing: 2.2px;text-transform: uppercase;color: #009cd9;margin-bottom: 20px;}
.project-recent-heading h2 {font-size: 38px;line-height: 1.15;font-weight: 300;letter-spacing: -.5px;color: #003060;}
.project-recent-heading p {font-size: clamp(18px, 2vw, 22px);line-height: 1.5;font-weight: 300;color: #3c5266;}

.cta { background: #f6fafd; padding-block: clamp(40px,6vw,80px); }
.project-detail-cta-wrap .cta-inner { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(44px,6vw,72px);
  background: linear-gradient(120deg,#e9f5fd 0%,#e5f0fa 60%,#eaf4fc 100%); border: 1px solid #e4ecf3;
  display: grid; grid-template-columns: 1.5fr auto; gap: 40px; align-items: center;
  max-width: 1100px; margin: 0 auto; }
.project-detail-cta-wrap .cta-inner h2 { max-width: 600px; }
.project-detail-cta-wrap .cta-inner p { color: #3c5266; margin-top: 14px; max-width: 520px; font-size: 18px; }
.project-detail-cta-wrap .cta-inner .cta-actions { margin-top: 28px; display: flex; gap: 20px; flex-wrap: wrap;}
.project-detail-cta-wrap .cta-lines { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: 26px; opacity: .9; }
.project-detail-cta-wrap .cta-lines .licon {color: #009cd9;} 
.project-detail-cta-wrap .cta-lines .licon svg { width: 46px; height: 46px; stroke-width: 1.3; }
.project-detail-cta-wrap {position: relative;}
.project-detail-cta-wrap::before {content: "";position: absolute;z-index: 0;pointer-events: none;inset: 0;
background: url(/wp-content/uploads/2026/08/bottom-bg-wave-image.png) no-repeat center center;ackground-size: cover;opacity: .3;
-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);}
.project-detail-cta-wrap .wrap {width: 100%;margin: 0 auto;}
.project-detail-cta-wrap .cta-inner {max-width:1100px;}
.project-detail-cta-wrap .cta-inner h2 {font-family: 'Calibri', sans-serif !important;font-size: 38px;line-height: 1.15;font-weight: 300;letter-spacing: -.5px;color: #003060;}
.project-detail-cta-wrap .cta-inner p {font-family: 'Calibri', sans-serif !important;color: #3c5266;margin-top: 14px;max-width: 520px;font-size: 18px;}
.project-detail-cta-wrap .cta-inner a.btn.btn-primary {display: flex;align-items: center;justify-content: center;padding: 12px 24px;border-radius: 8px;background: #009cd9;color: #ffffff;font-size: 16px;font-weight: 500;text-decoration: none;box-shadow: 0 10px 24px rgba(0, 156, 217, .24);gap: 10px;}
.project-detail-cta-wrap .cta-inner > * {position: relative !important;z-index: 1;}


/* =========================================================
   RECENT PROJECT GRID
========================================================= */

.project-recent-grid {display: grid;grid-template-columns: repeat(3, 1fr);gap: 20px;}
.project-recent-card {overflow: hidden;border-radius: 12px;background: #ffffff;box-shadow: 0 12px 30px rgba(22, 62, 91, 0.10);}
.project-recent-image {position: relative;display: block;overflow: hidden;}
.project-recent-image img {display: block;width: 100%;height: 100%;object-fit: cover;transition: transform 0.35s ease;}
.project-recent-card:hover.project-recent-image img {transform: scale(1.04);}
.project-category-badge {position: absolute;top: 13px;left: 13px;padding: 7px 11px;border-radius: 20px;background: #063f6b;color: #ffffff;font-size: 8px;line-height: 1;font-weight: 700;text-transform: uppercase;}
.project-recent-card-content {padding: 18px 17px 20px;}
.project-recent-card-content h3 {margin: 0 0 8px;font-size: 14px;line-height: 1.4;}
.project-recent-card-content h3 a {color: #064576;text-decoration: none;}
.project-recent-card-content p {margin: 0 0 14px;color: #688198;font-size: 13px;line-height: 1.6;}
.project-recent-date {font-size: 12px;font-weight: 700;color: #009cd9;margin-top: auto;}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {
    .project-detail-container {padding: 0 35px;}
}

@media (max-width: 991px) {

    .project-detail-hero {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .project-detail-main {
        grid-template-columns: 1fr;
    }

    .project-detail-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .project-detail-cta {
        margin-top: 0;
    }

    .project-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {
    .project-detail-cta-wrap {position: relative;padding: 6vw 20px;}
}


@media (max-width: 767px) {

    .project-breadcrumb {
        margin-bottom: 20px;
        font-size: 10px;
        flex-wrap: wrap;
    }

    .project-detail-hero {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 45px;
    }

    .project-detail-title {
        font-size: 38px;
    }

    .project-detail-short-description {
        font-size: 13px;
    }

    .project-detail-meta {
        display: block;
    }

    .project-detail-meta span {
        display: inline-block;
        margin-bottom: 8px;
    }

    .project-detail-hero-image {
        order: 2;
    }

    .project-featured-image {
        height: 250px;
    }

    .project-detail-main {
        display: block;
        padding-bottom: 50px;
    }

    .project-detail-sidebar {
        display: block;
        margin-top: 40px;
    }

    .project-detail-cta {
        margin-top: 15px;
    }

    .project-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-recent-section {
        padding: 50px 0 60px;
    }

    .project-recent-grid {
        grid-template-columns: 1fr;
    }

    .pd-stats {grid-template-columns: repeat(2, 1fr);}
    .project-detail-container {padding: 0 20px;}

}


@media (max-width: 640px) {
    .project-detail-cta-wrap .cta-inner {grid-template-columns: 1fr;gap: 20px;}
    .project-detail-cta-wrap .cta-lines {display:flex;right:0px;margin-top: 10px;}
}

@media (max-width: 550px) {
    .pd-stats {grid-template-columns: repeat(1, 1fr);}
}

@media (max-width: 480px) {

    .project-detail-title {
        font-size: 32px;
    }

    .project-featured-image {
        height: 220px;
    }

    .project-results-grid {
        grid-template-columns: 1fr;
    }

    .project-result-card {
        min-height: auto;
    }

}