/* 
 * Service Page Specific Styles
 * Different card sizes and layouts
 */

/* Service section general styling */
.service-section {
    padding: 3rem 0;
}

.service-section h2 {
    color: var(--purple) !important;
    text-align: center;
    margin-bottom: 2rem;
}

/* Row layouts for cards */
.service-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Half-width service cards */
.service-card-half {
    background: var(--bg-light);
    border: 1px solid rgba(189, 147, 249, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card-half.dracula-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
                0 0 30px rgba(189, 147, 249, 0.4),
                0 0 40px rgba(139, 233, 253, 0.2);
    border-color: rgba(189, 147, 249, 0.5);
    background: rgba(36, 40, 59, 0.85);
}

/* Service icons */
.service-icon {
    font-size: 2.5rem;
    color: var(--purple) !important;
    margin-bottom: 1rem;
}

.service-card-half h3 {
    color: var(--purple) !important;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-card-half p {
    color: var(--cyan) !important;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.service-card-half strong {
    color: var(--purple) !important;
}

.service-meta {
    color: var(--cyan) !important;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.service-meta i {
    color: var(--purple) !important;
    margin-right: 0.5rem;
}

/* Small stat cards in a row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
}

.stat-card-small {
    background: var(--bg-light);
    border: 1px solid rgba(189, 147, 249, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card-small.dracula-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
                0 0 30px rgba(189, 147, 249, 0.4),
                0 0 40px rgba(139, 233, 253, 0.2);
    border-color: rgba(189, 147, 249, 0.5);
    background: rgba(36, 40, 59, 0.85);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple) !important;
    text-shadow: 0 0 10px rgba(189, 147, 249, 0.3);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--cyan) !important;
    font-size: 0.85rem;
    display: block;
}

/* Large journals card */
.journals-card {
    background: var(--bg-light);
    border: 1px solid rgba(189, 147, 249, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    transition: all 0.3s ease;
}

.journals-card.dracula-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
                0 0 30px rgba(189, 147, 249, 0.4),
                0 0 40px rgba(139, 233, 253, 0.2);
    border-color: rgba(189, 147, 249, 0.5);
    background: rgba(36, 40, 59, 0.85);
}

.journals-card h3 {
    color: var(--purple) !important;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Journal grid */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.journal-item {
    color: var(--cyan) !important;
    padding: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.journal-item:hover {
    color: var(--purple) !important;
    transform: translateX(5px);
}

.journal-item i {
    color: var(--purple) !important;
    margin-right: 0.5rem;
    font-size: 0.4rem;
}

/* Committee cards grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.committee-card {
    background: var(--bg-light);
    border: 1px solid rgba(189, 147, 249, 0.2);
    border-radius: 12px;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.committee-card.dracula-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
                0 0 30px rgba(189, 147, 249, 0.4),
                0 0 40px rgba(139, 233, 253, 0.2);
    border-color: rgba(189, 147, 249, 0.5);
    background: rgba(36, 40, 59, 0.85);
}

.committee-icon {
    font-size: 2rem;
    color: var(--purple) !important;
    margin-bottom: 0.75rem;
}

.committee-card h4 {
    color: var(--purple) !important;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.committee-card p {
    color: var(--cyan) !important;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.year-badge {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #44475a, #282a36);
    color: var(--purple);
    border: 1px solid rgba(189, 147, 249, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
                0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    height: 28px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.year-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.committee-card:hover .year-badge::before {
    left: 100%;
}

.committee-card:hover .year-badge {
    background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.9));
    color: white;
    box-shadow: 0 0 15px rgba(189, 147, 249, 0.5),
                0 6px 8px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(-50%) translateY(-2px);
}

/* Professional Memberships - matching Research page collab style */
.service-section .collab-logos-clean {
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.service-section .collab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    padding: 0.5rem;
    flex: 0 1 auto;
}

.service-section .collab-link img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.service-section .collab-link:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.service-section .collab-link span {
    color: var(--cyan) !important;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.service-section .collab-link:hover span {
    color: var(--purple) !important;
    text-shadow: 0 0 10px rgba(189, 147, 249, 0.3);
}

.service-section .research-area {
    background: var(--bg-light);
    border: 1px solid rgba(189, 147, 249, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-section .research-area.dracula-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
                0 0 30px rgba(189, 147, 249, 0.4),
                0 0 40px rgba(139, 233, 253, 0.2);
    border-color: rgba(189, 147, 249, 0.5);
    background: rgba(36, 40, 59, 0.85);
}

/* Editorial card - special styling */
.editorial-card {
    background: var(--bg-light);
    border: 1px solid rgba(189, 147, 249, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    transition: all 0.3s ease;
}

.editorial-card.dracula-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
                0 0 30px rgba(189, 147, 249, 0.4),
                0 0 40px rgba(139, 233, 253, 0.2);
    border-color: rgba(189, 147, 249, 0.5);
    background: rgba(36, 40, 59, 0.85);
}

.editorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.editorial-header h3 {
    color: var(--purple) !important;
    margin: 0;
}

.role-badge {
    background: linear-gradient(135deg, var(--purple), rgba(189, 147, 249, 0.8));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.editorial-details p {
    color: var(--cyan) !important;
    margin: 0.5rem 0;
}

.editorial-details i {
    color: var(--purple) !important;
    margin-right: 0.5rem;
}

/* Full-width service item (legacy, kept for compatibility) */
.service-item {
    background: var(--bg-light);
    border: 1px solid rgba(189, 147, 249, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-item.dracula-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.6),
                0 0 30px rgba(189, 147, 249, 0.4),
                0 0 40px rgba(139, 233, 253, 0.2);
    border-color: rgba(189, 147, 249, 0.5);
    background: rgba(36, 40, 59, 0.85);
}

.service-item h3 {
    color: var(--purple) !important;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-item p {
    color: var(--cyan) !important;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Service grid for multiple items */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .committee-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .membership-row {
        flex-direction: column;
        align-items: center;
    }
    
    .journal-grid {
        grid-template-columns: 1fr;
    }
}