/* 연구실 포털 스타일 */
.research-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.research-header {
    text-align: center;
    margin-bottom: 3rem;
}

.research-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.research-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.research-portal {
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    gap: 2rem;
    max-width: 1000px;
    /* Reduced from 1200px to center/shrink */
    margin: 0 auto;
    justify-content: center;
}

.portal-card {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    /* More square like, smaller */
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    /* Reduced padding */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.portal-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.portal-card-icon {
    width: 54px;
    height: 54px;
    background-color: #f8faff;
    color: var(--primary-color);
    border-radius: 12px;
    /* Smoothed corner instead of circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.portal-card-content h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.portal-card-content p {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.portal-card-footer {
    margin-top: auto;
    width: 100%;
}

.portal-card-footer .start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    border: 1px solid #eee;
    cursor: pointer;
}

.portal-card.tbd-card {
    opacity: 0.7;
    background-color: #fafbfc;
    cursor: default;
    border-style: dashed;
}

.portal-card.tbd-card .portal-card-icon {
    background-color: #eee;
    color: #bbb;
}

.portal-card.tbd-card .start-btn.disabled {
    background-color: #eee;
    color: #aaa;
    cursor: default;
}

.portal-card.tbd-card:hover {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.05);
    transform: none;
}

.portal-card:hover .start-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portal-card:hover .start-btn i {
    transform: translateX(4px);
}

.start-btn i {
    transition: transform 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .portal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}