/* Modified CSS to fix the layout issue - version 2 */

/* Fixing the "How Primal Credits Work" section boxes to have text UNDER icons */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.info-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.75rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    
    /* These changes create vertical layout */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.info-icon {
    margin-bottom: 1.25rem;
    width: 100%;
    text-align: center;
}
.info-icon i {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(58, 123, 213, 0.1);
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
    width: 100%;
}
.info-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
    width: 100%;
}

/* Fix for the uses-section to have text UNDER icons instead of to the side */
.uses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.use-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.use-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.use-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 123, 213, 0.1);
    border-radius: 50%;
}
.use-details {
    width: 100%;
}
.use-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}
.use-details p {
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
    .info-grid, .uses-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .info-item, .use-item {
        padding: 1.5rem;
    }
}
