/* AZULEON CSS sections

    * 0. Design tokens (:root colours, fonts, spacing, breakpoints)

    * 1. Resets & global overrides
         - box-sizing, html, body, generic UIkit resets

    * 2. General typography
         - H1–H6, p, a, lists, blockquote, small, code
         - UIkit heading/text overrides

    * 3. General layout
         - containers, grids, sections

    * 4. Header-specific

    * 5. Navigation-specific

    * 6. Footer-specific

    * 7. Form elements

    * 8. Utilities & helpers
*/

/* ============================================================
   0. DESIGN TOKENS
   Base palette, typography, spacing, breakpoints
   ============================================================ */

:root {

    /* --- Colours --- */

    /* Brand greens */
    --clr-green-600: #00b7c4;    /* primary brand #2E7D61*/
    --clr-green-700: #008C95;   /* hover/active/dark #25654F;*/
    --clr-green-50:  #7af4fc;    /* very light background tint #EAF5F0*/
    --clr-green-50-rgb: 234 245 240;   /* for transparent variants */
    --clr-green-100: #c6fbff;    /* light panel/pill background #D3E8DE*/

    /* Neutrals */
    --clr-text:       #1A1A1A;   /* main body text */
    --clr-grey-dark:  #3E3E3E;   /* secondary text */
    --clr-grey:       #777777;   /* muted elements */
    --clr-grey-light: #D6D6D6;   /* borders, dividers */
    --clr-bg:         #FFFFFF;   /* main page bg */
    --clr-bg-alt:     #F7F9F8;   /* soft alt section */

    /* Accents */
    --clr-blue-500:   #336DB2;   /* links, small accents */
    --clr-yellow:     #F4C95D;   /* highlights/tags */
    --clr-red:        #C24C4C;   /* errors, warnings */


    /* --- Typography --- */
    --ff-body: "IBM Plex Serif", serif;
    --ff-ui:   "IBM Plex Sans", sans-serif;
    --ff-mono: "IBM Plex Mono", monospace;

    /*--fs-base: clamp(15px, 1.6vw, 17px);*/
    --fs-base: clamp(17px, 2.2vw, 19px);
    --lh-base: 1.6;


    /* --- Spacing scale (modular-ish) --- */
    --space-2xs: 0.125rem;
    --space-xs:  0.25rem;
    --space-s:   0.5rem;
    --space-m:   1rem;
    --space-l:   2rem;
    --space-xl:  3rem;


    /* --- Breakpoints (for raw CSS media queries) --- */
    --bp-s:  640px;   /* roughly UIkit @s */
    --bp-m:  960px;   /* UIkit @m */
    --bp-l: 1200px;   /* UIkit @l */
    --bp-xl:1600px;   /* UIkit @xl */
}


/* ============================================================
   1. RESETS & GLOBAL OVERRIDES
   Basic normalization + fixes to UIkit defaults
   ============================================================ */

/* --- Box sizing: sane layout model everywhere --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- HTML & body baseline --- */
html {
    font-size: var(--fs-base);
    -webkit-text-size-adjust: 100%; /* prevents odd scaling on Safari */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ff-body);
    line-height: var(--lh-base);
    color: var(--clr-text);
    background-color: var(--clr-bg);
}

/* --- Restore proper italics killed by UIkit --- */
em, i {
    color: inherit !important;
    font-style: italic !important;
}
strong em,
strong i {
    font-style: italic !important;
}

/* --- Remove UIkit’s extra margins on first/last children --- */
.uk-container > :first-child {
    margin-top: 0;
}
.uk-container > :last-child {
    margin-bottom: 0;
}

/* --- Base links --- */
a {
    color: var(--clr-blue-500);
    text-decoration: none;
}
a:hover,
a:focus {
    text-decoration: underline;
}

/* --- Images: prevent weird width issues inside flex containers --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Selection highlight (subtle, on brand) --- */
::selection {
    background: var(--clr-green-100);
    color: var(--clr-text);
}

/* --- Code inline baseline (monospace + subtle bg) --- */
code, kbd, samp {
    font-family: var(--ff-mono);
    font-size: 0.95em;
    background: var(--clr-green-50);
    padding: 0.1em 0.25em;
    border-radius: 3px;
}


/* ============================================================
   2. GENERAL TYPOGRAPHY
   Headings, paragraphs, lists, blockquotes, inline elements
   ============================================================ */

/* --- Paragraphs --- */
p {
    margin: 0 0 var(--space-m);
    font-size: 1rem;
    line-height: var(--lh-base);
}

/* --- Headings (main hierarchy) --- */

h1, h2, h3, h4, h5, h6 {
    margin-top: var(--space-l);
    margin-bottom: var(--space-s);
    font-family: var(--ff-ui);
    font-weight: 700;
    line-height: 1.25;
    color: var(--clr-text);
    letter-spacing: 0.015em;
}

h1 {
    font-size: 2.2rem;
}
h2 {
    font-size: 1.8rem;
}
h3 {
    font-size: 1.45rem;
}
h4 {
    font-size: 1.25rem;
}
h5 {
    font-size: 1.1rem;
}
h6 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* --- UIkit-specific heading overrides (uk-heading-*) --- */

.uk-heading-small,
.uk-heading-medium,
.uk-heading-large,
.uk-heading-xlarge {
    font-family: var(--ff-ui);
    font-weight: 700;
    letter-spacing: 0.015em;
}

/* UIkit's display/hero headings */
.uk-heading-medium   { font-size: 2.4rem; line-height: 1.15; }
.uk-heading-large    { font-size: 3.0rem; line-height: 1.1; }
.uk-heading-xlarge   { font-size: 3.6rem; line-height: 1.05; }

/* --- Scientific emphasis helpers (keeps italics where needed) --- */
i, em {
    font-style: italic !important; /* reinforce Section 1 */
}

strong {
    font-weight: 700;
}

strong em,
strong i {
    font-style: italic !important;
    font-weight: 700;
}

/* --- Lists --- */

ul, ol {
    padding-left: 1.4rem;
    margin: 0 0 var(--space-m);
}

li {
    margin-bottom: 0.4em;
}

/* --- Blockquote --- */

blockquote {
    margin: var(--space-m) 0;
    padding-left: var(--space-m);
    border-left: 4px solid var(--clr-green-600);
    font-style: italic;
    color: var(--clr-grey-dark);
}

/* --- HR divider --- */

hr {
    border: none;
    border-top: 1px solid var(--clr-grey-light);
    margin: var(--space-l) 0;
}

/* --- Inline code (extends Section 1 baseline) --- */

code {
    background: var(--clr-green-50);
    color: var(--clr-text);
}

/* --- Preformatted blocks --- */

pre {
    font-family: var(--ff-mono);
    font-size: 0.95rem;
    padding: var(--space-m);
    border-radius: 6px;
    background: var(--clr-green-50);
    overflow-x: auto;
    margin-bottom: var(--space-m);
}


/* ============================================================
   3. GENERAL LAYOUT
   Containers, sections, spacing rhythm, simple grid helpers
   ============================================================ */

/* --- Page container tweaks --- */

/* Constrain max width slightly more than UIkit defaults (optional) */
.uk-container {
    max-width: 1200px; /* UIkit default is 1200px too — adjust if needed */
    padding-left: var(--space-m);
    padding-right: var(--space-m);
}

/* --- Section blocks --- */

.section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    background: var(--clr-bg);
}

.section-alt {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    background: var(--clr-bg-alt);
}

/* Narrower sections (for research descriptions, publications, etc.) */
.section-slim {
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
}

/* --- Content width limits --- */

.content-max {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Great for intro text blocks or explanation paragraphs */

/* --- Spacing utilities (common layout helpers) --- */

.mt-0   { margin-top: 0 !important; }
.mb-0   { margin-bottom: 0 !important; }
.mt-s   { margin-top: var(--space-s) !important; }
.mb-s   { margin-bottom: var(--space-s) !important; }
.mt-m   { margin-top: var(--space-m) !important; }
.mb-m   { margin-bottom: var(--space-m) !important; }
.mt-l   { margin-top: var(--space-l) !important; }
.mb-l   { margin-bottom: var(--space-l) !important; }
.mt-xl  { margin-top: var(--space-xl) !important; }
.mb-xl  { margin-bottom: var(--space-xl) !important; }

/* These are very handy around images, cards, and arbitrary blocks */

/* --- Simple inline grid helpers (for when UIkit grid is overkill) --- */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
}

@media (max-width: var(--bp-m)) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* --- Media wrapper --- */

.media {
    display: flex;
    align-items: flex-start;
    gap: var(--space-m);
}

.media img {
    max-width: 180px;
    border-radius: 6px;
}

.media-body {
    flex: 1;
}

/* Great for team member profiles, PI bio blocks, etc. */

/* --- Card adjustments (if using UIkit card) --- */

.uk-card {
    border-radius: 6px;
    overflow: hidden;
}

.uk-card > :first-child {
    margin-top: 0;
}
.uk-card > :last-child {
    margin-bottom: 0;
}

.highlight-badge {
    display: inline-block;
    background: var(--clr-yellow);
    color: #000;
    padding: 0.35em 0.6em;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: var(--space-s);
}


/* ============================================================
   4. HEADER-SPECIFIC
   Hero area, logo, intro blocks
   ============================================================ */

/* --- Lab site header wrapper --- */
.site-header {
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
    background: var(--clr-bg);
}

/* Alt header (optional) */
.site-header-alt {
    background: var(--clr-green-50);
}

/* --- Logo --- */
.site-logo {
    display: block;
    max-width: 180px;
    height: auto;
    margin-bottom: var(--space-m);
}

/* If the logo is text only */
.site-logo-text {
    font-family: var(--ff-ui);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-green-700);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-s);
}

/* --- Header title + subtitle --- */
.site-title {
    font-family: var(--ff-ui);
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0 0 var(--space-s);
}

.site-subtitle {
    font-family: var(--ff-body);
    font-size: 1.25rem;
    color: var(--clr-grey-dark);
    margin-bottom: var(--space-m);
}

/* --- Header image (optional hero) --- */
.header-hero-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: var(--space-m);
}

/* --- Header container tightening (UIkit fix) --- */
.site-header .uk-container > :first-child {
    margin-top: 0;
}


/* ============================================================
   5. NAVIGATION-SPECIFIC
   UIkit navbar styling, link spacing, sticky behaviour
   ============================================================ */

/* --- Navbar wrapper --- */
.site-nav {
    /*background: var(--clr-bg);*/
    border-bottom: 1px solid var(--clr-grey-light);
}

#navbar-wrapper {
    background-color: rgb(var(--clr-green-50-rgb) / 0.90) !important;
    border-bottom: 1px solid var(--clr-grey-light);
}
.uk-navbar-dropdown {
	background-color: rgb(var(--clr-green-50-rgb) / 0.95) !important;
}
/* --- UIkit navbar overrides --- */
.uk-navbar-nav > li > a {
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 1rem;
    color: var(--clr-text);
    letter-spacing: 0.015em;
    padding: var(--space-s) var(--space-m);
}

/* Hover / focus */
.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-open > a {
    color: var(--clr-green-700);
}

/* Active nav item (if you add a .is-active class manually) */
.uk-navbar-nav > li.is-active > a {
    color: var(--clr-green-700);
}

/* --- Dropdowns --- */
.uk-navbar-dropdown {
    border-radius: 6px;
    padding: var(--space-m);
}

/* Dropdown items */
.uk-nav > li > a {
    font-family: var(--ff-ui);
    font-size: 0.95rem;
}

.uk-nav > li > a:hover {
    color: var(--clr-green-700);
}

/* --- Sticky navbar --- */
.site-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* When navbar becomes sticky */
.uk-navbar-sticky {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    /*background-color: #fff !important;*/ /* reinforce */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- Mobile adjustments --- */
@media (max-width: var(--bp-m)) {
    .uk-navbar-nav > li > a {
        padding: var(--space-s) var(--space-s);
    }
}

/* Override UIkit navbar background */
.uk-navbar-container {
    background-color: rgb(var(--clr-green-50-rgb) / 0) !important;
    backdrop-filter: blur(4px);
}

/* Name on navbar */
.lab-logo {
    color: var(--clr-green-600) !important;
    font-weight: 700;
    letter-spacing: -0.01em;     /* smooths text */
    padding-left:var(--space-m);
}
/* Make sure hover doesn’t revert to UIkit blue */
.lab-logo:hover {
    color: var(--clr-green-700) !important;
}


/* ============================================================
   6. FOOTER-SPECIFIC
   Footer layout, colours, typography
   ============================================================ */

/* --- Main footer wrapper --- */
.site-footer {
    background: var(--clr-green-700);
    color: #ffffff;
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
}

/* --- Footer content max-width --- */
.site-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-m);
}

/* --- Footer headings --- */
.site-footer h4 {
    margin-top: 0;
    margin-bottom: var(--space-s);
    font-family: var(--ff-ui);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

/* --- Footer text --- */
.site-footer p,
.site-footer a,
.site-footer li {
    font-family: var(--ff-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e8f3ef;
}
.site-footer a {
    font-size: inherit !important;
    color: inherit;
    text-decoration: underline;
}
/* --- Links --- */
.site-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* --- Lists --- */
.site-footer ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 0.4rem;
}

/* --- Bottom strip --- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.25);
    margin-top: var(--space-l);
    padding-top: var(--space-s);
    font-size: 0.85rem;
    color: #d6e6e0;
}

/* Align text in small screens */
@media (max-width: var(--bp-m)) {
    .site-footer,
    .footer-bottom {
        text-align: center;
    }
}


/* ============================================================
   7. FORM ELEMENTS
   Inputs, textareas, selects, labels, buttons, validation
   ============================================================ */

/* --- Form wrapper spacing (optional) --- */
.form-block {
    margin-bottom: var(--space-l);
}

/* --- Labels --- */
label {
    display: block;
    margin-bottom: var(--space-xs);
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--clr-text);
}

/* --- Basic input fields (override UIkit subtly) --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: var(--space-s) var(--space-m);
    font-family: var(--ff-body);
    font-size: 1rem;
    border: 1px solid var(--clr-grey-light);
    border-radius: 6px;
    background: #ffffff;
    color: var(--clr-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
}

/* --- Focus state (scientific, clean) --- */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--clr-green-600);
    box-shadow: 0 0 0 3px rgba(46, 125, 97, 0.15);
}

/* --- Disabled fields --- */
input:disabled,
textarea:disabled,
select:disabled {
    background: var(--clr-grey-light);
    color: var(--clr-grey);
    cursor: not-allowed;
}

/* --- Textarea sizing --- */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- Select icon (simple custom arrow) --- */
select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--clr-grey) 50%),
        linear-gradient(135deg, var(--clr-grey) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 5px),
        calc(100% - 15px) calc(50% - 5px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* --- Checkboxes & radios (UIkit compatible) --- */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--clr-green-600);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

/* --- Form help / small text --- */
.form-help {
    font-size: 0.85rem;
    color: var(--clr-grey);
    margin-top: var(--space-xs);
}

/* --- Error messages --- */
.form-error {
    color: var(--clr-red);
    font-size: 0.9rem;
    margin-top: var(--space-xs);
    font-weight: 700;
}

/* --- Field error state --- */
.is-invalid {
    border-color: var(--clr-red) !important;
    box-shadow: 0 0 0 2px rgba(194, 76, 76, 0.2) !important;
}

/* --- Submit buttons (override UIkit if used) --- */
button,
input[type="submit"],
.uk-button-primary {
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 1rem;
    padding: var(--space-s) var(--space-l);
    border-radius: 6px;
    border: none;
    color: #ffffff;
    background-color: var(--clr-green-600);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
.uk-button-primary:hover {
    background-color: var(--clr-green-700);
}

/* Disabled button */
button:disabled,
input[type="submit"]:disabled,
.uk-button-primary:disabled {
    background-color: var(--clr-grey-light);
    color: var(--clr-grey);
    cursor: not-allowed;
}


/* ============================================================
   8. UTILITIES & HELPERS
   (only one utility for now)
   ============================================================ */

/* --- Always show vertical scrollbar (prevents layout shift) --- */
html {
    overflow-y: scroll;
}

/* ============================================================
   GALLERY SLIDER NAV – robust arrows (UIkit)
   Fixes thin lines, disappearing arrows and hover jump
   ============================================================ */

/* Base nav buttons */
.gallery-section .uk-slidenav,
.gallery-slider  .uk-slidenav {

    /* Kill UIkit vertical centering hack */
    margin-top: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    /* Size + layout */
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Visual */
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.60) !important;
    backdrop-filter: blur(2px);

    transition: background 0.2s ease;
}
/* Always visible (remove hidden-on-hover behaviour) */
.gallery-section .uk-hidden-hover,
.gallery-slider  .uk-hidden-hover {
    opacity: 1 !important;
}
/* Hover state */
.gallery-section .uk-slidenav:hover,
.gallery-slider  .uk-slidenav:hover {
    background: rgba(0, 0, 0, 0.85) !important;
}
/* Enlarge SVG icon */
.gallery-section .uk-slidenav svg,
.gallery-slider  .uk-slidenav svg {
    width: 22px !important;
    height: 36px !important;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.9)) !important;
}
/* CRUCIAL: override inline stroke + thicken arrow */
.gallery-section .uk-slidenav svg polyline,
.gallery-slider  .uk-slidenav svg polyline {
    stroke: #ffffff !important;
    stroke-width: 2.8 !important;
}


/*final personal*/
ul.uk-navbar-nav > li.menuItem > a{
	font-size: 14px!important;
}
ul.uk-navbar-nav > li.menuItem.uk-active > a{
	color: var(--clr-green-700)!important;
}
.colored{
	color: var(--clr-green-700) !important;
}
.colored_background{
	background: var(--clr-green-700);
}
.light_background{
	background-color: rgb(var(--clr-green-50-rgb) / 0.90) !important;
}
.mano {
	cursor: pointer;
}
.uk-breadcrumb >li > span {
	color: #ccc!important;
}
.uk-breadcrumb >li > a {
	color: white;
}
.uk-breadcrumb >li > a:hover{
	color: var(--clr-green-100)!important;
}
.uk-navbar-dropdown-nav > li >a {
	text-transform:uppercase;
	font-size:12px!important;
}
.light_background_100 {
	background-color: var(--clr-green-100)!important;
}
.light_background_50 {
	background-color: rgb(var(--clr-green-50-rgb) / 0.50) !important;
}
.white{
    color:#ffffff!important;
}
.gallery-section {
    max-width: 100%;
    overflow: hidden;
}
.gallery-slider {
    max-width: 100%;
    overflow: hidden;
}
.gallery-slider .uk-panel {
    display: flex;
    justify-content: center;
}
.gallery-slider .uk-panel img {
    height: 200px;
    width: auto;
    object-fit: cover;
}
@media (min-width: 960px) {
    .gallery-slider .uk-panel img {
        height: 400px;
    }
}
.gallery-caption {
    font-family: var(--ff-ui);
    color:#000;
    font-size: 0.75rem;
}