/* --- Global & Page Layout --- */
/* Body background managed by style.css (3D Pixar Theme) */

.research-page-container {
    max-width: 1400px; /* Wider container for better grid */
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.research-page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff; /* White text for contrast on 3D bg */
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin-bottom: 3rem;
    display: block;
    position: relative;
    padding-bottom: 1rem;
}

.research-page-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 6px;
    background: linear-gradient(to right, #fbbf24, #f59e0b); /* Orange gradient */
    margin: 0.5rem auto 0;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* --- Grid Layout for Cards --- */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding-bottom: 4rem;
}

/* --- Research Card Styling --- */
.research-card {
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px; /* More rounded */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #fff;
    z-index: 10;
}

/* --- Card Content --- */
.research-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

/* --- Card Title --- */
.research-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* --- Card Image --- */
.research-card-image-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.research-card-image {
    width: 100%;
    height: 220px; /* Fixed height for uniformity */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.research-card:hover .research-card-image {
    transform: scale(1.1);
}

/* --- Gallery Thumbnails --- */
.research-card-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Hide scrollbar */
    scrollbar-width: none;
}
.research-card-gallery::-webkit-scrollbar {
    display: none;
}

.research-gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.research-gallery-thumbnail:hover {
    transform: scale(1.15) rotate(2deg);
    border-color: #fbbf24;
    z-index: 5;
}

/* --- Card Button --- */
.research-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Blue Gradient */
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    margin-top: auto;
}

.research-card-button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.research-card-button i {
    margin-right: 8px;
}

/* --- Toggle Details Button --- */
.toggle-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Orange Gradient */
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
}

.toggle-details-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
}

.toggle-details-btn i {
    margin-right: 8px;
}

/* --- Details Content --- */
.research-details {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.modal-description {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.research-card-meta {
    font-size: 0.9rem;
    color: #475569;
    padding-left: 0;
    border-left: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.7);
    padding: 8px;
    border-radius: 8px;
}

.meta-item i {
    color: #f59e0b; /* Orange icon */
    font-size: 1.2rem;
    margin-top: 2px;
}

.meta-button {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.meta-button:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* --- No Research Message --- */
.no-research-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.5rem;
    color: #cbd5e1;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}