/* Research Redesign Styles - Official Fucoidan Brand */
:root {
    --color-brand-primary: #5E3E30; /* Official Brown */
    --color-brand-secondary: #5E3E30; 
    --color-brand-light: #F5F2EC; /* Official Beige */
    --color-brand-accent: #8B7368;
    
    /* Missing Variables from old theme */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --shadow-md: 0 4px 12px rgba(94, 62, 48, 0.1);
    --radius-md: 12px;
    --transition-fast: 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.research-section {
    padding: var(--spacing-lg) 0;
    background-color: #F5F2EC;
}

/* Filter Bar */
.filter-bar {
    background-color: #5E3E30;
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(94, 62, 48, 0.2);
}

.filter-btn {
    background: rgba(245, 242, 236, 0.1);
    color: #F5F2EC;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(245, 242, 236, 0.2);
    transition: all var(--transition-fast);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #F5F2EC;
    color: #5E3E30;
    border-color: #F5F2EC;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .filter-bar {
        padding: 15px;
        gap: 8px;
    }
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

/* Grid Layout */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
    transition: all 0.5s ease;
}

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

/* Research Card */
.research-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #efefef;
    position: relative;
    overflow: hidden;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-thumbnail {
    flex: 0 0 140px;
    height: 180px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
}

.tag-purple { background-color: var(--color-brand-secondary); }
.tag-blue { background-color: var(--color-brand-primary); }
.tag-cyan { background-color: var(--color-brand-accent); }

.card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-publication {
    border: 1px solid var(--color-brand-primary);
    color: var(--color-brand-primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-publication:hover {
    background: var(--color-brand-primary);
    color: white;
}

.btn-readmore {
    background: var(--color-brand-secondary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Badge Styling */
.card-badge {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-logo {
    width: 60px;
}

.badge-text {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

/* Hidden elements for filtering */
.research-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}
