
.kit-types-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.kit-type-card {
    flex: 1 1 calc(33.333% - 16px); /* Adjust the percentage to control the number of columns */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin: 8px;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
}

.kit-type-card h3 {
    font-size: 2em;
}

.kit-type-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .kit-type-card {
        flex: 1 1 calc(50% - 16px); /* Two columns on medium screens */
    }
}

@media (max-width: 480px) {
    .kit-type-card {
        flex: 1 1 100%; /* Single column on small screens */
    }
}


.info-container {
    float: right;
    max-width: 400px;
    margin-left: 50px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .info-container {
        float: none;
        margin-left: 0;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

.warning-box {
    display: flex;
    align-items: center;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 10px;
    font-size: 1.2em;
}

.warning-box i {
    font-size: 2em;
    margin-right: 30px;
    margin-left: 20px;
}

.copyright-notice {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.9em;
    text-align: center;
}


/*DETAILS*/

.set-title {
    font-size: 1.8em;
    margin-bottom: 0px;
    font-weight: 400;
}
.set-description {
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .set-title {
        text-align: center;
    }
    .set-description {
        text-align: center;
    }    
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 50px;
    clear: both;
}

@media (max-width: 480px) {
    .steps-grid {
        justify-content: center;
    }
}

.step-card {
    flex: 1 1 calc(33.333% - 16px); /* Adjust the percentage to control the number of columns */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin: 8px;
    border: 1px solid silver;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
    max-width: 300px;
    position: relative;
}


.step-card span {
    position: absolute;
    top: -10px;
    left: -20px;
    background-color: rgb(248, 248, 248);
    width: 50px; /* Adjust the width as needed */
    height: 50px; /* Adjust the height to be equal to the width */
    border: 1px solid silver;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: 500;
    color: rgb(30, 161, 50); /* Optional: Adjust text color if the span contains text */
}

.step-card img {
    max-width: 280px;
    height: auto;
    border-radius: 5px;
}

.step-card p {
   padding: 0 20px;
}

@media (max-width: 768px) {
    .step-card {
        flex: 1 1 calc(50% - 16px); /* Two columns on medium screens */
    }
}

@media (max-width: 480px) {
    .step-card {
        flex: 1 1 100%; /* Single column on small screens */
    }
}



/*LIST*/



.instructions-list {
    padding:40px;
}

@media (max-width: 600px) {
    .instructions-list {
        padding-left: 0;
        padding-right: 0;
    }
}



.instruction-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.1em;

}

.instruction-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 20px;
}

.instruction-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    background-color: white;
    flex-direction: column; /* Change to column layout */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 768px) {
    .instruction-cards-container {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

.instruction-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.instruction-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.instruction-card-icon {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    margin-bottom: 0px;
}

.instruction-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
        flex-grow: 1; /* Change to flex-grow to prevent overflow */
}

.instruction-card-title {
    font-size: 1.2em;
    margin-bottom: 0px;
    font-family: 'Roboto';
    font-weight: 400;
    color: #535353;
    margin-top: 0;
}

.instruction-card-status {
    font-size: 1em;
    color: #555;
    margin-bottom: 0px;
}

.instruction-card-date {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 0px;
}


/* View button */
.instruction-card-view-btn {
   margin-top:20px;
   padding:0 20px;
}

.instruction-card-view-btn:hover {
    background-color: #0056b3;
    color: white;
}

@media (max-width: 600px) {
    .instruction-card-view-btn {
      
        max-width: 150px;
    }
}

/* Responsive styles */
@media (min-width: 768px) {
    .instruction-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    


}


/* IMportance levels */

.step-card.importance-1 {
    background-color: #fffada; /* Light yellow for importance level 1 */
    border-color: #d18109;
}
.step-card.importance-1 span {
    color: #d18109; 
    border-color: #d18109; 
}

.step-card.importance-2 {
    background-color: #ffeadd; /* Light orange for importance level 2 */
    border-color: #f37324;
}
.step-card.importance-2 span {
    color: #f37324; 
    border-color: #f37324;
}

.step-card.importance-3 {
    background-color: #ffdbda; /* Light red for importance level 3 */
    border-color: #9a0b09; 
}
.step-card.importance-3 span {
    color: #9a0b09; 
    border-color: #9a0b09; 
}

.step-card.importance-4 {
    background-color: #d3d5ff; /* Red for importance level 4 */
    border-color: #464cca;
}
.step-card.importance-4 span {
    color: #464cca; 
    border-color: #464cca;
}

/* Device Selection Styles */
.device-selection-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.device-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center; /* center buttons on desktop */
}

.device-btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 150px;
    border: 2px solid #6c757d; /* gray outline by default */
    background: transparent;   /* no fill */
    color: #6c757d;            /* gray text */
}

/* Icon inside device buttons */
.device-btn .device-icon {
    height: 32px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
    margin-top: -2px;
}

.device-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tasso Button */
/* Selected (active) state: blue outline, no fill */
.device-btn.active {
    border-color: #007bff;
    color: #007bff;
    background: transparent;
}

/* RedDrop Button */
/* Hover: subtle lift without changing fills */
.device-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* View All keeps same default/active rules via device-btn base + .active */

@media (max-width: 768px) {
    .device-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .device-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box; /* include padding + border in width to avoid overflow */
        min-width: 0; /* override desktop min-width on small screens */
        margin-bottom: 0.5rem;
    }
}

/* Additional classes for instruction list layout */


.device-selection-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.device-selection-section h4 {
    margin-bottom: 1rem;
    color: #333;
}

.device-selection-section p {
    margin-bottom: 1.5rem;
    color: #666;
}

.device-instructions-section {
    margin-bottom: 2rem;
}

.device-instructions-section h3 {
    margin-bottom: 1em;
    margin-top: 1em;
    line-height: 0.6em;
    color: #333;
}

.all-instructions-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.device-section-icon {
    height: 48px;
    width: auto;
    vertical-align: middle;
    margin-right: 12px;
}

.no-instructions-message {
    padding: 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
}

.device-btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.device-btn.view-all {
    display: flex;
    align-items: center;
    justify-content: center;
}
