.spec-card {
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #23234a;
}

.ta-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.spec-number {
    position: absolute;
    top: 50%;
    left: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
}

.spec-number::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 2px;
    background: #8859f6;
    transition: all 0.3s ease;
    margin-left: -10px;
}

.spec-image {
    position: relative;
    width: 180px;
    transition: opacity 0.3s ease;
}

.spec-image-left {
    float: left;
    left: -80px;
    margin-right: 16px;
    margin-bottom: 0;
}

.spec-image-right {
    float: right;
    right: -80px;
    margin-left: 16px;
    margin-bottom: 0;
}

.spec-image-center {
    text-align: center;
}

.spec-title, 
.spec-description {
    position: absolute;
    transition: all 0.3s ease;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    text-align: start;
    width: 100%;
    padding: 15px;
    clear: both;
}

.spec-description p {
    margin-bottom: 0;
}

.spec-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: all 0.4s ease;
}

.spec-description {
    color: #fff;
    transition: all 0.4s ease;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
}

/* Text alignment variations */
.spec-title.text-left {
    text-align: left;
}

.spec-title.text-center {
    text-align: center;
}

.spec-title.text-right {
    text-align: right;
}

.spec-description.text-left {
    text-align: left;
}

.spec-description.text-center {
    text-align: center;
}

.spec-description.text-right {
    text-align: right;
}

/* Hover effects */
.spec-card:hover .spec-description {
    opacity: 1;
    pointer-events: auto;
}

.spec-card:hover .spec-title {
    bottom: 50%;
    color: #000;
}

.spec-card:hover .spec-number {
    color: #000 !important;
}

.spec-card:hover .spec-number::before {
    transform: translateY(-50%) translateX(-100%);
}

.spec-card:hover .spec-image {
    opacity: 0;
}

/* Opposite text alignment on hover */
.spec-card:hover .spec-title.text-left,
.spec-card:hover .spec-description.text-left {
    text-align: right;
}

.spec-card:hover .spec-title.text-right,
.spec-card:hover .spec-description.text-right {
    text-align: left;
}

.spec-card:hover .spec-title.text-center,
.spec-card:hover .spec-description.text-center {
    text-align: center; /* Center stays center, but you can change this to left or right if preferred */
}

/* Responsive design */
@media (max-width: 900px) {
    .ta-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ta-specs-grid {
        grid-template-columns: 1fr;
    }
} 

/* Skin styles */

.ta-specs-grid-cards {
    margin: 0 auto;
}

.spec-card-modern {
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec-card-modern:hover {
    transform: translateY(-10px);
}

.spec-number-modern {
    position: absolute;
    top: 15px;
    inset-inline-end: 15px;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.spec-image-modern {
    margin-bottom: 20px;
}

.spec-image-modern img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
}

.spec-content {
    flex: 1;
}

.spec-title-modern {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.spec-description-modern {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .ta-specs-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ta-specs-grid-cards {
        grid-template-columns: 1fr;
    }
}

.ta-specs-list {
    max-width: 800px;
    margin: 0 auto;
}

.spec-list-item {
    display: flex;
    align-items: center;
    background: #1a1a2e;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #a78bfa;
}

.spec-list-item:hover {
    background: #23234a;
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.2);
}

.spec-list-number {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 20px;
    flex-shrink: 0;
}

.spec-list-image {
    margin-right: 20px;
    flex-shrink: 0;
}

.spec-list-image img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.spec-list-content {
    flex: 1;
}

.spec-list-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.spec-list-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .spec-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .spec-list-number,
    .spec-list-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}