/* Projects listing page styles (migrated from inline styles). */
.projects-filter-wrap {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.projects-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.projects-filter-pill {
    padding: 8px 20px;
    border-radius: 30px;
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid #ddd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    font-size: var(--type-label);
}

.projects-filter-pill.is-active {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

.project-grid-horizontal {
    display: grid;
    gap: 28px;
}

.project-block-horizontal {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(14, 27, 43, 0.06);
}

.project-image-left {
    min-height: 100%;
}

.project-image-left img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.project-details-right {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.project-details-right h3 {
    margin: 0 0 10px;
    color: #0f1723;
}

.project-details-right p {
    margin: 0;
    color: #5f6b7a;
    font-size: var(--type-body);
    line-height: 1.8;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.project-meta-item {
    background: #f6f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-size: var(--type-label);
    color: #3a4655;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fd7801;
    font-weight: 700;
    text-decoration: none;
}

.project-cta:hover {
    color: #c65b00;
}

.project-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.project-category-pill {
    display: inline-flex;
    align-items: center;
    background: #fff4ea;
    color: #fd7801;
    border: 1px solid #fdd5ab;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.875rem;
    font-size: var(--type-label);
    font-weight: 700;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    text-decoration: none;
}

.project-category-pill:hover {
    background: #ffe7ca;
    color: #b14d00;
}

.project-tag-pill {
    display: inline-flex;
    align-items: center;
    background: #f4f8ff;
    color: #2f4f84;
    border: 1px solid #d4e2ff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.875rem;
    font-size: var(--type-label);
    font-weight: 700;
    text-decoration: none;
}

.project-tag-pill:hover {
    background: #e9f1ff;
    color: #163665;
}

.project-location-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    font-size: var(--type-label);
    color: #5f6b7a;
    font-weight: 500;
}

.project-cta-wrap {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .project-block-horizontal {
        grid-template-columns: 1fr;
    }

    .project-image-left img {
        min-height: 220px;
    }
}

/* ============================================================================
   PROJECT DETAIL PAGE
   ============================================================================ */

/* Replaces inline style="text-decoration:none;color:inherit;" on project cards */
.proj-card-link {
    text-decoration: none;
    color: inherit;
}

.project-detail-hero {
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
    padding: var(--public-hero-padding-top) 0 var(--public-hero-padding-bottom);
    color: var(--hero-text-title);
}

.project-detail-hero h1 {
    font-size: var(--public-hero-detail-title-size) !important;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--hero-text-title);
}

.project-detail-hero p {
    color: var(--hero-text-body);
    font-size: var(--public-hero-body-size) !important;
    line-height: 1.8;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    font-size: var(--type-label);
    line-height: 1.35;
    margin-bottom: 30px;
    transition: gap var(--transition) ease;
}

.back-link:hover {
    gap: 12px;
    color: var(--brand-accent);
}

.project-image-section img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 50px;
    max-height: 500px;
    object-fit: cover;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.info-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--brand-accent);
}

.info-item strong {
    display: block;
    color: var(--brand-dark);
    font-size: var(--type-meta);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps-strong);
    margin-bottom: 8px;
}

.info-item span {
    color: var(--color-body);
    font-size: var(--type-body);
    font-weight: 600;
}

.project-section {
    margin: 50px 0;
}

.project-section > div h1,
.project-section > div h2,
.project-section > div h3,
.project-section > div h4 {
    color: var(--brand-dark);
    line-height: 1.35;
    margin-top: 0;
}

.project-section > div h1 {
    font-size: var(--type-h1);
}

.project-section > div h2 {
    font-size: var(--type-h2);
}

.project-section > div h3 {
    font-size: var(--type-h3);
}

.project-section > div p,
.project-section > div li,
.project-section > div span {
    color: #425066;
    font-size: var(--type-body);
    line-height: 1.85;
}

.project-section h2 {
    font-size: var(--type-h2);
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 20px;
}

.project-detail-quick-answer .ai-answer-block__title {
    font-size: var(--type-label) !important;
    margin-bottom: 8px;
}

.project-detail-quick-answer .ai-answer-block__text {
    font-size: var(--type-body-sm) !important;
    line-height: 1.7;
    font-weight: 500;
    color: var(--color-title);
}

.project-summary-block {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-surface-soft-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.project-summary-block h2 {
    font-size: var(--type-h2);
    margin-bottom: 14px;
}

.project-summary-block p {
    margin: 0;
    color: var(--color-title);
    line-height: 1.85;
    font-size: var(--type-body);
}

.project-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-highlight-card {
    background: #ffffff;
    border: 1px solid #e7eef6;
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.project-highlight-card h3 {
    font-size: var(--type-title-md);
    margin: 0 0 12px;
    color: var(--brand-dark);
    font-weight: 800;
}

.project-highlight-card p {
    margin: 0;
    color: #3f4a5a;
    line-height: 1.75;
}

.project-link-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-link-chip {
    display: inline-flex;
    align-items: center;
    background: #fff6eb;
    border: 1px solid #ffd6ab;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-size: var(--type-label);
    font-weight: 700;
    color: #b85400;
    text-decoration: none;
    transition: all 0.2s ease;
}

.project-link-chip:hover {
    background: #ffe8cf;
    color: #8f4100;
}

.project-faq-list {
    display: grid;
    gap: 16px;
}

.project-faq-item {
    background: #ffffff;
    border: 1px solid #ebedf2;
    border-radius: var(--radius-md);
    padding: 20px 22px;
}

.project-faq-item h3 {
    margin: 0 0 10px;
    font-size: var(--type-h3);
    font-weight: 800;
    color: var(--brand-dark);
}

.project-faq-item p {
    margin: 0;
    color: #455163;
    line-height: 1.8;
}

.challenge-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.challenge-box,
.solution-box {
    padding: 30px;
    border-radius: var(--radius-md);
}

.challenge-box {
    background: #fff5f5;
    border: 1px solid #ffc5c5;
}

.challenge-box h3 {
    color: #c0392b;
}

.solution-box {
    background: #f0fff4;
    border: 1px solid #a8e6b8;
}

.solution-box h3 {
    color: #27ae60;
}

.challenge-box h3,
.solution-box h3 {
    font-size: var(--type-title-md);
    font-weight: 700;
    margin-bottom: 15px;
}

.challenge-box ul,
.solution-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.challenge-box ul li,
.solution-box ul li {
    margin-bottom: 10px;
    color: var(--color-body);
    line-height: 1.6;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    text-align: center;
    background: var(--brand-dark);
    color: var(--hero-text-title);
    padding: 40px 20px;
    border-radius: var(--radius-md);
}

.result-card .number {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--brand-accent);
    margin-bottom: 10px;
}

.result-card p {
    color: var(--hero-text-muted);
    font-size: 0.875rem;
    font-size: var(--type-label);
    margin: 0;
}

.related-projects-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.related-projects-scroll::-webkit-scrollbar {
    height: 5px;
}

.related-projects-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.related-projects-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-accent);
    border-radius: 4px;
}

.related-project-card {
    flex: 0 0 220px;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e8edf3;
    transition: box-shadow 0.25s, transform 0.25s;
    display: block;
    background: #fff;
}

.related-project-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    color: inherit;
}

.related-project-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.related-project-card .p-wrap {
    padding: 10px 12px;
}

.related-project-card h6 {
    margin: 0;
    font-size: var(--type-body);
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.35;
}

.related-project-card .meta {
    margin-top: 5px;
    font-size: 0.875rem;
    font-size: var(--type-label);
    color: #6c757d;
}

@media (max-width: 768px) {
    .project-info-grid       { grid-template-columns: 1fr 1fr; }
    .challenge-solution      { grid-template-columns: 1fr !important; }
    .project-highlight-grid  { grid-template-columns: 1fr; }
    .project-detail-hero     { padding: var(--public-hero-padding-top-mobile) 0 var(--public-hero-padding-bottom-mobile); }
    .project-detail-hero h1  { font-size: clamp(1.25rem, 4vw, 1.45rem) !important; }
    .results-grid            { grid-template-columns: repeat(2, 1fr); }
    .project-detail-quick-answer .ai-answer-block__text { font-size: 0.9rem !important; }
    .project-summary-block { padding: 20px; }
}

@media (max-width: 480px) {
    .project-info-grid { grid-template-columns: 1fr; }
}

/* Projects listing top spacing */
.projects-listing-section {
    padding-top: 80px !important;
}
.projects-listing-section.has-filters {
    padding-top: 40px !important;
}

/* Related Services & Industries cards styling overrides */
.project-related-hubs h2 {
    font-size: clamp(1.3rem, 1.8vw, 1.5rem) !important;
    font-weight: 800;
}
.project-related-hubs h3 {
    font-size: clamp(1.05rem, 1.3vw, 1.15rem) !important;
    font-weight: 700;
}
.project-related-hubs h4 {
    font-size: clamp(0.9rem, 1.1vw, 0.95rem) !important;
    font-weight: 700;
}
.project-related-hubs p.text-muted {
    font-size: 0.8rem !important;
    line-height: 1.55;
}
