/**
 * Frontend Styles
 * Styles for timeline display
 */

/* Reset and Base Styles */
.ht-timeline-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ht-timeline-section {
    padding: 60px 20px;
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.ht-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.ht-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.ht-section-title {
    font-size: 48px;
    font-weight: 700;
    color: #1e3c8c;
    margin: 0;
}

.nacl-history-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nacl-history-nav-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nacl-history-nav-box button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nacl-history-nav-box button svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
}

.nacl-history-nav-box button:hover {
    background: #f3f3f3;
}

.nacl-history-nav-box button:hover svg path {
    stroke: #f4a000;
}

/* Timeline Card */
.ht-timeline-card {
    background: rgb(30 77 32);
    position: relative;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 50px;
    min-height: 380px;
    transition: transform 0.5s ease;
}

.ht-card-left {
    position: relative;
    flex: 1;
    background-color: #1342a5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
    border-top-left-radius: 0%;
    border-bottom-left-radius: 0;
    border-top-right-radius: 25%;
    border-bottom-right-radius: 25%;
    z-index: 2;
}

.ht-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ht-factory-image {
    width: 626.07080078125px;
    height: 350px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ht-factory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ht-photo-frame {
    position: absolute;
    width: 180px;
    height: 220px;
    background: #ffffff;
    border: 12px solid #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: rotate(20deg);
    top: 50%;
    right: 20%;
    margin-top: -110px;
    z-index: 2;
    background-size: cover;
    background-position: center;
}

.ht-card-right {
    flex: 1;
    background-color: rgb(30 77 32);
    padding: 40px 50px;
    color: #ffffff;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 0 20px 20px 0;
    z-index: 1;
}

.ht-content-wrapper {
    width: 100%;
}

.ht-year {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: 2px;
}

.ht-subtitle {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #ffffff;
}

.ht-bullet-points {
    color: #ffffff;
}

.ht-bullet-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ht-bullet-points ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

.ht-bullet-points ul li::before {
    content: "\25CF";
    position: absolute;
    left: 0;
    color: #F4A300;
    font-size: 20px;
}

.ht-bullet-points p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

/* Timeline Progress Bar */
.ht-timeline-progress {
    position: relative;
    padding: 40px 0;
}

.ht-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    transform: translateY(-50%);
}

.ht-timeline-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ht-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ht-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ddd;
    border: 3px solid #ffffff;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ht-timeline-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ht-timeline-item:hover .ht-timeline-dot {
    background-color: #F4A300;
    transform: scale(1.2);
}

.ht-timeline-item:hover .ht-timeline-label {
    color: #F4A300;
}

.ht-timeline-item.active .ht-timeline-dot {
    background-color: #234F2E;
    width: 20px;
    height: 20px;
    border: 4px solid #ffffff;
    box-shadow: 0 3px 10px rgba(35, 79, 46, 0.4);
}

.ht-timeline-item.active .ht-timeline-label {
    color: #234F2E;
    font-weight: 700;
    font-size: 15px;
}

/* Slide Animation */
@keyframes htSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ht-content-wrapper.ht-slide-in {
    animation: htSlideIn 0.5s ease;
}

/* Mobile Navigation (below card, mobile only) */
.ht-mobile-nav {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* No Items Message */
.ht-no-items {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .ht-section-title {
        font-size: 40px;
    }

    .ht-timeline-card {
        min-height: 350px;
    }

    .ht-card-right {
        padding: 30px 35px;
    }

    .ht-year {
        font-size: 52px;
    }

    .ht-subtitle {
        font-size: 20px;
    }

    .ht-bullet-points ul li,
    .ht-bullet-points p {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .ht-timeline-section {
        padding: 40px 15px;
    }

    .ht-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Hide desktop nav arrows on mobile */
    .nacl-history-nav {
        display: none !important;
    }

    /* Show mobile nav arrows below card */
    .ht-mobile-nav {
        display: flex !important;
    }

    /* Hide year-wise timeline bar on mobile */
    .ht-timeline-progress {
        display: none !important;
    }

    .ht-section-title {
        font-size: 36px;
    }

    .ht-timeline-card {
        flex-direction: column;
        min-height: auto;
    }

    .ht-card-left {
        min-height: 260px;
        padding: 30px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 50;
        border-bottom-right-radius: 50;
    }

    .ht-factory-image {
        width: 90%;
        height: 200px;
    }

    .ht-photo-frame {
        width: 140px;
        height: 180px;
        right: 10%;
    }

    .ht-card-right {
        padding: 30px 30px;
        border-radius: 0 0 20px 20px;
    }

    .ht-year {
        font-size: 40px;
    }

    .ht-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .ht-bullet-points ul li,
    .ht-bullet-points p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .ht-timeline-items {
        flex-wrap: wrap;
        gap: 20px;
    }

    .ht-timeline-label {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .ht-section-title {
        font-size: 28px;
    }

    .ht-card-left {
        min-height: 220px;
        padding: 20px;
    }

    .ht-factory-image {
        height: 160px;
    }

    .ht-photo-frame {
        width: 120px;
        height: 150px;
    }

    .ht-card-right {
        padding: 30px 20px;
    }

    .ht-year {
        font-size: 40px;
    }

    .ht-subtitle {
        font-size: 16px;
    }

    .ht-bullet-points ul li {
        font-size: 13px;
        padding-left: 25px;
    }

    .ht-bullet-points p {
        font-size: 13px;
    }

    .ht-timeline-dot {
        width: 14px;
        height: 14px;
    }

    .ht-timeline-item.active .ht-timeline-dot {
        width: 18px;
        height: 18px;
    }
}
