/* Standard Card Styles */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.standard-card {
    perspective: 1000px;
    min-height: 250px;
    height: auto;
    width: 100%;
    margin-bottom: 10px;
    display: block;
}

.card-inner {
    position: relative;
    width: 100%;  
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.standard-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.card-front {
    background-color: var(--sage-green);
    color: white;
}

.card-back {
    transform: rotateY(180deg);
    background-color: var(--sage-green);
    color: white;
}

.standard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.1);
}

.standard-code {
    font-weight: bold;
    font-size: 1.1rem;
}

.bookmark-icon {
    cursor: pointer;
}

.standard-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    gap: 0.5rem;
}

.standard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.domain-info {
    font-size: 0.8rem;
    opacity: 0.9;
}

.connection-info {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-resources-btn {
    background-color: var(--sage-gold);
    color: var(--sage-dark-gray);
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem auto;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 80%;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
}

.view-resources-btn:hover {
    background-color: rgba(242, 206, 138, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .standards-grid {
        grid-template-columns: 1fr;
    }
}
