.spec-data-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.tab-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0; /* Ensure no margin below the header */
    position: relative;
    padding-bottom: 0; /* Removed padding to ensure line touches the bottom exactly */
}

.tab {
    cursor: pointer;
    padding: 10px 20px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    color: #000;
    transition: color 0.3s ease;
    margin-bottom: 0; /* Remove any default margin */
    position: relative; /* Ensure tab has positioning context for the line */
    flex: 1; /* Distribute space evenly among tabs */
    text-align: center; /* Center-align text for consistency */
}

.tab.active {
    color: #003b4d;
    font-weight: 600;
}

.active-line {
    height: 2px;
    width: 20%; /* Make the line narrower (e.g., 20% of the tab width) */
    background-color: #003b4d;
    position: absolute;
    display: none;
    left: 0; /* Will be updated by JavaScript */
    transition: left 0.3s ease, width 0.3s ease; /* Smooth transition for both left and width */
}

/* Ensure the active line adjusts correctly on mobile */
@media (max-width: 768px) {
    .tab-header {
        /* flex-direction: column; */
        align-items: center;
        padding-bottom: 0; /* Removed padding for mobile */
    }

    .tab {
        padding: 5px 10px;
        font-size: 16px;
        width: 100%; /* Full width for mobile tabs */
    }

    .active-line {
        width: 20%; /* Narrower line on mobile as well */
        left: 40%; /* Center the line under the tab on mobile (50% - 20%/2) */
    }

    .spec-table, .download-table {
        font-size: 14px;
    }

    .spec-table th, .spec-table td,
    .download-table th, .download-table td {
        padding: 8px;
    }

    .download-cards, .app-images {
        flex-direction: column;
        align-items: center;
    }


    .download-card, .app-image-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

.tab-content {
    margin-top: 20px;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

.spec-table, .download-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #f9f9f9;
}

.spec-table th, .spec-table td,
.download-table th, .download-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.spec-table th, .download-table th {
    background-color: #003b4d;
    color: white;
}

.download-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.download-card {
    flex: 1 1 45%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    min-width: 250px;
}

.download-card h3 {
    margin: 0 0 10px 0;
    color: #003b4d;
}

.download-card p {
    margin: 5px 0;
    color: #666;
}

.download-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #003b4d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.download-btn:hover {
    background-color: #002433;
}

.application-area {
    margin-top: 40px;
}

.application-area h2 {
    color: #003b4d;
    font-size: 24px;
    margin-bottom: 20px;
}

.app-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* justify-content: center; */
}

.app-image-card {
    flex: 1 1 45%;
    max-width: 300px;
    text-align: center;
}

.app-image-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.app-image-card h3 {
    color: #003b4d;
    margin: 10px 0;
}

.app-image-card p {
    color: #666;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .application-area h2{
        font-size: 1em;
    }
}