/* ==========================================================================
   ONETOMAX AGENCY - PROJECT DETAIL PAGE STYLESHEET (MATCH REFERENCE LAYOUT)
   ========================================================================== */

/* Main Container */
.project-page-main {
    background: #ffffff;
    padding-top: 25px;
    padding-bottom: 70px;
    min-height: 80vh;
}

/* Breadcrumbs Navigation */
.project-breadcrumb-clean {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.project-breadcrumb-clean a { color: #64748b; text-decoration: none; transition: color 0.2s ease; }

.project-breadcrumb-clean a:hover { color: #0080e1; }

.project-breadcrumb-clean .sep { color: #cbd5e1; }

.project-breadcrumb-clean .current { color: #1e293b; font-weight: 600; }

/* 2-Column Detail Layout */
.project-detail-layout {
    display: grid;
    grid-template-columns: 1fr 315px;
    gap: 36px;
    align-items: start;
    margin-bottom: 60px;
}

/* Left Column: Main Article */
.project-main-article { min-width: 0; }

/* Featured Banner Box with Floating Date Badge */
.project-featured-wrapper {
    position: relative;
    margin-bottom: 24px;
    border-radius: 4px;
    overflow: visible;
}

.project-date-badge {
    position: absolute;
    top: 15px;
    left: -10px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 5px 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
    user-select: none;
}

.project-date-badge .p-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
}

.project-date-badge .p-month {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555555;
    margin-top: 2px;
}

.project-featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Callout Quote with Left Vertical Line */
.project-callout-quote {
    border-left: 2px solid #333333;
    padding: 8px 0 8px 22px;
    margin: 24px 0 20px;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.75;
    color: #444444;
}

.project-callout-quote strong { font-weight: 700; font-style: italic; color: #111111; }

/* Project Quick Meta Lines */
.project-meta-lines {
    margin: 20px 0 32px;
    font-size: 0.98rem;
    line-height: 1.85;
    color: #334155;
}

.project-meta-lines .meta-row { margin-bottom: 6px; }

.project-meta-lines strong { color: #0f172a; font-weight: 700; }

/* Case Study Narrative */
.project-narrative-content { font-size: 1.02rem; line-height: 1.8; color: #475569; }

.p-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin: 32px 0 14px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.project-narrative-content p { margin-bottom: 18px; }

/* Impact Results Strip */
.project-results-strip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin: 30px 0;
}

.results-strip-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0080e1;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

.result-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.r-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0080e1;
    line-height: 1.1;
    margin-bottom: 4px;
}

.r-lbl { font-size: 0.82rem; color: #64748b; font-weight: 600; }

/* Scope of Work Box */
.project-scope-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
    padding: 18px;
    background: #fafaf9;
    border-radius: 8px;
    border: 1px solid #e7e5e4;
}

.scope-label { font-weight: 700; color: #1c1917; font-size: 0.95rem; }

.scope-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.scope-tag-item {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}

/* Share & Tags Bar */
.project-share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    margin-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.p-tags-group, .p-share-group { display: flex; align-items: center; gap: 8px; }

.tag-title, .share-title { font-weight: 700; font-size: 0.9rem; color: #475569; }

.tag-link {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.82rem;
    padding: 3px 10px;
    border-radius: 4px;
}

.btn-share-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.btn-share-icon:hover { transform: translateY(-2px); }

.btn-share-icon.fb { background: #1877f2; }
.btn-share-icon.linkedin { background: #0a66c2; }
.btn-share-icon.copy { background: #475569; }

/* Right Column: Sticky Sidebar Card */
.project-sidebar { min-width: 0; }

.project-info-card {
    background: #ffffff;
    border-radius: 6px;
    border-top: 4px solid #0080e1;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    padding: 24px 22px;
    position: sticky;
    top: 90px;
}

.project-info-title {
    color: #0080e1;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

.project-info-list { list-style: none; padding: 0; margin: 0; }

.project-info-item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }

.project-info-item:last-child { border-bottom: none; padding-bottom: 0; }

.project-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.project-info-icon {
    color: #0080e1;
    font-size: 1.15rem;
    width: 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.project-info-value {
    padding-left: 32px;
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.5;
}

.project-info-value a {
    color: #0080e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    word-break: break-all;
}

.project-info-value a:hover { color: #005bb8; text-decoration: underline; }

/* Sidebar Consultation Action Box */
.project-sidebar-action {
    margin-top: 24px;
    padding: 18px;
    background: #f0f7fe;
    border: 1px dashed rgba(0, 128, 225, 0.4);
    border-radius: 6px;
    text-align: center;
}

.project-sidebar-action h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0080e1;
    margin: 0 0 8px;
    line-height: 1.4;
}

.project-sidebar-action p {
    font-size: 0.86rem;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.5;
}

.btn-sidebar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0080e1;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 128, 225, 0.3);
    transition: all 0.25s ease;
}

.btn-sidebar-cta:hover {
    background: #0066b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 128, 225, 0.4);
    color: #ffffff;
}

/* Related Projects Section */
.related-projects-section { padding: 60px 0 20px; border-top: 1px solid #f1f5f9; margin-top: 40px; }

.related-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 28px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.related-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); }

.related-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.related-card:hover .related-img img { transform: scale(1.05); }

.related-info { padding: 14px 16px; }

.related-info span {
    display: block;
    font-size: 0.78rem;
    color: #0080e1;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.related-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .project-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
.project-sidebar .project-info-card { position: static; }
.results-grid { grid-template-columns: repeat(2, 1fr); }
.related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .project-date-badge {
        left: 8px;
        top: 8px;
    }
.results-grid { grid-template-columns: 1fr; }
.related-grid { grid-template-columns: 1fr; }
.project-share-bar { flex-direction: column; align-items: flex-start; }
}
