/* 1. CSS Variables */
:root {
  --lg-accent-h: 210;
  --lg-accent-s: 80%;
  --lg-accent-l: 60%;
  --lg-accent: var(--lg-accent-h) var(--lg-accent-s) var(--lg-accent-l);
  --lg-radius: 22px;
  --lg-radius-inner: 12px;
  --lg-radius-deep: 4px;
  --lg-blur: clamp(12px, 2.6vw, 22px);
  --lg-saturation: 1.35;
  --lg-brightness: 1.06;
  --lg-shadow: 0.42;
  --lg-top-sheen: 0.60;
  --lg-border: 1.25px;
  --lg-bg: 215 30% 7%;
}

/* 2. Global Reset and Base Styles */
@font-face {
  font-family: 'Segoe UI';
  src: url('/assets/fonts/segoeuil.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI';
}
html, body {
    height: 100%;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    padding: 0;
    overflow-x: hidden;
    margin: 0; 
}
body {
    color: #dddddd;
    background-color: rgb(18, 22, 24);
    line-height: 1.6;
    flex-grow: 1;
    font-size: 1.2rem;
    overflow-x: hidden;
    padding-top: 0; 
}
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background-color: #0f1112;
}
::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
    border: 3px solid #0f1112;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}
html {
    scrollbar-width: thin;
    scrollbar-color: #555 #0f1112;
}

/* 3. Global Layout and Utilities */

/* Skip-to-content link, hidden until focused (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(30, 80, 150);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 0 0 var(--lg-radius) var(--lg-radius);
    z-index: 10001;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: top 0.15s ease;
    white-space: nowrap;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* No blue outline ring on select/focus (per user). Interactive elements show their
   hover animation on focus instead; the skip-link keeps its own visible ring. */
:focus { outline: none; }
:focus-visible { outline: none; }

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(18, 22, 24);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    pointer-events: none;
}
.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.breadcrumb {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
main {
    position: relative;
    z-index: 2;
    flex-grow: 1; 
    width: 100%;
    margin: 0 auto;
    margin-top: 0; 
    padding-bottom: 0; 
}
.wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--lg-radius);
    max-width: 414px;
    margin: 0 auto;
    border-left: 2px solid #dddddd;
    border-right: 2px solid #dddddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    height: 100%;
}
.content-box-grey {
  display: inline-block;
  background-color: rgba(66, 73, 73, 0.195);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 15px;
  border-radius: var(--lg-radius-inner);
  margin: 15px auto 0 auto;
  text-align: center;
}
.content-box-grey p:first-child {
  margin-top: 0;
}
.content-box-grey p {
  max-width: none;
  margin: 0;
  text-align: inherit;
}
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--lg-radius);
  display: inline-block;
  padding: 1rem;
  margin: 0.5rem 0;
}

/* 4. Header and Navigation */
header {
    background-color: rgb(30, 80, 150);
    height: 50px;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1000px;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, transform 0s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.menu-items-wrapper {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1000px;
    height: auto;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-top: none;
    background:
        linear-gradient(
            180deg,
            rgba(20, 26, 32, 0.65),
            rgba(20, 26, 32, 0.72)
        ),
        radial-gradient(
            120% 100% at 50% -40%,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.0) 60%
        ),
        linear-gradient(
            90deg,
            rgba(100, 150, 200, 0.14),
            rgba(100, 150, 200, 0.0)
        );
    backdrop-filter: blur(calc(var(--lg-blur) * 0.9)) saturate(1.1) brightness(1);
    -webkit-backdrop-filter: blur(calc(var(--lg-blur) * 0.9)) saturate(1.1) brightness(1);
    background-clip: padding-box;
    background-blend-mode: screen, soft-light;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border-radius: 0 0 var(--lg-radius) var(--lg-radius);
    z-index: 995;
    transition:
        max-height 0.3s ease-out,
        opacity 0.3s ease-out,
        visibility 0s 0.3s,
        margin-left 0s;
}
header.glass {
  border: none !important;
  border-radius: var(--lg-radius);
  overflow: hidden;
  isolation: isolate;
  background-clip: padding-box;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(120% 100% at 50% -40%, hsl(0 0% 100%/0) 0%, hsl(0 0% 100%/0) 60%),
    linear-gradient(180deg, hsl(0 0% 100%/0) 0%, hsl(0 0% 100%/0) 45%, hsl(0 0% 0%/0) 100%),
    linear-gradient(90deg, hsl(var(--lg-accent)/0), hsl(var(--lg-accent)/0));
  backdrop-filter: blur(calc(var(--lg-blur) * 0.9)) saturate(var(--lg-saturation)) brightness(var(--lg-brightness));
  -webkit-backdrop-filter: blur(calc(var(--lg-blur) * 0.9)) saturate(var(--lg-saturation)) brightness(var(--lg-brightness));
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100%/0.45),
    inset 0 -1px 0 hsl(0 0% 0%/0.35),
    inset 0 0 0 0.5px hsl(0 0% 100%/0.08);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
  background-blend-mode: screen, soft-light;
}
.header-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100px;
    background: linear-gradient(180deg,
      rgb(18 22 24 / 0.65) 0%,
      rgb(18 22 24 / 0.25) 40%,
      rgb(18 22 24 / 0.00) 100%);
    z-index: 999;
    pointer-events: none;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    max-width: 100%; 
    width: 100%; 
    margin: 0 auto;
    height: 100%;
    transform: translateY(-2px);
    padding: 0 15px;
    position: relative; 
    user-select: none; 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(2px) translateX(-12px);
    user-select: none; 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.logo-image {
    height: 40px;
    width: auto;
    display: block;
    margin: 0;
}
.menu-check {
    display: none;
}
.menu-toggle {
    display: block; 
    background: none;
    border: none;
    cursor: pointer;
    position: fixed; 
    top: 15px; 
    right: 50px; 
    left: auto; 
    transform: none;
    z-index: 1010; 
    display: flex;
    align-items: center;
    background-color: rgba(57, 108, 125, 0.203); 
    border-radius: var(--lg-radius); 
    padding: 7.5px; 
    width: 42px; 
    height: 36px; 
    justify-content: center;
    transition: background-color 0.3s ease;
    user-select: none; 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
@media (min-width: 1080px) {
    .menu-toggle {
        right: calc(50% - 500px + 15px); 
        left: auto;
        transform: none;
    }
}
.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.menu-check:checked + .menu-toggle {
    background-color: rgba(100, 150, 200, 0.2);
}
.menu-icon {
    width: 30px;
    height: 30px;
    fill: #ffffff; 
}

.menu-check:checked ~ .menu-toggle + .menu-items-wrapper {
    max-height: 80vh; 
    opacity: 1;
    visibility: visible;
    padding-bottom: 20px; 
    transition: max-height 0.3s ease-in, opacity 0.3s ease, visibility 0s 0s, padding-bottom 0.3s ease; 
}
.nav-links {
    list-style: none;
    display: none; 
    margin: 0;
    padding: 0;
}
.desktop-nav {
    display: none; 
}
.menu-items-wrapper .nav-links {
    display: flex;
    flex-direction: column; 
    align-items: flex-end; 
    padding: 20px 20px 0; 
    width: 100%; 
}
.nav-links li {
    margin: 0; 
    width: 100%; 
}
.menu-items-wrapper .nav-links li {
    margin: 15px 0; 
    width: 100%;
    text-align: right;
}
.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.1rem; 
    font-weight: 300;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
    user-select: none; 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.nav-links a:hover {
    color: rgb(169, 204, 227);
}
.transparent .nav-links a,
.header.scrolled .nav-links a {
    transition: color 0.3s ease-in-out;
}

/* 5. Hero and Page Section Styles */
.hero, .hero-2 {
    width: 100%;
    min-height: 35vh;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 80px 20px 40px 20px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 0; 
}
.hero {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(15, 18, 19, 0) 50%),
        url('/assets/images/index/index-background.png') no-repeat center center;
    background-size: cover;
}
.hero-2 {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(15, 18, 19, 0) 50%),
        url('/assets/images/about/about-background.png') no-repeat center center;
    background-size: cover;
}
.hero-headshot, .hero-headshot-2 {
    width: 100%;
    max-width: clamp(300px, 30vw, 500px);
    height: auto;
    border-radius: var(--lg-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    object-fit: cover;
    display: block;
    margin: 0 auto 20px auto;
    transform: none;
}
.hero-name {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 20px 0 10px 0;
    font-weight: 300;
    text-align: center;
    width: 100%;
}
.hero-academic-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-academic-info .subtext {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.4;
    text-align: center;
    max-width: 800px;
}
.subtext .line {
    display: block;
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    line-height: 1.1;
}
.subtext .smaller-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 300;
}

/* 6. Content Containers and Typography */
p {
    margin-bottom: 20px;
    color: #dddddd;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}
.list {
    margin-bottom: 20px;
    color: #dddddd;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8em;
}
.section-box {
    background-color: rgba(20, 30, 40, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--lg-radius);
    padding: 10px;
    margin: 40px 40px; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}
.sub-section-box {
    background-color: rgba(15, 18, 22, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--lg-radius-inner);
    padding: 8px;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}
.sub-section-box.theme-uf {
    background-color: rgba(80, 130, 220, 0.07);
    border-color: rgba(120, 160, 230, 0.18);
}
.sub-section-box.theme-fau {
    background-color: rgba(40, 90, 150, 0.10);
    border-color: rgba(110, 160, 200, 0.18);
}
.sub-section-box.theme-bths {
    background-color: rgba(90, 130, 230, 0.08);
    border-color: rgba(140, 170, 240, 0.18);
}
.sub-section-box.theme-mda {
    background-color: rgba(55, 70, 95, 0.20);
    border-color: rgba(140, 155, 180, 0.22);
}
.about-section hr.divider,
.contact-section hr.divider {
    border: none;
    border-top: 1px solid rgba(169, 169, 169, 0.3);
    margin: 40px auto;
    max-width: 800px;
}
.contact-section hr.divider {
    margin-bottom: 10px;
}
.section-title-blue,
.section-title-light-blue {
    font-family: 'Segoe UI';
    font-weight: 300;
    color: rgb(100, 150, 200);
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.bold-text {
    color: #818181;
    font-weight: lighter;
    font-size: 1.15em;
    margin-bottom: 5px;
    text-shadow: 0 0 0.5px #818181;
}
.underline-text {
    display: inline-block;
    position: relative;
    font-weight: lighter;
    font-size: 0.8em;
    margin-bottom: 10px;
}
.underline-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 1px;
    background-color: rgb(100, 150, 200);
}
.italic-text {
    font-style: italic;
    font-weight: lighter;
    font-size: 0.7em;
}
.institution-text {
    font-style: italic;
    font-weight: lighter;
    font-size: 0.95em;
    margin-bottom: 0;
    color: #aaaaaa;
}
.italic-text-date {
    font-style: italic;
    font-weight: lighter;
    font-size: 0.9em;
    margin-top: 0;
    margin-bottom: 0;
}
.contact-section p strong,
.about-section p strong {
    font-family: 'Segoe UI';
    font-weight: 300;
}
.motto {
    color: rgb(100, 150, 200);
    font-weight: 300;
    font-size: 1.2rem;
}
.about-section {
    padding: 0px 20px;
    text-align: center;
    flex-grow: 1;
}
.contact-section {
    padding: 50px 20px;
    text-align: center;
    flex-grow: 1;
    padding-top: 20px;
}
.contact-section p,
.contact-section ul {
    font-weight: 300;
    font-size: 1.2rem;
    color: #dddddd;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.contact-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.author-headshot {
    border-radius: 50%; 
    width: 80px; 
    height: 80px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* 7. Interactive Elements and Buttons */
.activity-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 10px;
    background-color: transparent;
    border: none;
    margin: 0 auto 10px;
    transition: color 0.3s ease;
    color: inherit;
}
.activity-dropdown summary:focus-visible {
    outline: none;
    color: #cccccc;
}
.activity-dropdown summary:hover {
    color: #cccccc;
}
.activity-dropdown summary::-webkit-details-marker {
    display: none;
}
.activity-dropdown summary .fa-chevron-down {
    transition: transform 0.3s ease;
}
.activity-dropdown[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}
.activities-content {
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
    font-size: 0.8rem;
}
details[open] .activities-content {
    max-height: 500px; 
    height: auto;
    opacity: 1;
    margin-top: 5px;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
details:not([open]) .activities-content {
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
.social-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 220px;
    margin: 0 auto;
}
.btn {
    display: inline-block;
    padding: 15px 20px;
    font-size: 1.2rem;
    color: #ffffff;
    background-color: rgba(100, 150, 200, 0.8);
    border-radius: var(--lg-radius);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 220px;
    text-align: center;
}
.btn i {
    margin-right: 10px;
    vertical-align: middle;
}
.btn:hover,
.btn:focus-visible {
    background-color: rgba(70, 120, 170, 0.9);
    transform: translateY(-2px);
}
.email-btn, .instagram-btn, .twitter-btn, .github-btn, .linkedin-btn, .facebook-btn, .tiktok-btn, .youtube-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--lg-radius);
}
.email-btn {
    background-color: rgba(212, 70, 56, 0.8);
}
.email-btn:hover {
    background-color: rgba(179, 58, 47, 0.9);
}
.instagram-btn {
    background-color: rgba(225, 48, 108, 0.8);
}
.instagram-btn:hover {
    background-color: rgba(193, 53, 132, 0.9);
}
.twitter-btn {
    background-color: rgba(29, 161, 242, 0.8);
}
.twitter-btn:hover {
    background-color: rgba(10, 133, 217, 0.9);
}
.github-btn {
    background-color: rgba(36, 41, 46, 0.8);
}
.github-btn:hover {
    background-color: rgba(26, 29, 33, 0.9);
}
.linkedin-btn {
    background-color: rgba(0, 119, 181, 0.8);
}
.linkedin-btn:hover {
    background-color: rgba(0, 85, 130, 0.9);
}
.facebook-btn {
    background-color: rgba(66, 103, 178, 0.8);
}
.facebook-btn:hover {
    background-color: rgba(54, 88, 153, 0.9);
}
.tiktok-btn {
    background-color: rgba(0, 0, 0, 0.8);
}
.tiktok-btn:hover {
    background-color: rgba(51, 51, 51, 0.9);
}
.youtube-btn {
    background-color: #ff0000;
}
.youtube-btn:hover {
    background-color: #cc0000;
}
.institution-logo-wrap {
  display: block;
  text-align: center;
  overflow: hidden;
}
.institution-logo {
  display: inline-block;
  width: 100%;
  height: auto;
  max-height: 60px;
  min-height: 30px;
  object-fit: contain;
}

/* Institution logo chips: landscape cards at one consistent height + corner radius; bg per logo
   (the InputConfig app icon is square and intentionally stands out from the wordmarks) */
.logo-card {
  display: block;
  height: 70px;
  width: auto;
  max-width: 100%;
  margin: 4px auto 12px auto;
  object-fit: contain;
}

/* 8. Blog Page Specific Styles */
#blog {
    padding-top: 60px; 
    width: 100%;
    background:
        linear-gradient(180deg, rgba(18, 22, 24, 0.8) 0%, rgba(18, 22, 24, 0.1) 15%, transparent 35%),
        linear-gradient(to top, rgba(18, 22, 24, 0.95), rgba(18, 22, 24, 0) 50%),
        url('/assets/images/background_blog.png') no-repeat center top;
    background-size: cover;
    background-color: rgb(18, 22, 24); 
    min-height: calc(100vh - 24px - 60px); 
}
.blog-main-heading { 
    margin-bottom: 10px; 
}
.blog-sub-heading {
    max-width: 600px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
ul.list,
ol.list {
    max-width: 60%;
}
.blog-back-link {
    display: inline-block;
    color: rgb(100, 150, 200);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    padding: 8px 18px;
    border: 1px solid rgba(100, 150, 200, 0.35);
    border-radius: var(--lg-radius-inner);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.blog-back-link:hover {
    background-color: rgba(100, 150, 200, 0.1);
    border-color: rgba(100, 150, 200, 0.6);
}
.blog-back-link i {
    margin-right: 6px;
}
.article-section-wrapper {
    margin-top: 0; 
    padding-top: 30px;
}
.article-list-heading {
    margin-bottom: 30px;
}
.archive-note { 
    font-size: 1rem; 
    color: #888; 
}
.article-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
}
.article-list > li {
    margin-bottom: 0; 
    list-style: none;
}
.article-card {
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: rgba(30, 45, 60, 0.6);
    box-shadow: none;
    border-radius: var(--lg-radius-inner);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.article-card:hover,
.article-card:focus-visible {
    background-color: rgba(40, 55, 70, 0.75);
    transform: translateY(-3px);
}
.article-image-container-blog {
    flex-shrink: 0; 
    width: 100%; 
    min-height: 150px; 
    max-height: 250px; 
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--lg-radius-inner) var(--lg-radius-inner) 0 0;
}
.article-image-container-blog img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
    background-color: rgb(18, 22, 24); 
}
.article-content {
    padding: 20px;
    flex-grow: 1;
    text-align: left;
}
.article-content h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: rgb(100, 150, 200);
    font-weight: 300;
}
.article-content p {
    font-size: 1rem;
    color: #dddddd;
    margin-bottom: 15px;
    max-width: none;
    text-align: left;
}
.article-meta {
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-top: 5px; 
}
@media (min-width: 700px) {
    .article-card {
        flex-direction: row; 
        min-height: 200px; 
    }
    .article-image-container-blog {
        width: 30%;
        height: 100%;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--lg-radius-inner) 0 0 var(--lg-radius-inner);
        max-height: none; 
        aspect-ratio: auto; 
        display: flex; 
        align-items: center;
        justify-content: center;
        min-width: 150px;
        max-width: 250px;
    }
    .article-content {
        border-radius: 0 var(--lg-radius-inner) var(--lg-radius-inner) 0;
        width: 70%;
        padding: 20px 25px;
    }
    .article-image-container-blog img {
        background-color: transparent; 
    }
    .article-content h3 {
        font-size: 1.4rem; 
        margin-bottom: 8px; 
    }
    .article-content p {
        font-size: 0.95rem; 
        margin-bottom: 10px; 
    }
    .article-meta {
        font-size: 0.8rem; 
    }
}

/* 9. Footer */
.footer-wrapper {
    position: relative;
    bottom: auto; 
    left: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: all; 
    z-index: 1000;
    margin-top: 20px;
}
footer {
    font-family: 'Segoe UI';
    width: 100%;
    max-width: calc(100% - 2.4rem); 
    margin: 0 auto;
    padding: 2px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--lg-radius) var(--lg-radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dddddd;
    font-size: 0.8rem;
    line-height: 1.2;
    min-height: 24px;
    pointer-events: all; 
}
footer p {
    font-family: 'Segoe UI';
    font-size: 0.8rem;
    margin: 0;
    color: #dddddd;
}
.footer-link {
    text-decoration: none; 
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 10. Media Queries */
@media (min-width: 460px) {
    .menu-toggle {
        display: none;
    }
    .menu-items-wrapper {
        display: none;
    }
    .desktop-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-left: 20px; 
        padding: 0;
    }
    .desktop-nav li {
        margin: 0 0 0 25px; 
        width: auto; 
        display: flex; 
        align-items: center; 
        height: 50px; 
    }
    .desktop-nav a {
        font-size: 0.95rem;
        padding: 0;
    }
}

/* 11. Aesthetic Refinements: Left-Aligned Lists */
.activities-content ul,
.activities-content ol,
.sub-section-box.list ul,
.sub-section-box.list ol,
ul.list,
ol.list {
    text-align: left;
}
.activities-content li,
.sub-section-box.list li,
ul.list li,
ol.list li {
    text-align: left;
}
.activities-content > p:has(> span:first-child) {
    text-align: left;
    max-width: 70%;
}
.institution-logo-wrap a {
    display: inline-block;
    line-height: 0;
}
@media (max-width: 600px) {
    .section-box {
        padding: 16px;
    }
}

/* 12. Reduced Motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .page-loader {
        display: none;
    }
}

/* 11. Click-through image carousel (used in gallery posts) */
.rh-carousel {
    position: relative;
    max-width: 640px;
    margin: 28px auto;
}
.rh-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--lg-radius-inner);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 18, 22, 0.6);
}
.rh-carousel__track::-webkit-scrollbar { display: none; }
.rh-carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.rh-carousel__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(34px) saturate(1.3) brightness(0.55);
    transform: scale(1.18);
    z-index: 0;
}
.rh-carousel__slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 440px;
    object-fit: contain;
    display: block;
    background: transparent;
}
.rh-carousel__slide img {
    cursor: zoom-in;
}
/* in-slide captions are hidden; the active caption is rendered below the box */
.rh-carousel__slide figcaption {
    display: none;
}
.rh-carousel__caption,
.blog-caption {
    display: block;
    max-width: 600px;
    margin: 12px auto 0 auto;
    padding: 0 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #9fb0bd;
    font-style: italic;
    text-align: center;
    letter-spacing: 0.2px;
}
/* inline figure captions need breathing room before the body text resumes */
.blog-caption {
    margin: 12px auto 32px auto;
}

/* Single image with a blurred color fill behind it (for diagrams / non-cropping photos) */
.fillbox {
    position: relative;
    overflow: hidden;
    max-width: 640px;
    margin: 26px auto 8px auto;
    border-radius: var(--lg-radius-inner);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #0b0d10;
}
.fillbox__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(34px) saturate(1.3) brightness(0.5);
    transform: scale(1.18);
    z-index: 0;
}
.fillbox img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    margin: 0 auto;
}
.fillbox figcaption,
figure.fillbox + .fillbox-caption {
    position: relative;
    z-index: 1;
}
.rh-carousel__btn {
    position: absolute;
    top: 220px;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(20, 24, 30, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 2.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 2;
}
.rh-carousel__btn:hover { background: rgba(40, 60, 90, 0.85); }
.rh-carousel__btn--prev { left: 10px; }
.rh-carousel__btn--next { right: 10px; }
.rh-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.rh-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}
.rh-carousel__dot[aria-current="true"] { background: rgb(100, 150, 200); }
.rh-carousel__counter {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 9px;
    border-radius: 999px;
    z-index: 2;
}
@media (max-width: 700px) {
    .rh-carousel__slide img { height: 320px; }
    .rh-carousel__btn { top: 160px; width: 48px; height: 48px; font-size: 2rem; }
}
.fillbox img { cursor: zoom-in; }

/* Fullscreen image lightbox */
.rh-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.93);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.rh-lightbox[hidden] { display: none; }
.rh-lightbox__img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
}
.rh-lightbox__cap {
    color: #dfe7ef;
    margin-top: 16px;
    max-width: 80vw;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.45;
}
.rh-lightbox__close {
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 2.4rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.rh-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(20, 24, 30, 0.6);
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rh-lightbox__nav--prev { left: 18px; }
.rh-lightbox__nav--next { right: 18px; }
.rh-lightbox__counter {
    position: absolute;
    top: 18px;
    left: 22px;
    color: #cfd8e2;
    font-size: 0.9rem;
}

/* Content links inside articles use the site accent (matches the About page), not browser blue */
.section-box p a,
.section-box li a,
.blog-caption a,
.rh-carousel__caption a {
    color: rgb(169, 204, 227);
    text-decoration: none;
    font-weight: 300;
    font-family: 'Segoe UI';
    border-bottom: 1px solid rgba(169, 204, 227, 0.35);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.section-box p a:hover,
.section-box li a:hover,
.blog-caption a:hover,
.rh-carousel__caption a:hover {
    color: rgb(200, 224, 240);
    border-bottom-color: rgba(169, 204, 227, 0.9);
}