/**
 * Project Detail Page Styles
 * Contains all styles for the project detail page
 */

:root {
    --primary-blue: #0D2137;
    --accent-orange: #FF5E3A;
    --hover-orange: #E8512F;
    --modern-gray: #F4F5F7;
    --primary-orange: #FF5E3A;
}

/* Animations */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(220, 53, 69, 0));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 2px 8px rgba(220, 53, 69, 0.4));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(220, 53, 69, 0));
    }
}

.heart-pulse {
    animation: heartPulse 2s infinite ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(220, 53, 69, 0.2));
}

/* Sidebar Components */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.consultant-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #eee;
}

.sidebar-nav-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    color: var(--text-light);
    text-align: left;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.sidebar-nav-btn:hover {
    background: #f8f9fa;
    color: var(--primary-orange);
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #eee;
    font-weight: 500;
}

.sidebar-menu-item.active {
    background: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
}

.sidebar-menu-item i {
    width: 24px;
    margin-right: 10px;
}

.sidebar-menu-item:hover:not(.active) {
    background: #f8f9fa;
    color: var(--primary-orange);
}

/* Main Content */
.main-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 0;
}

.project-location {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.project-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Stats */
.stat-icon-circle {
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin: 0 auto 10px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}

.stat-value {
    font-size: 0.85rem;
    color: var(--primary-orange);
    font-weight: 600;
}

/* Feature Checks */
.feature-check {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.feature-check i {
    color: #ccc;
    margin-right: 8px;
    margin-top: 3px;
    font-size: 0.8rem;
}

.top-buttons .btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
}

/* Contractor Info */
.contractor-info {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.contractor-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #eee;
}

.contractor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contractor-type {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Request Info Button */
.request-info-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
}

.request-info-btn:hover {
    background: #e63900;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

/* Documents Section */
.documents-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.documents-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.documents-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.document-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f8f9fa;
    color: var(--text-light);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    cursor: pointer;
}

.document-tab.active {
    background: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
}

.document-tab:hover:not(.active) {
    background: #e9ecef;
    color: var(--text-dark);
}

.document-content {
    display: none;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.document-content.active {
    display: block;
}

/* Iskan Certificate Card */
.iskan-certificate-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.iskan-certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.15);
}

.iskan-certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.certificate-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.certificate-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 12px;
    color: #28a745;
    font-size: 1.5rem;
}

.check-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 1rem;
    color: #28a745;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
}

.certificate-title {
    display: flex;
    flex-direction: column;
}

.certificate-title small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}

.certificate-title strong {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.2;
}

.certificate-body {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.date-row {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.date-row i {
    color: #28a745;
}

.verification-badge {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
}

.certificate-footer {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
    text-align: center;
}

/* Modal Styles */
.project-info-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.project-info-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-in-out;
}

.project-info-modal-header {
    background: linear-gradient(135deg, var(--primary-orange), #e67e22);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
}

.project-info-modal-header h5 {
    margin: 0;
    font-weight: 600;
}

.project-info-modal-header .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.project-info-modal-header .btn-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.project-info-modal-body {
    padding: 25px;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .project-info-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        border-radius: 8px;
    }

    .project-info-modal-header {
        padding: 15px 20px;
        border-radius: 8px 8px 0 0;
    }

    .project-info-modal-body {
        padding: 20px 15px;
    }

    .project-info-modal-header h5 {
        font-size: 16px;
    }
}

/* Fixed Action Bar */
.fixed-action-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1040;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fixed-action-spacer {
    display: block !important;
}

/* Sticky Button Styles Redesigned */
.btn-favorite-sticky {
    flex: 1 1 0;
    max-width: 50%;
    height: auto;
    min-height: 60px;
    border-radius: 12px;
    border: none;
    background: #6a2c91;
    /* Purple */
    color: white;
    display: flex;
    align-items: center;
    /* Center Vertically */
    justify-content: flex-start;
    /* Align Left */
    padding: 8px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(106, 44, 145, 0.2);
}

.btn-favorite-sticky:hover {
    background: #5a247a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(106, 44, 145, 0.3);
    color: white;
}

.favorite-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-favorite-sticky .favorite-icon {
    font-size: 2rem;
    color: #e31e24;
    /* Red Heart */
    margin: 0;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.btn-favorite-sticky .favorite-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: left;
}

.btn-favorite-sticky .favorite-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1.2;
    border-left: none;
    /* Remove border */
    padding-left: 8px;
    text-align: center;
    /* Center the text */
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

@media (max-width: 576px) {

    .btn-favorite-sticky,
    .btn-request-sticky {
        padding: 5px 4px;
        /* Reduced padding */
    }

    .btn-favorite-sticky .favorite-icon {
        font-size: 1.4rem;
    }

    .btn-request-sticky .request-icon {
        font-size: 1rem;
    }

    .request-icon-wrapper {
        width: 28px;
        height: 26px;
    }

    .btn-favorite-sticky .favorite-text,
    .btn-request-sticky .request-text {
        font-size: 0.65rem;
        /* Slightly smaller */
        letter-spacing: -0.3px;
        /* Tighter letter spacing */
    }

    .btn-favorite-sticky .favorite-desc,
    .btn-request-sticky .request-desc {
        font-size: 0.5rem;
        padding-left: 5px;
        line-height: 1.1;
        text-transform: uppercase;
        /* Critical fix: Don't force uppercase */
        white-space: normal;
        /* Ensure wrapping */
        word-break: normal;
        overflow: visible;
        /* Show text */
        flex: 1;
        /* Take remaining space */
        min-width: 0;
        /* Allow shrinking */
    }
}

.btn-request-sticky {
    flex: 1 1 0;
    max-width: 50%;
    height: auto;
    min-height: 60px;
    border-radius: 12px;
    border: none;
    background: #f15a24;
    /* Orange */
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(241, 90, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-request-sticky:hover {
    background: #d64d1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(241, 90, 36, 0.3);
    color: white;
    justify-content: center;
}

.request-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    width: 40px;
    height: 35px;
}

.btn-request-sticky .request-icon {
    font-size: 1.2rem;
    color: white;
}

.btn-request-sticky .request-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: left;
}

.btn-request-sticky .request-desc {
    color: rgba(255, 255, 255, 1);
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    /* border-left removed to match design */
    padding-left: 8px;
    /* Small spacing */
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Center the text lines */
}

/* Mobile Tweaks */
@media (max-width: 991px) {
    .fixed-action-bar {
        height: auto;
        min-height: 80px;
        padding: 5px 0;
        /* Force visibility on mobile */
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        z-index: 10000 !important;
        bottom: 0 !important;
    }

    /* Mobile buttons specific layout */
    .btn-favorite-sticky,
    .btn-request-sticky {
        padding: 4px 2px;
        min-height: 60px;
    }

    /* Adjust icon sizes for mobile */
    .btn-favorite-sticky .favorite-icon {
        font-size: 1.4rem;
    }

    .btn-request-sticky .request-icon {
        font-size: 1rem;
    }

    .request-icon-wrapper {
        width: 28px;
        height: 26px;
        border-radius: 4px;
    }

    /* Adjust text sizes */
    .btn-favorite-sticky .favorite-text,
    .btn-request-sticky .request-text {
        font-size: 0.6rem;
        line-height: 0.9;
        margin-right: 2px;
        white-space: normal;
        text-align: left;
    }

    .btn-favorite-sticky .favorite-desc,
    .btn-request-sticky .request-desc {
        font-size: 0.55rem;
        font-weight: 600;
        line-height: 1.1;
        padding-left: 2px;
        border-left: none;
        text-align: center;
        flex: 1;
        min-width: 0;
        border: none;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

/* Mobile buttons inherit main styles now */
.btn-favorite-sticky,
.btn-request-sticky {
    min-height: 60px;
    /* Adjust height if needed */
}

.fixed-action-spacer {
    height: 100px;
}

/* Move cookie settings button up to avoid sticky action bar */
.cookie-settings-btn {
    position: fixed !important;
    bottom: 115px !important;
    z-index: 1050;
}

/* Gallery Styles */
.gallery-container {
    position: relative;
}

.gallery-container > .d-flex {
    position: relative;
    z-index: 30;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    position: relative;
    z-index: 30;
    pointer-events: auto;
}

.gallery-tabs .nav-item {
    position: relative;
    z-index: 30;
}

.gallery-tabs .nav-link {
    color: #666;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border: none;
    transition: all 0.3s;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 30;
    pointer-events: auto;
}

/* Ensure tab panes don't overlap the tabs */
.gallery-container .tab-content {
    position: relative;
    clear: both;
    z-index: 1;
}

.gallery-container .tab-pane {
    position: relative;
}

/* Hide inactive tab panes - JS will toggle display */
.gallery-container .tab-pane:not(.show):not(.active) {
    display: none;
}

.gallery-container .swiper {
    position: relative;
    z-index: 1;
}

.gallery-container .swiper-button-next,
.gallery-container .swiper-button-prev {
    z-index: 2;
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.gallery-container .swiper-button-next.swiper-button-disabled,
.gallery-container .swiper-button-prev.swiper-button-disabled {
    opacity: 0.4 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.gallery-tabs .nav-link.active {
    background: var(--primary-orange);
    color: white !important;
    box-shadow: 0 2px 8px rgba(255, 94, 58, 0.3);
    font-weight: 700;
}

.gallery-tabs .nav-link:hover:not(.active) {
    background: #f0f0f0;
    color: var(--primary-orange);
}

/* Mobile responsive for gallery tabs */
@media (max-width: 768px) {
    .gallery-container .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .gallery-tabs {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 4px;
        gap: 6px;
    }

    .gallery-tabs .nav-link {
        font-size: 0.65rem;
        padding: 6px 10px;
        flex: 0 1 auto;
    }
}

/* Modern Tabs */
.modern-tabs .nav-link {
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.modern-tabs .nav-link.active {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Project Timeline Styles */
.timeline-section-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-scroll-container {
    overflow-x: auto;
    padding: 20px 0;
    /* Hide scrollbar for cleaner look but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.timeline-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    min-width: 800px;
    /* Minimum width to prevent squashing */
    position: relative;
    padding-top: 10px;
}

/* Gray Background Line */
.timeline-line-bg {
    position: absolute;
    top: 30px;
    /* Center of the icon (40px height / 2 + top padding) */
    left: 0;
    width: 100%;
    height: 4px;
    background: #f1f3f5;
    z-index: 0;
    border-radius: 4px;
}

/* Colored Progress Line */
.timeline-line-progress {
    position: absolute;
    top: 30px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #ff8c00);
    z-index: 1;
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 94, 58, 0.3);
}

.timeline-step {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 5px;
    cursor: default;
    opacity: 0.5;
    /* Fade out future steps */
    transition: opacity 0.3s ease;
}

.timeline-step.active,
.timeline-step.completed {
    opacity: 1;
}

/* Icon Styling */
.timeline-icon-box {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #adb5bd;
    z-index: 3;
}

.timeline-step.completed .timeline-icon-box {
    border-color: var(--primary-orange);
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 94, 58, 0.3);
}

/* Increased scale for active step as requested */
.timeline-step.active .timeline-icon-box {
    border-color: var(--primary-orange);
    background: white;
    color: var(--primary-orange);
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(255, 94, 58, 0.15);
}

/* Status Details Box */
.status-details-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-orange);
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.status-details-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 58, 0.03));
    pointer-events: none;
}

.status-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.status-detail-item:hover {
    background: #fff;
    border-color: rgba(255, 94, 58, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.status-check-icon {
    min-width: 24px;
    height: 24px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(255, 94, 58, 0.3);
}

.status-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.status-detail-item:last-child {
    margin-bottom: 0;
}

/* Pulse animation for active step */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 94, 58, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 94, 58, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 94, 58, 0);
    }
}

.timeline-step.active .timeline-icon-box {
    animation: pulse-orange 2s infinite;
}

/* Text Content */
.timeline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.timeline-percentage {
    font-size: 0.9rem;
    font-weight: 800;
    color: #adb5bd;
    margin-bottom: 2px;
}

.timeline-step.completed .timeline-percentage,
.timeline-step.active .timeline-percentage {
    color: var(--primary-orange);
}

.timeline-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 4px;
    min-height: 32px;
    /* Fix height for 2 lines alignment */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-story {
    font-size: 0.70rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    max-width: 100px;
    /* Constrain width */
}

.timeline-step.active .timeline-story,
.timeline-step.completed .timeline-story {
    opacity: 1;
    transform: translateY(0);
}

.timeline-step.active .timeline-story {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Mobile Vertical Timeline Styles */
.mobile-timeline-container {
    padding: 10px 0;
    position: relative;
}

.mobile-timeline-item {
    display: flex;
    position: relative;
    padding-bottom: 25px;
    /* Spacing between items */
}

/* Connective Line */
.mobile-timeline-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    min-width: 40px;
    position: relative;
}

.mobile-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #e9ecef;
    /* Default gray line */
    transform: translateX(-50%);
    z-index: 1;
}

/* First item: connect only down */
.mobile-line.first {
    top: 18px;
    /* Start from center of icon */
}

/* Last item: connect only up */
.mobile-line.last {
    display: block;
    height: 18px;
    /* End at center of icon */
    bottom: auto;
}

/* Icon Box */
.mobile-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 0.9rem;
    color: #adb5bd;
    margin-top: 2px;
    /* Slight offset for optical alignment with text title */
    transition: all 0.3s ease;
}

/* Completed State */
.mobile-timeline-item.completed .mobile-icon-box {
    background: #fff;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.mobile-timeline-item.completed .mobile-line {
    background: var(--primary-orange);
    /* Colored line for completed path */
}

/* Active State */
.mobile-timeline-item.active .mobile-icon-box {
    width: 48px;
    height: 48px;
    /* Larger */
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 94, 58, 0.4);
    margin-left: -8px;
    /* Center it since width increased by 16px covers 8px left/right diff */
    margin-top: -8px;
    animation: pulse-orange 2s infinite;
}

.mobile-timeline-item.active .mobile-stage-title {
    color: var(--primary-orange);
    font-size: 1.05rem;
}

.mobile-timeline-item.active .mobile-percentage {
    background: var(--primary-orange);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Content Area */
.mobile-timeline-content {
    flex: 1;
    padding-left: 15px;
    padding-top: 2px;
}

.mobile-stage-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.mobile-percentage {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.3s;
}

.mobile-stage-desc {
    line-height: 1.4;
}

/* Future State */
.mobile-timeline-item.future .mobile-icon-box {
    background: #f8f9fa;
}