Molbap's picture
Molbap HF Staff
migrate template
b565d01
raw
history blame
3.81 kB
/* Tenet card styling - Transformers design principles */
.tenet-list {
margin: 3rem 0;
}
.tenet-list ol {
counter-reset: tenet-counter -1;
list-style: none;
padding-left: 0;
display: grid;
grid-template-columns: 1fr;
gap: 2.5rem;
max-width: 900px;
margin: 0 auto;
}
.tenet-list li.tenet {
counter-increment: tenet-counter;
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
border: 2px solid #e2e8f0;
border-radius: 16px;
padding: 2rem 2rem 2rem 4rem;
margin: 0;
position: relative;
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
transition: all 0.3s ease;
cursor: pointer;
}
.tenet-list li.tenet:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
border-color: rgba(0, 123, 255, 0.5);
background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}
/* Colorful numbering system */
.tenet-list li.tenet:nth-child(1):before { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.tenet-list li.tenet:nth-child(2):before { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.tenet-list li.tenet:nth-child(3):before { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.tenet-list li.tenet:nth-child(4):before { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.tenet-list li.tenet:nth-child(5):before { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.tenet-list li.tenet:nth-child(6):before { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.tenet-list li.tenet:nth-child(7):before { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.tenet-list li.tenet:nth-child(8):before { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.tenet-list li.tenet:nth-child(9):before { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.tenet-list li.tenet:before {
content: counter(tenet-counter);
position: absolute;
top: -12px;
left: -12px;
color: white;
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2em;
font-weight: bold;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
border: 3px solid white;
}
.tenet-list li.tenet strong {
color: #1a202c;
font-size: 1.1em;
display: block;
margin-bottom: 0.5rem;
}
.tenet-list li.tenet em {
color: #4a5568;
font-size: 0.95em;
font-style: italic;
display: block;
margin-top: 0.75rem;
padding: 1rem;
background: rgba(0, 0, 0, 0.03);
border-radius: 8px;
border-left: 3px solid #e2e8f0;
}
.tenet-list li.tenet p {
color: #2d3748;
line-height: 1.6;
margin: 0.5rem 0;
}
/* Pulse animation for numbers */
@keyframes pulse-glow {
0% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); }
100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
}
.tenet-list li.tenet:hover:before {
animation: pulse-glow 2s ease-in-out infinite;
}
/* Dark mode support */
[data-theme="dark"] .tenet-list li.tenet {
background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
border-color: #4a5568;
}
[data-theme="dark"] .tenet-list li.tenet:hover {
background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
border-color: rgba(102, 126, 234, 0.5);
}
[data-theme="dark"] .tenet-list li.tenet strong {
color: #e2e8f0;
}
[data-theme="dark"] .tenet-list li.tenet p {
color: #cbd5e0;
}
[data-theme="dark"] .tenet-list li.tenet em {
color: #a0aec0;
background: rgba(255, 255, 255, 0.05);
border-left-color: #4a5568;
}
/* Responsive */
@media (max-width: 768px) {
.tenet-list li.tenet {
padding: 1.5rem;
}
}