/* filepath: a:\bharatsurya06.github.io\assets\css\style.css */
/* Basic CSS Styles (Combined from previous examples) */
/*General styling for the page*/
html, body, body * {
    font-family: 'Exo 2', Arial, Helvetica, sans-serif !important;
   
}

html, body {
    height: 100%; /* Ensure html and body take up full height */
    margin: 0;
    padding: 0;
}

body {
    background: none; /* Page-specific backgrounds are set in per-page CSS files */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    /* Make nav stick to top */
    position: relative;
    min-height: 100vh; 
}

main, .blog-section, .about-section, .research-section {
    flex: 1 0 auto;
}

/* Navigation Bar Styles */
nav {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%,  rgba(159, 158, 158, 0.667) 40%, rgba(159, 158, 158, 0.667) 50%,rgba(159, 158, 158, 0.667) 60% rgba(255, 255, 255, 0) 100%) !important;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 48px; /* Reduced height to fit menu options */
    min-height: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: 1px solid #000000;
}

  
.nav-links.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 0.5em;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    transition: color 0.2s ease;
    line-height: 48px;
    padding: 0 4px;
}

.nav-links span {
    color: rgb(0, 0, 0);
    margin: 0 6px;
    font-size: 1.1em;
    line-height: 48px;
}

.nav-links a:hover {
    background: #000000;
    color: #ffffff;
    font-size: 1.1em;
    /* font-weight: 800; */
    border-radius: 0px;
    padding: 0 10px;
    transition: background 0.2s, color 0.2s, font-size 0.2s;
    height: 25px;           /* Set the height of the hover background */
    line-height: 25px;      /* Vertically center the text */
    display: inline-block;  /* Ensure height and line-height apply */
    box-sizing: border-box; /* Include padding in height */

}



.logo { display: none; }

/* Unique transparent card-style navbar for index.html only */
body.index-page {
    background: none !important;
}
body.index-page .hero-section {
    background-image: url('assets/img/rocket.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background-image 0.7s cubic-bezier(.77,0,.18,1), background 0.7s cubic-bezier(.77,0,.18,1);
}
body.index-page.dark-mode .hero-section {
    background-image: url('assets/img/rocket-2.jpg');
}
body.index-page nav {
    background: #ffffff !important;
    box-shadow: 0 4px 24px rgba(80,80,80,0.10);
    border-radius: 18px;
    padding: 0 32px;
    height: 54px;
    min-height: 0;
    width: fit-content;
    margin: 32px auto 0 auto;
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
body.index-page .nav-links.nav-center {
    gap: 0.8em;
}
body.index-page .nav-links a, body.index-page .nav-links span {
    color: #222;
    line-height: 54px;
    font-size: 1.15em;
    /* Prevent background size/height jump on hover */
    display: inline-block;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
    padding: 0 12px;
    transition: background 0.2s, color 0.2s, font-size 0.2s;
}
body.index-page .nav-links a:hover {
    background: #000000;
    color: #ffffff;
    border-radius: 0px;
    /* Keep size consistent on hover */
    font-size: 1.15em;
    height: 38px;
    line-height: 38px;
    display: inline-block;
    box-sizing: border-box;
    padding: 0 12px;
}

/* Hero Section Background */
.hero-section {
    background-image: url('../assets/img/rocket.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Animated Hello! graphic style for landing page */
.hello-graphic {
    font-size: 4.5em;
    font-weight: 800;
    background: linear-gradient(90deg, #000000 20%, #000000 60%, #fc466b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-align: center;
    margin: 0 auto;
    margin-top: 8vh;
    margin-bottom: 60vh;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 32px rgba(0,0,0,0.18);
    user-select: none;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    width: 100%;
    max-width: 100vw;
    transition: color 0.3s;
}
@media (max-width: 700px) {
    .hello-graphic {
        font-size: 2.2em;
        margin-top: 4vh;
    }
}

/* Overall container for the About page content */
.about-container {
    background: linear-gradient(to right, #ff7e5f, #feb47b); /* Vibrant gradient background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto; /* Center the container */
}

/* Footer Styles (From Footer Code) */
footer, footer .container {
    width: 100%;
    display: block;
    text-align: center;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto;
    padding: 10px 0;
}

footer .container p {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

footer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%,  rgba(159, 158, 158, 0.667) 40%, rgba(159, 158, 158, 0.667) 50%,rgba(159, 158, 158, 0.667) 60% rgba(255, 255, 255, 0) 100%) !important; /* Match header gradient */
    color: rgb(0, 0, 0);
    width: 100%;
    text-align: center;
    padding: 10px 0;
    flex-shrink: 0;
    position: relative;
    bottom: 0;
    left: 0;
    border-top: 1px solid #000000;
}

/* Left Side: Logo */
.footer-logo {
    font-size: 1.5em;
    font-weight: bold;
}

/* Center: Social Links */
.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer-social li {
    margin: 0 10px;
}

.footer-social a {
    color: white;
    font-size: 1.5em;
    /* Size of the icons */
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #bbb;
    /* Lighter color on hover */
}

/* Right Side: Contact Info */
.footer-contact {
    text-align: right;
}

/* Tab Styles */
.tab-container {
    margin-top: 20px;
}

.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    /* Align tabs to the left */
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

.tab-link {
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /* Added transitions */
}

/* Add vibrant colors and shadow to the hover effect */
.tab-link:hover {
    background-color: #6495ED;
    /* Light blue */
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Subtle shadow */
}

.tab-content {
    display: none;
    /* Initially hide all content */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    text-align: left;
}

/* About Section Styles */
.about-section {
    background: linear-gradient(120deg, #f0f0f0 0%, #e0e7ff 100%);
    padding: 30px 0 10px 0;
}

.about-container.restructured {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    max-width: 950px;
    margin: 0 auto 20px auto;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(80,80,80,0.10);
    padding: 28px 24px;
}

.about-left, .about-right {
    flex: 1 1 0;
    min-width: 260px;
}

.profile-image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.about-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: 4px solid #fff;
}

.contact-box {
    background: #f7f7fa;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    font-size: 0.98em;
}

.contact-box h2 {
    font-size: 1.1em;
    margin: 0 0 6px 0;
    color: #444;
}

.contact-box a {
    color: #145eb8 ; 
    text-decoration: none;
    word-break: break-all;
}

.message-form {
    background: #f7f7fa;
    border-radius: 10px;
    padding: 14px 16px 10px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-form h3 {
    font-size: 1em;
    margin: 0 0 4px 0;
    color: #444;
}

.message-form input, .message-form textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    resize: none;
}

.message-form button {
    background: transparent !important;
    color: #000000;
    border:  2px #000000;
    border-radius: 6px;
    padding: 8px 0;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
}

.message-form button:hover {
    background: #000000 !important;
    color: #fff;
    border-color: #000000;
}

.about-right h1 {
    font-size: 1.7em;
    margin-bottom: 8px;
    color: #222;
}

.about-desc {
    font-size: 1.08em;
    color: #444;
    margin-bottom: 12px;
}

.about-info-box {
    background: #f7f7fa;
    border-radius: 10px;
    padding: 10px 16px 6px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.about-info-box h3 {
    font-size: 1.08em;
    margin: 10px 0 4px 0;
    color: #444;
}

.about-info-box ul {
    margin: 0 0 6px 18px;
    padding: 0;
    font-size: 0.98em;
    color: #555;
}

.cv-button {
    display: inline-block;
    padding: 10px 22px;
    background: transparent!important;
    color: #000000;
    border: 2px #000000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(80,80,80,0.08);
    transition: background 0.2s;
}

.cv-button:hover {
    background: #000000 !important;
    color: #fff;
}

.about-links {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.profile-links {
    display: flex;
    gap: 18px;
}

.profile-links a {
    color: #4f46e5;
    font-size: 1.7em;
    transition: color 0.2s;
    text-decoration: none;
}

.profile-links a:hover {
    color: #3730a3;
}

/* Large rectangular about image for about page */
.about-image-rect {
    width: 340px;
    height: 420px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: 4px solid #fff;
    background: #f7f7fa;
}

@media (max-width: 900px) {
    .about-container.restructured {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 8px;
    }
    .about-left, .about-right {
        min-width: 0;
    }
    .about-links {
        margin-top: 10px;
    }
    .about-image-rect {
        width: 98vw;
        height: 320px;
        max-width: 98vw;
    }
}

/* Align icons next to the text for professional and social links */
.professional-links a, .social-links a {
    display: inline-flex;
    align-items: center;
    margin-right: 15px; /* Add spacing between links */
    text-decoration: none;
    color: #333; /* Default text color */
    font-size: 1.1em; /* Adjust icon size */
    transition: color 0.3s ease;
}

.professional-links a i, .social-links a i {
    margin-right: 8px; /* Add spacing between icon and text */
    font-size: 1.2em; /* Adjust icon size */
}

.professional-links a:hover, .social-links a:hover {
    color: #4CAF50; /* Change color on hover */
}

/* Ensure professional links appear inline */
.professional-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping if the screen is too small */
    gap: 10px; /* Add spacing between links */
}

.professional-links h3 {
    margin-right: 10px; /* Add spacing between the heading and links */
}

.professional-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.professional-links a i {
    margin-right: 5px; /* Add spacing between icon and text */
}

/* --- Social & Professional Icon Size and Hover Color for About Page --- */
.contact-links .contact-icon {
  font-size: 1.3em !important;
  color: #000000 !important;
  transition: color 0.25s, transform 0.18s;
  margin-right: 12px;
  vertical-align: middle;
}
.contact-links .contact-icon:hover {
  color: #145eb8 !important; /* Teal */
  transform: scale(1.13);
}

/* Optional: Remove last margin on last icon */
.contact-links-group .contact-icon:last-child {
  margin-right: 0;
}

/* --- Connect Card: Single Row with Vertical Bar --- */
.connect-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}
.connect-vbar {
  display: inline-block;
  width: 2px;
  height: 28px;
  background:  #000000 ;
  margin: 0 14px;
  border-radius: 2px;
}
@media (max-width: 700px) {
  .connect-row {
    gap: 10px;
  }
  .connect-vbar {
    height: 22px;
    margin: 0 7px;
  }
}

/* --- Research Page Modern Styles --- */
.research-section {
    background: linear-gradient(120deg, #f0f0f0 0%, #e0e7ff 100%);
    padding: 40px 0 30px 0;
    min-height: 70vh;
    flex: 1 0 auto;
}

.research-intro-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 36px;
    max-width: 950px;
    margin: 0 auto 32px auto;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(80,80,80,0.10);
    padding: 32px 24px;
}

.research-intro-text {
    flex: 2;
    min-width: 220px;
}

.research-title {
    font-size: 2em;
    margin-bottom: 12px;
    color: #222;
}

.research-desc {
    font-size: 1.13em;
    color: #444;
    margin-bottom: 0;
}

.research-intro-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.research-image {
    max-width: 220px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background: #fff;
}

.publications-section {
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(80,80,80,0.08);
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 18px 20px;
}

.publications-section h2 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 12px;
}

.publications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publications-list li {
    margin-bottom: 12px;
    font-size: 1.08em;
    color: #444;
}

.publications-list a {
    color: #4f46e5;
    text-decoration: none;
    border-bottom: 1px dotted #bdbdbd;
    transition: color 0.2s;
}

.publications-list a:hover {
    color: #3730a3;
    border-bottom: 1px solid #4f46e5;
}

/* --- Vibrant Research Container Styles --- */
.research-container-vibrant {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(80,80,80,0.13);
    padding: 32px 28px 28px 28px;
    max-width: 1000px;
    margin: 30px auto 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.research-intro-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.research-intro-text {
    flex: 2;
    min-width: 220px;
}

.research-image-large {
    max-width: 320px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    background: #fff;
}

.research-image-center {
    width: 100%;
    max-width: 600px;
    margin: 0 0 18px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.research-image-xl {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    background: #fff;
    display: block;
}

.publications-section-modern {
    background: rgba(255,255,255,0.92);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(80,80,80,0.08);
    margin: 0 auto;
    padding: 18px 18px 10px 18px;
}

.publications-section-modern h2 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.publications-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publications-list-modern li {
    margin-bottom: 10px;
    font-size: 0.98em;
    color: #444;
    line-height: 1.4;
}

.pub-title {
    font-weight: 600;
    font-size: 0.98em;
    color: #222;
}

.pub-meta {
    font-size: 0.92em;
    color: #666;
}

.pub-doi {
    font-size: 0.92em;
    color: #4f46e5;
}

.pub-doi a {
    color: #4f46e5;
    text-decoration: underline dotted;
    transition: color 0.2s;
}

.pub-doi a:hover {
    color: #3730a3;
}

/* Publication link hover effect */
.pub-link-hover {
    transition: color 0.2s;
    text-decoration: none;
}
.pub-link-hover:hover {
    color: #145eb8  !important;
    text-decoration: none;
}

@media (max-width: 900px) {
    .research-intro-container {
        flex-direction: column;
        padding: 18px 8px;
        gap: 18px;
    }
    .research-intro-image {
        margin-top: 10px;
    }
    .publications-section {
        padding: 14px 6px 10px 6px;
    }
    .research-intro-flex {
        flex-direction: column;
        gap: 18px;
    }
    .research-container-vibrant {
        padding: 16px 6px 12px 6px;
    }
    .research-image-large {
        max-width: 98vw;
    }
}

@media (max-width: 700px) {
    .research-image-xl {
        max-width: 98vw;
    }
}

/* Center and enlarge the research image on research.html */
.research-image-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 18px 0;
}
.research-image-xl {
    width: 420px;
    height: 340px;
    max-width: 98vw;
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    background: #ffffff00;
}
@media (max-width: 700px) {
    .research-image-xl {
        width: 98vw;
        height: 220px;
    }
}

/* Research page: Make text span full card width and image fully visible, centered below text */
.research-container-vibrant.research-report-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 20px auto 20px auto;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(80,80,80,0.13);
    padding: 28px 24px;
}
.research-full-width {
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px 0;
    text-align: left;
    padding: 0;
}
.research-image-center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 18px 0;
}
.research-image-xl.research-image-report {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    background: none;
    display: block;
}
@media (max-width: 950px) {
    .research-container-vibrant.research-report-layout {
        max-width: 99vw;
        padding: 12px 2vw 12px 2vw;
    }
    .research-full-width, .research-image-xl.research-image-report {
        max-width: 98vw;
    }
}

.blog-category-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
}

.blog-btn {
    padding: 10px 22px;
    border-radius: 24px;
    border: none;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #4f46e5 60%, #6366f1 100%);
    box-shadow: 0 2px 8px rgba(80,80,80,0.08);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.blog-btn.cryo-btn {
    background: linear-gradient(90deg, #00c6ff 60%, #0072ff 100%);
}

.blog-btn.barca-btn {
    background: linear-gradient(90deg, #fc466b 60%, #3f5efb 100%);
}

.blog-btn:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.1);
}

.blog-featured {
    display: flex;
    flex-direction: row;
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(80,80,80,0.10);
    margin: 0 auto 28px auto;
    max-width: 900px;
    overflow: hidden;
    min-height: 220px;
}

.blog-featured-image {
    flex: 1 1 220px;
    min-width: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 18px 0 0 18px;
}

.blog-featured-content {
    flex: 2 1 0;
    padding: 28px 28px 18px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-category {
    display: inline-block;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 4px 14px;
    border-radius: 12px;
    color: #fff;
}

.blog-category.cryo {
    background: linear-gradient(90deg, #00c6ff 60%, #0072ff 100%);
}

.blog-category.barca {
    background: linear-gradient(90deg, #fc466b 60%, #3f5efb 100%);
}

.blog-title {
    font-size: 1.4em;
    color: #222;
    margin-bottom: 8px;
}

.blog-excerpt {
    color: #444;
    font-size: 1.08em;
    margin-bottom: 12px;
}

.read-more {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    font-size: 1em;
    margin-top: 6px;
    transition: color 0.2s;
}

.read-more:hover {
    color: #3730a3;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .blog-featured {
        flex-direction: column;
        min-height: 0;
    }
    .blog-featured-image {
        border-radius: 18px 18px 0 0;
        min-height: 180px;
    }
    .blog-featured-content {
        padding: 18px 12px 12px 12px;
    }
}

/* Blog Recent Posts Card Layout */
.blog-recent-posts {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* --- Blog Carousel Card Fixes --- */
.blog-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(.77,0,.18,1);
    will-change: transform;
    align-items: stretch;
}

.blog-card {
    position: relative;
    min-width: 340px;
    max-width: 340px;
    margin: 0 18px;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(.77,0,.18,1), box-shadow 0.3s;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 6px 24px rgba(80,80,80,0.10);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Remove underline from blog card links and all text inside */
.blog-card,
.blog-card * {
    text-decoration: none !important;
}

.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    z-index: 2;
    background: none;
    transition: background 0.3s;
    padding: 18px 16px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-content h2 {
    margin-bottom: 8px;
    font-size: 1.15em;
    color: #222;
    font-weight: 700;
}

.blog-card-content .blog-excerpt {
    color: #444;
    font-size: 1em;
    margin-bottom: 10px;
    opacity: 1;
    max-height: 200px;
    transition: opacity 0.3s, max-height 0.3s;
}

/* Blog card gradient overlay on hover for category */
.blog-card.cryo::before,
.blog-card.barca::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s;
    border-radius: 18px;
    pointer-events: none;
}



.blog-hover-overlay {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    text-decoration: none;
    border-radius: 18px;
}

.blog-card:hover .blog-hover-overlay {
    opacity: 1;
}

.blog-hover-overlay .read-full-blog {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 8px;
    background: rgba(0,0,0,0.10);
    pointer-events: none;
    text-align: center;
}

.blog-hover-overlay:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0072ff;
}

.read-full-blog {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 2px 8px rgb(0, 0, 0);
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 8px;
    background: rgb(0, 0, 0);
    pointer-events: none;
}

.blog-card:hover {
    transform: scale(1.06);
    z-index: 2;
    box-shadow: 0 12px 32px rgba(80,80,80,0.18);
}

.blog-card-content h2 {
    margin-bottom: 8px;
}

/* Remove read-more button visually */
.blog-card .read-more {
    display: none;
}

@media (max-width: 1000px) {
    .blog-recent-posts {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .blog-card {
        width: 95vw;
        max-width: 400px;
    }
}

/* Blog Carousel Styles */
.blog-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 32px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-carousel-viewport {
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    position: relative;
    display: flex;
}
.blog-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(.77,0,.18,1);
    will-change: transform;
}
.blog-card {
    min-width: 340px;
    max-width: 340px;
    margin: 0 18px;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(.77,0,.18,1), box-shadow 0.3s;
}
.blog-card:hover {
    transform: scale(1.06);
    z-index: 2;
    box-shadow: 0 12px 32px rgba(80,80,80,0.18);
}
.carousel-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(80,80,80,0.10);
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    color: #4f46e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}
.carousel-btn:hover {
    background: #4f46e5;
    color: #fff;
}
.blog-carousel-container .left {
    margin-right: 10px;
}
.blog-carousel-container .right {
    margin-left: 10px;
}
@media (max-width: 1200px) {
    .blog-carousel-container {
        max-width: 98vw;
    }
    .blog-carousel-viewport {
        max-width: 98vw;
    }
    .blog-card {
        min-width: 90vw;
        max-width: 90vw;
    }
}

/* --- Blaugrana (FC Barcelona) Blog Theme Enhancements --- */

/* Blaugrana gradient border for blog cards */
/* .blog-card.barca {
    border: 3px solid;
    border-image: linear-gradient(90deg, #0A174E 0%, #3f5efb 50%, #FC466B 100%);
    border-image-slice: 1;
    box-shadow: 0 8px 32px rgba(63, 94, 251, 0.13), 0 2px 8px rgba(252, 70, 107, 0.10);
} */

/* Blaugrana gradient border for blog tiles */
/* .blog-tile.barca {
    border: 3px solid;
    border-image: linear-gradient(90deg, #0A174E 0%, #3f5efb 50%, #FC466B 100%);
    border-image-slice: 1;
    box-shadow: 0 8px 32px rgba(63, 94, 251, 0.13), 0 2px 8px rgba(252, 70, 107, 0.10);
} */

/* Blaugrana button and category enhancements */
/* .blog-btn.barca-btn {
    background: linear-gradient(90deg, #0A174E 0%, #3f5efb 60%, #FC466B 100%) !important;
    color: #fff;
    border: 2px solid #FC466B;
    box-shadow: 0 2px 12px rgba(63, 94, 251, 0.13);
} */

/* .blog-btn.barca-btn:hover {
    background: linear-gradient(90deg, #FC466B 0%, #3f5efb 100%) !important;
    color: #fff;
    border: 2px solid #3f5efb;
    filter: brightness(1.08);
} */

/* .blog-category.barca {
    background: linear-gradient(90deg, #0A174E 0%, #3f5efb 60%, #FC466B 100%) !important;
    color: #fff;
    border: 1.5px solid #FC466B;
} */

/* Blog card hover effect for Blaugrana */
/* .blog-card.barca:hover {
    box-shadow: 0 16px 40px rgba(252, 70, 107, 0.18), 0 8px 32px rgba(63, 94, 251, 0.18);
    transform: scale(1.07);
} */

/* Optional: Add a subtle background to the blog section for Barca posts */
/* .blog-section.barca-theme {
    background: linear-gradient(120deg, #0A174E 0%, #3f5efb 60%, #FC466B 100%, #fff 120%);
} */

/* Optional: Accent headings for Barca blog */
/* .blog-header.barca-theme h1 {
    background: linear-gradient(90deg, #0A174E 0%, #3f5efb 60%, #FC466B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
} */

/* --- Blog Post Template Styles --- */
body.blogpost-page {
    background: #fff !important;
}
.blogpost-layout {
    display: flex;
    flex-direction: row;
    max-width: 1100px;
    margin: 40px auto 60px auto;
    padding: 0 0px;
    gap: 0; /*32px*/
    background: #fff;
}

.blogpost-sidebar {
    width: 260px;
    min-width: 180px;
    padding:0;

    /* max-height: 80vh; */
    /* background: #fff; */
    border-radius: 0px;
    /* border: 2.5px solid; */
    /* border-image: linear-gradient(180deg, #0A174E 0%, #3f5efb 60%, #FC466B 100%); */
    border-image-slice: 1;
    /* box-shadow: 0 2px 12px rgba(63,94,251,0.07); */
    overflow-y: auto;
    /* padding: 18px 0 18px 0; */
    position: relative; /*sticky*/
     /* top: 32px; */
}

.blogpost-sidebar h3 {
    text-align: center;
    font-size: 1.13em;
    margin: 0 0 12px 0;
    color: #0A174E;
    letter-spacing: 0.5px;
}



.blogpost-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5px;
    height: 100%;
    background: #e0e0e0;
}

.blogpost-layout .blogpost-main {
    flex: 1;
    padding: 0 0 0 36px;
    background: none;
}
@media (max-width: 900px) {
    .blogpost-layout {
        flex-direction: column;
        padding: 0 2vw;
    }
    .blogpost-sidebar {
        width: 100%;
        min-width: 0;
        margin-bottom: 24px;
    }
    .blogpost-sidebar::after {
        display: none;
    }
    .blogpost-layout .blogpost-main {
        padding: 0;
    }
}

/* --- Blog Post Template Styles --- */
.blogpost-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0;
}
.blogpost-list li {
    margin: 0;
    padding: 0;
}
.blogpost-link {
    display: block;
    padding: 10px 18px;
    color: #222;
    font-size: 1.01em;
    border-left: 4px solid transparent;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border-radius: 0 0px 0px 0;
    cursor: pointer;
}
.blogpost-link.active,
.blogpost-link:hover {
    background: linear-gradient(90deg, #f3f6fd 60%, #e6eafc 100%);
    color: #FC466B;
    border-left: 4px solid #3f5efb;
    font-weight: 700;
}
.barca-article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(63,94,251,0.13), 0 2px 8px rgba(252,70,107,0.10);
    border: 3px solid;
    border-image: linear-gradient(90deg, #0A174E 0%, #3f5efb 50%, #FC466B 100%);
    border-image-slice: 1;
    padding: 32px 24px;
}

/* Cryogenics Blogpost Card */
.cryogenics-article-card {
    background: #fff;
    border: 2.5px solid;
    border-image: linear-gradient(120deg, #00bcd4 0%, #007cf0 100%);
    border-image-slice: 1;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,188,212,0.10);
    padding: 36px 32px 32px 32px;
    max-width: 820px;
    margin: 36px auto 32px auto;
    transition: box-shadow 0.2s;
}
.cryogenics-article-card:hover {
    box-shadow: 0 12px 48px rgba(0,124,240,0.13);
}

@media (max-width: 900px) {
    .cryogenics-article-card {
        padding: 18px 8vw 18px 8vw;
        max-width: 98vw;
    }
}

@media (max-width: 950px) {
    .blogpost-layout {
        flex-direction: column;
        gap: 0;
    }
    .blogpost-sidebar {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        margin-bottom: 24px;
        position: static;
        border-radius: 10px;
    }
}

/* --- Quiz Styles --- */
.barca-quiz-card {
    max-width: 540px;
    min-width: 340px;
    width: 100%;
    margin: 48px auto 32px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(63,94,251,0.13), 0 2px 8px rgba(252,70,107,0.10);
    padding: 36px 28px 32px 28px;
    color: #23272a;
    transition: background 0.3s, color 0.3s;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
body.dark-mode .barca-quiz-card {
    background: #23272a;
    color: #fff;
}
.barca-quiz-title {
    text-align: center;
    margin-bottom: 18px;
    font-size: 2em;
    background: linear-gradient(90deg, #FC466B 0% , #042bed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 1px;
}
.barca-quiz-question {
    font-size: 1.18em;
    font-weight: 600;
    margin-bottom: 18px;
    color: #23272a;
    text-shadow: 0 2px 8px rgba(10,23,78,0.08);
    transition: color 0.3s;
}
body.dark-mode .barca-quiz-question {
    color: #fff;
    text-shadow: 0 2px 8px rgba(10,23,78,0.18);
}
#quiz-options label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 1.08em;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    transition: background 0.2s, color 0.2s, border 0.2s;
    color: #23272a;
    border: 2px solid #23272a;
    font-weight: 500;
    box-shadow: none;
    position: relative;
}
#quiz-options input[type="radio"] {
    accent-color: #FC466B;
    margin-right: 8px;
}
#quiz-options label:hover,
#quiz-options label.selected {
    background: #FC466B;
    color: #fff;
    border-color: #FC466B;
}
#quiz-options label.correct {
    background: #2ecc40 !important;
    color: #fff !important;
    border-color: #2ecc40 !important;
}
#quiz-options label.incorrect {
    background: #FC466B !important;
    color: #fff !important;
    border-color: #FC466B !important;
}
body.dark-mode #quiz-options label {
    background: #23272a;
    color: #fff;
    border: 2px solid #fff;
}
body.dark-mode #quiz-options label:hover,
body.dark-mode #quiz-options label.selected {
    background: #FC466B;
    color: #fff;
    border-color: #FC466B;
}
body.dark-mode #quiz-options label.correct {
    background: #2ecc40 !important;
    color: #fff !important;
    border-color: #2ecc40 !important;
}
body.dark-mode #quiz-options label.incorrect {
    background: #FC466B !important;
    color: #fff !important;
    border-color: #FC466B !important;
}
.barca-quiz-feedback {
    margin-top: 12px;
    font-weight: 600;
    min-height: 24px;
    color: #23272a;
    text-align: center;
    transition: color 0.2s;
}
body.dark-mode .barca-quiz-feedback {
    color: #fff;
}
.barca-quiz-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.barca-quiz-timer {
    font-size: 1.1em;
    color: #FC466B;
    font-weight: 700;
    background: #fff;
    border-radius: 8px;
    padding: 4px 16px;
    min-width: 48px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(252,70,107,0.10);
}
.barca-quiz-btn {
    background: #FC466B;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1em;
    font-weight: 700;
    margin-left: 6px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(63,94,251,0.10);
    text-decoration: none !important;
}

.blink {
    animation: blink-timer 0.7s steps(2, start) infinite;
    color: #FC466B !important;
}
@keyframes blink-timer {
    0% { opacity: 1; color: #FC466B; }
    50% { opacity: 0.2; color: #fff; }
    100% { opacity: 1; color: #FC466B; }
}

@keyframes blink-timer {
    
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

.barca-quiz-btn:disabled {
    background: #888;
    color: #eee;
    cursor: not-allowed;
}
.barca-quiz-btn:hover:not(:disabled) {
    background: #3f5efb;
}

@media (max-width: 700px) {
    .barca-quiz-card {
        padding: 16px 4vw 16px 4vw;
        min-width: 0;
    }
}

.barca-quiz-anim-container {
  font-size: 6.4em;
  margin: 18px 0 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pop-in 0.7s cubic-bezier(.77,0,.18,1);
}

/* ===================== DARK MODE SUPPORT ===================== */
body.dark-mode {
    background: linear-gradient(to bottom, #181a1b, #23272a) !important;
    color: #e0e0e0 !important;
}
body.dark-mode nav {
    background: #23272a !important;
    color: #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
body.dark-mode .nav-links a,
body.dark-mode .nav-links span {
    color: #e0e0e0 !important;
}
body.dark-mode .nav-links a:hover {
    background: #ffffff;
    color: #181a1b!important;
}
body.dark-mode:not(.barca-page) .blog-section,
body.dark-mode .about-section,
body.dark-mode .research-section {
    background: linear-gradient(120deg, #23272a 0%, #181a1b 100%) !important;
}
body.dark-mode .about-container,
body.dark-mode .about-container.restructured,
body.dark-mode .about-info-box,
body.dark-mode .contact-box,
body.dark-mode .message-form,
body.dark-mode .publications-section,
body.dark-mode .publications-section-modern,
body.dark-mode .research-container-vibrant,
body.dark-mode .research-container-vibrant.research-report-layout {
    background: #23272a !important;
    color: #e0e0e0 !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.30);
}
body.dark-mode .about-info-box h3,
body.dark-mode .contact-box h2,
body.dark-mode .about-right h1,
body.dark-mode .research-title {
    color: #fff !important;
}
body.dark-mode .about-desc,
body.dark-mode .about-info-box ul,
body.dark-mode .about-info-box,
body.dark-mode .about-info-box h3,
body.dark-mode .about-info-box ul,
body.dark-mode .about-info-box li,
body.dark-mode .about-info-box strong {
    color: #e0e0e0 !important;
}
body.dark-mode .cv-button
{
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #ffffff !important;
     
}
body.dark-mode .cv-button:hover {
    background: #ffffff !important;
    color: #23272a!important;
}
body.dark-mode .profile-links a {
    color: #8ab4f8 !important;
}
body.dark-mode .profile-links a:hover {
    color: #fa0000 !important;
}
body.dark-mode .footer-logo,
body.dark-mode .footer-social a,
body.dark-mode .footer-contact {
    color: #e0e0e0 !important;
}
body.dark-mode footer {
    background:  #23272a!important;
    color: #e0e0e0 !important;
}
body.dark-mode .tab-content {
    background: #23272a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}
body.dark-mode .tabs {
    background: #181a1b !important;
    border-bottom: 1px solid #444 !important;
}
body.dark-mode .tab-link {
    color: #e0e0e0 !important;
}
body.dark-mode .tab-link:hover {
    background: #333 !important;
    color: #fa0000 !important;
}
body.dark-mode .about-image-rect,
body.dark-mode .about-image,
body.dark-mode .research-image,
body.dark-mode .research-image-large,
body.dark-mode .research-image-xl,
body.dark-mode .blog-card-image,
body.dark-mode .blog-tile img {
    filter: brightness(1.15) contrast(1.08) !important;
    border-color: #444 !important;
}
body.dark-mode .blog-carousel .blog-card-image {
    filter: brightness(1.18) contrast(1.12) !important;
    
}
body.dark-mode .blog-header h1,
body.dark-mode .blog-header p {
    color: #e0e0e0 !important;
}
body.dark-mode .blog-featured,
body.dark-mode .blog-card,
body.dark-mode .blog-tile,
body.dark-mode .blog-featured-content,
body.dark-mode .blog-card-content,
body.dark-mode .blog-tile-content {
    background: #23272a !important;
    color: #e0e0e0 !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.30);
}
body.dark-mode .blog-card-content,
body.dark-mode .blog-card-content *,
body.dark-mode .blog-tile-content,
body.dark-mode .blog-tile-content * {
    color: #fff !important;
}
body.dark-mode .blog-category.cryo {
    background: linear-gradient(90deg, #007cf0 60%, #00dfd8 100%) !important;
    color: #fff !important;
}
body.dark-mode .blog-category.barca {
    background: linear-gradient(90deg, #fc466b 60%, #3f5efb 100%) !important;
    color: #fff !important;
}
body.dark-mode .read-more,
body.dark-mode .blog-tile-content .read-more {
    color: #8ab4f8 !important;
}
body.dark-mode .read-more:hover,
body.dark-mode .blog-tile-content .read-more:hover {
    color: #fa0000 !important;
}
body.dark-mode .blog-hover-overlay .read-full-blog,
body.dark-mode .read-full-blog {
    background: #23272a !important;
    color: #fff !important;
}
body.dark-mode .blogpost-sidebar {
    background: #181a1b !important;
    color: #e0e0e0 !important;
    border-image: linear-gradient(180deg, #23272a 0%, #444 100%) 1 !important;
}
body.dark-mode .blogpost-sidebar h3 {
    color: #a8ff78 !important;
}
body.dark-mode .blogpost-link {
    color: #e0e0e0 !important;
}
body.dark-mode .blogpost-link.active,
body.dark-mode .blogpost-link:hover {
    background: linear-gradient(90deg, #23272a 60%, #181a1b 100%) !important;
    color: #fa0000 !important;
    border-left: 4px solid #fa0000 !important;
}
body.dark-mode .barca-article-card,
body.dark-mode .cryogenics-article-card {
    background: #23272a !important;
    color: #e0e0e0 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.30);
    border-image: linear-gradient(90deg, #23272a 0%, #444 100%) 1 !important;
}
body.dark-mode .barca-article-card h1,
body.dark-mode #barca-article h1 {
    background: linear-gradient(90deg, #a8ff78 0%, #fa0000 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
}
body.dark-mode .blogpost-content {
    color: #e0e0e0 !important;
}
body.dark-mode input,
body.dark-mode textarea {
    background: #181a1b !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}
body.dark-mode .message-form button {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #ffffff !important;
}

body.dark-mode .message-form button:hover {
    background: #ffffff  !important;
    color:  #181a1b  !important;/*#145eb8*/ 
}
body.dark-mode .contact-links .contact-icon {
    color: #ffffff !important;
}
body.dark-mode .contact-links .contact-icon:hover {
    color: #8ab4f8 !important;
}
body.dark-mode .connect-vbar {
    background: linear-gradient(180deg, #8ab4f8 0%, #ffffff 100%) !important;
}
body.dark-mode .pub-title,
body.dark-mode .pub-meta,
body.dark-mode .publications-list-modern,
body.dark-mode .publications-section-modern h2 {
    color: #e0e0e0 !important;
}
body.dark-mode .pub-link-hover {
    color: #ffffff !important;
}
body.dark-mode .pub-link-hover:hover {
  
    color: #8ab4f8 !important;
}
body.dark-mode .message-form h3 {
    color: #e0e0e0 !important;
}
body.dark-mode .message-form input,
body.dark-mode .message-form textarea {
    background: #23272a !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}
body.dark-mode .moon svg {
  fill: #fff !important;
}

body.index-page #darkmode-toggle-navbar {
    display: none !important;
}

/* --- Sun/Moon Animated Dark Mode Switch: Improved for correct toggle and moon color --- */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #73C0FC;
  transition: .4s;
  border-radius: 30px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  border-radius: 20px;
  left: 2px;
  bottom: 2px;
  z-index: 2;
  background-color: #e8e8e8;
  transition: .4s;
}
.sun svg {
  position: absolute;
  top: 5px;
  left: 36px;
  z-index: 1;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.moon svg {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  width: 24px;
  height: 24px;
  pointer-events: none;
  transition: fill 0.4s;
  fill: #73C0FC;
}
.switch:hover .sun svg {
  animation: rotate 15s linear infinite;
}
@keyframes rotate {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
.switch:hover .moon svg {
  animation: tilt 5s linear infinite;
}
@keyframes tilt {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}
.input:checked + .slider {
  background-color: #d432327a;
}
.input:focus + .slider {
  box-shadow: 0 0 1px #d432327a;
}
.input:checked + .slider:before {
  transform: translateX(30px);
}
.input:checked + .slider .moon svg {
  fill: #fff !important;
}
.input:checked + .slider .sun svg {
  opacity: 0.5;
}

body.dark-mode .research-section, 
body.dark-mode .research-section *,
body.dark-mode .research-container-vibrant,
body.dark-mode .research-container-vibrant *,
body.dark-mode .research-title,
body.dark-mode .research-desc {
    color: #fff !important;
}

/* Info Modal and Icon Styles */
.info-modal {
  position: fixed;
  top: 70px;
  right: 40px;
  background: #fff;
  color: #23272a;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 22px 28px;
  max-width: 340px;
  z-index: 100;
  font-size: 1.08em;
  transition: background 0.3s, color 0.3s;
}
.info-modal-close {
  margin-top: 14px;
  background: #007cf0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
}
body.dark-mode .info-modal {
  background: #23272a;
  color: #fff;
}
#info-icon i {
  color: #007cf0 !important;
  transition: color 0.3s;
  animation: rgb-glow 2.5s linear infinite;
}
@keyframes rgb-glow {
  0% { color: #ff0000; text-shadow: 0 0 8px #ff0000; }
  33% { color: #00ff00; text-shadow: 0 0 8px #00ff00; }
  66% { color: #0000ff; text-shadow: 0 0 8px #0000ff; }
  100% { color: #ff0000; text-shadow: 0 0 8px #ff0000; }
}

body.blogpost-page.dark-mode {
    background: #181a1b !important;
}
body.blogpost-page.dark-mode .blogpost-layout {
    background: #23272a !important;
}
body.blogpost-page.dark-mode .blogpost-main,
body.blogpost-page.dark-mode #barca-article-card,
body.blogpost-page.dark-mode #cryogenics-article-card,
body.blogpost-page.dark-mode #barca-article,
body.blogpost-page.dark-mode #cryogenics-article {
    background:  #181a1b   !important; /*#23272a*/
    color: #e0e0e0 !important;
    box-shadow: none !important;
}
body.blogpost-page.dark-mode .blogpost-sidebar {
    background:  #181a1b !important;
    color: #e0e0e0 !important;
    border-right: 1.5px solid #ffffff !important;
}
body.blogpost-page.dark-mode .blogpost-link {
    color: #e0e0e0 !important;
}
body.blogpost-page.dark-mode .blogpost-link.active,
body.blogpost-page.dark-mode .blogpost-link:hover {
    background: #ffffff !important;
    color: #4447a1 !important;
    /* border-left: 4px solid #fa0000 !important; */
}

/* Small corner link to IJC paper (index page) */
.ijc-corner-link {
    position: fixed;
    bottom: 8px;
    right: 12px;
    z-index: 5;
    font-size: 9px;
    opacity: 0.4;
    color: inherit;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.ijc-corner-link:hover {
    opacity: 0.7;
}
body.dark-mode .ijc-corner-link {
    opacity: 0.35;
}
body.dark-mode .ijc-corner-link:hover {
    opacity: 0.6;
}