/* Custom Academic laboratories and research directory styling for SWAPNOJOYI */

.ld-4a-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
    margin: 20px 0;
    --ld-primary: #0d9488;
    --ld-bg-grad: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --ld-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* 1. HERO VISUALS */
.ld-4a-hero {
    position: relative;
    background: var(--ld-bg-grad);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.2);
}

.ld-4a-hero-logo-container {
    margin-bottom: 24px;
}

.ld-4a-hero-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(13,148,136,0.3));
}

.ld-4a-hero-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(13, 148, 136, 0.2) 0%, transparent 60%);
    animation: ldGlowRotate 25s infinite linear;
    pointer-events: none;
}

@keyframes ldGlowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ld-4a-badge {
    display: inline-block;
    background: rgba(13, 148, 136, 0.25);
    color: #2dd4bf;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    border: 1px solid rgba(13, 148, 136, 0.4);
}

.ld-4a-hero-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 18px 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ld-4a-hero-desc {
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 30px auto;
    font-size: 1.15rem;
    line-height: 1.6;
}

.ld-4a-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.ld-4a-hero-btn {
    display: inline-block;
    background: var(--ld-primary);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(13,148,136,0.4);
}

.ld-4a-hero-btn:hover {
    background: #0f766e;
    transform: translateY(-2px);
}

/* SWITCHER STRIP */
.ld-4a-view-switcher {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.ld-4a-switch-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ld-4a-switch-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.ld-4a-switch-btn.active {
    background: rgba(13, 148, 136, 0.1);
    color: var(--ld-primary);
}

/* 2. SEARCH & DYNAMIC BAR */
.ld-4a-control-hub {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.ld-4a-search-wrapper {
    position: relative;
    flex-grow: 1;
}

.ld-4a-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.25rem;
}

.ld-4a-search-input {
    width: 100%;
    padding: 16px 16px 16px 54px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.25s ease;
    outline: none;
    background: #ffffff;
}

.ld-4a-search-input:focus {
    border-color: var(--ld-primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.ld-4a-mobile-filter-trigger {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 24px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.ld-4a-mobile-filter-trigger:hover {
    background: #f1f5f9;
}

/* 3. FILTER SYSTEM DRAWER */
.ld-4a-filter-drawer {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--ld-card-shadow);
}

.ld-4a-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.ld-4a-drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.ld-4a-drawer-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: end;
}

.ld-4a-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ld-4a-filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ld-4a-filter-group select {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
    font-weight: 600;
}

.ld-4a-drawer-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

/* 4. LAB CARDS GRID */
.ld-4a-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.ld-4a-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--ld-card-shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-top: 5px solid transparent;
}

.ld-4a-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ld-4a-card.featured-card {
    border-top-color: var(--ld-primary);
}

.ld-4a-lab-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

/* 5. PROFILE MODAL & TABS LAYOUT */
.ld-4a-tabs-container {
    margin-top: 24px;
}

.ld-4a-tab-headers {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.ld-4a-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    white-space: nowrap;
}

.ld-4a-tab-btn:hover {
    background: #f1f5f9;
}

.ld-4a-tab-btn.active {
    background: rgba(13, 148, 136, 0.1);
    color: var(--ld-primary);
}

.ld-4a-tab-content-panel {
    display: none;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}

.ld-4a-tab-content-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PAGINATION STYLES (Sliding Window logic matches user request) */
.ld-4a-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.ld-4a-page-btn {
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.ld-4a-page-btn.active {
    background: var(--ld-primary);
    color: white;
    border-color: var(--ld-primary);
}
