/* ========== RESEARCH PAGE SPECIFIC STYLES ========== */

/* Hero Section */
.research-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    min-height: 380px;
}
.research-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(235,0,139,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(255,200,45,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 85%, rgba(100,120,255,0.12) 0%, transparent 45%);
    pointer-events: none;
}
.research-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(70px); pointer-events: none; opacity: 0.55;
    animation: orbFloat 9s ease-in-out infinite;
}
.hero-orb-1 { width:320px; height:320px; background: radial-gradient(circle, rgba(235,0,139,0.45), transparent); top:-80px; left:-100px; }
.hero-orb-2 { width:280px; height:280px; background: radial-gradient(circle, rgba(255,200,45,0.35), transparent); bottom:-80px; right:-60px; animation-delay:-4.5s; }
.hero-orb-3 { width:200px; height:200px; background: radial-gradient(circle, rgba(120,100,255,0.25), transparent); top:40%; left:45%; animation-delay:-2s; }
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(18px,-14px) scale(1.06); }
    66% { transform: translate(-12px,10px) scale(0.94); }
}

/* Wave Divider */
.hero-wave {
    position: absolute; bottom:-2px; left:0; width:100%;
    line-height:0; z-index:10; pointer-events:none;
}

/* Section background */
.research-body { background: var(--spu-surface); }

/* Database Cards */
.db-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
@media(max-width:640px) {
    .db-grid { grid-template-columns: 1fr; }
}

.db-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    border: 1.5px solid #f0eef5;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    display: flex; flex-direction: column;
    cursor: pointer;
}
.db-card::before {
    content:'';
    position:absolute; inset:0;
    background: linear-gradient(135deg, rgba(235,0,139,0.04), rgba(255,200,45,0.03));
    opacity:0; transition:opacity 0.35s;
}
.db-card:hover { transform:translateY(-10px) scale(1.01); border-color:rgba(235,0,139,0.25); box-shadow: 0 24px 50px rgba(235,0,139,0.14); }
.db-card:hover::before { opacity:1; }

.db-card-accent {
    height:5px;
    background: linear-gradient(90deg, var(--spu-pink), var(--spu-yellow));
    transition: height 0.3s ease;
}
.db-card:hover .db-card-accent { height:7px; }

.db-card-body { padding: 1.25rem 1.5rem 1.5rem 1.5rem; flex:1; display:flex; flex-direction:column; }

.db-logo-wrap {
    width: 120px;
    height: 120px;
    border-radius:1.1rem;
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, #fff5f9, #fff);
    border: 1.5px solid #fce7f3;
    box-shadow: 0 4px 14px rgba(235,0,139,0.1);
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden;
    flex-shrink:0;
}
.db-card:hover .db-logo-wrap { transform:scale(1.05) rotate(-3deg); }

.db-badge {
    display:inline-flex; align-items:center; gap:5px;
    padding:4px 10px; border-radius:999px;
    font-size:11px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase;
    white-space: nowrap;
}
.badge-thai { background:rgba(59,130,246,0.1); color:#2563eb; border:1px solid rgba(59,130,246,0.2); }
.badge-intl  { background:rgba(16,185,129,0.1); color:#059669; border:1px solid rgba(16,185,129,0.2); }
.badge-multi { background:rgba(139,92,246,0.1); color:#7c3aed; border:1px solid rgba(139,92,246,0.2); }
.badge-free  { background:rgba(255,200,45,0.15); color:#b45309; border:1px solid rgba(255,200,45,0.35); }
.badge-new   { background:rgba(235,0,139,0.1); color:var(--spu-pink); border:1px solid rgba(235,0,139,0.2); }

.db-tag {
    display:inline-flex; align-items:center; gap:4px;
    padding:3px 9px; border-radius:999px;
    font-size:11px; font-weight:500;
    background:#f3f4f6; color:#6b7280;
}

.btn-access {
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:0.65rem 1.5rem;
    border-radius:0.875rem;
    font-family:'Kanit', sans-serif; font-weight:600; font-size:14px;
    color:white; text-decoration:none;
    background: linear-gradient(135deg, var(--spu-pink), #c4006b);
    transition: all 0.3s ease;
    border:none; cursor:pointer;
    margin-top: auto;
}
.btn-access:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(235,0,139,0.48); color:white; text-decoration:none; }

.research-section-header { margin-bottom:2.5rem; }

@keyframes fadeSlideUp {
    from { opacity:0; transform:translateY(30px); }
    to   { opacity:1; transform:translateY(0); }
}
.anim-up { animation: fadeSlideUp 0.6s ease both; }
.anim-delay-1 { animation-delay:0.1s; }
.anim-delay-2 { animation-delay:0.2s; }