/* ==========================================================================
   ONETOMAX AGENCY - PROJECTS ARCHIVE & PORTFOLIO STYLESHEET
   ========================================================================== */

.projects-archive-main {
    background: #f8fafc;
    min-height: 85vh;
}

/* Archive Hero Banner */
.archive-hero-banner {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    padding: 30px 0 45px;
    border-bottom: 1px solid #e2e8f0;
}

.archive-hero-content {
    max-width: 860px;
    margin: 15px auto 0;
    text-align: center;
}

.archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f3fc;
    border: 1px solid #bae0fd;
    color: #0080e1;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.archive-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.archive-hero-desc {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 24px;
}

.archive-quick-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.stat-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-pill i {
    color: #0080e1;
    margin-right: 6px;
}

.stat-pill strong {
    color: #0f172a;
    font-weight: 800;
}

/* Filter Bar */
.archive-listing-section {
    padding: 50px 0 70px;
}

.archive-filter-bar {
    margin-bottom: 40px;
}

.archive-filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tab-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.filter-tab-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.filter-tab-btn.active {
    background: #0080e1;
    border-color: #0080e1;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 128, 225, 0.35);
}

/* Projects Grid */
.archive-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.archive-project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

/* Card Thumbnail */
.p-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: block;
    background: #e2e8f0;
}

.p-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.archive-project-card:hover .p-card-thumb {
    transform: scale(1.06);
}

.p-card-cat-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p-card-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 3px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.p-card-date-badge .d-day {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.p-card-date-badge .d-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

/* Card Body */
.p-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.p-card-client {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0080e1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 10px;
}

.p-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.p-card-title a:hover {
    color: #0080e1;
}

.p-card-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}

/* Metric Pill */
.p-card-metric-pill {
    background: #f0f7fe;
    border: 1px solid #bae0fd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #00569e;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.p-card-metric-pill strong {
    font-size: 0.95rem;
    color: #0080e1;
}

/* Card Footer */
.p-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.btn-card-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0080e1;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-card-detail:hover {
    color: #0066b3;
    transform: translateX(4px);
}

/* Bottom Consultation CTA */
.archive-bottom-cta {
    padding-bottom: 70px;
}

.bottom-cta-box {
    background: linear-gradient(135deg, #00569e 0%, #006ec4 50%, #0080e1 100%);
    border-radius: 16px;
    padding: 45px 50px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 16px 40px rgba(0, 128, 225, 0.25);
}

.bottom-cta-box h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}

.bottom-cta-box p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.btn-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-cta-phone:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-cta-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0080e1;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.btn-cta-submit:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .archive-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bottom-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
    }
}

@media (max-width: 640px) {
    .archive-hero-title {
        font-size: 1.9rem;
    }
    .archive-projects-grid {
        grid-template-columns: 1fr;
    }
    .filter-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-cta-phone, .btn-cta-submit {
        width: 100%;
        justify-content: center;
    }
}
