/* Modern Overrides for Physchem.cz - Refined & Subtle */

:root {
    --primary-color: #69acc7;
    /* Theme's blue accent */
    --primary-hover: #5591a9;
    --text-color: #555;
    --heading-color: #2c3e50;
    --light-gray: #f8f9fa;
    --border-radius: 4px;
    --transition: all 0.2s ease-in-out;
}

/* Base refinement */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: var(--text-color);
}



/* Links transition */
a {
    transition: var(--transition);
}

/* Card/Publication Items - cleaner borders and subtle lift */
.card,
.publication-item {
    border: 1px solid #e1e8ec !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 25px;
    background: #fff;
}

.card:hover,
.publication-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
    border-color: var(--primary-color) !important;
}

/* Expand the list button - matching theme but refined */
.button.toggle-pubs {
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: none;
    /* Keep it professional */
    background: #f0f4f7;
    border: 1px solid #d1d9e0;
    color: #667e8c;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.button.toggle-pubs:hover {
    background: var(--primary-color);
    border-color: var(--primary-hover);
    color: #fff;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.1);
}

/* Person/Team section improvements */
.role.lead p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info strong {
    color: #777;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    width: 100px;
    /* Align definitions */
}

/* Footer subtle modernizing */
.site-footer {
    border-top: 4px solid var(--primary-color);
    padding-top: 50px;
}

.widget-title {
    font-size: 1.2em;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff !important;
}


/* Carousel/Hero caption refinement */
.hero {
    z-index: 1 !important;
}

.hero .slides li::before,
.hero .slides li::after {
    /* Ensure overlays don't exceed hero stacking level */
    z-index: 1 !important;
}

.hero .slide-content {
    z-index: 2 !important;
}

/* Ensure Dropdowns are always on top and have no hover gaps */
.dropdown-menu {
    z-index: 3000 !important;
    margin-top: 0 !important;
}

/* Ensure main site header is always on top of group sub-navigation */
.site-header {
    z-index: 2000 !important;
}

#subNav {
    z-index: 1000 !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
    /* background: transparent !important; */
    background: linear-gradient(#0506079e, #00000000);

}

.hero {
    position: relative !important;
    z-index: 1 !important;
}


/* Keyword/Badge tags */
.keyword {
    display: inline-block;
    background: #f0f4f8;
    color: #556677;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: var(--transition);
}

.keyword:hover {
    background: var(--primary-color);
    color: #fff;
}