/* Custom CSS Variables for the Team Design */
html {
    scroll-behavior: smooth;
  }
:root {
    /* Theme Colors */
    --color-green-1: #71b9b1; 
    --color-green-2: #6fbbac;
    --color-dark-teal: #007780;
    --color-purple: #a977b3;
    --color-salmon: #f3b19b;
    --color-pi-dark-green: #004d40;
    
  
    /* General */
    --team-text-color: #333;
    --team-border-radius: 20px;
    --shadow-color: rgba(0, 64, 64, 0.1);
  
    /* Other Page Colors */
    --eng-header-bg: #eaf6f2;
    --eng-text-color: #347477;
  }
  
  /* ---------------------------------
     ORIGINAL & GLOBAL STYLES
     --------------------------------- */
  
  body { 
    background-color: #F8F9FA; /* A very light grey for the page background */
  }
  
  .left-aligned { margin-left: auto; }
  .bg-dark { background-color: #83C3BB !important; }
  .bg-hero { background-color: #eaf6f2; }
  
  /* CALLOUT */
  .bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
  .bd-callout h4 { margin-bottom: 1.25rem }
  .bd-callout p:last-child { margin-bottom:0 }
  .bd-callout code { border-radius:.25rem }
  .bd-callout+.bd-callout { margin-top:-.25rem }
  .bd-callout-info { border-left-color:#5bc0de }
  .bd-callout-warning { border-left-color:#f0ad4e }
  .bd-callout-danger { border-left-color:#d9534f }
  
  /* footer */
  footer a { color: white; font-weight: bold; text-decoration: none; }
  footer a:hover { color: white; text-decoration: underline; }
  
  
  /* =================================
    NEW TEAM PAGE STYLES (MATCHES SCREENSHOT)
    ================================= */
  
  .team-section {
    padding-top: 100px;
    padding-bottom: 5rem;
  }
  
  .team-section .section-title {
    font-weight: 700;
    color: var(--color-pi-dark-green);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    position: relative;
    /* display: inline-block; */
    padding-bottom: 0.75rem;
  }
  
  .team-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-green-1);
    border-radius: 2px;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    padding: 3rem 0;
  }

  /* New styles for the Principal Investigators section */
.pi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */
    gap: 2.5rem;                           /* The space between the cards */
    padding: 3rem 0;
    
    /* These rules center the two cards on the page */
    max-width: 820px; /* Adjust this width if needed */
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Makes the PI cards stack vertically on smaller screens */
  @media (max-width: 768px) {
    .pi-grid {
      grid-template-columns: 1fr;
      max-width: 380px; /* Good width for a single centered card */
    }
  }
  
  .team-card {
    background-color: #fff;
    border-radius: var(--team-border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color);
  }
  
  .team-card-header {
    display: flex;
    flex-direction: column; /* This is the key change */
    align-items: center;
    justify-content: center;
    padding-top: 2rem; /* Adjusted padding */
  }
  
  .team-card-header h2 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
  }


  .profile-pic {
    width: 120px;
    height: 120px;
    /* border-radius: 50%;   Makes the image circular */
    object-fit: cover;      /* Prevents the image from being stretched */
    margin-bottom: 15px;    /* Adds space between the picture and the name */
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: Adds a subtle shadow */
    flex-grow: 1; /* Ensures the body fills the remaining space */
  }
  
  /* Card Color Variations */
  .card-color-pi { background-color: var(--color-pi-dark-green); }
  .card-color-amanda { background-color: var(--color-green-1); }
  .card-color-namyuktha { background-color: var(--color-green-2); }
  .card-color-maria { background-color: var(--color-dark-teal); }
  .card-color-aaliyah { background-color: var(--color-purple); }
  .card-color-selina { background-color: var(--color-salmon); }
  
  
  .team-card-body {
    padding: 1.5rem;
    background-color: #fff;
    flex-grow: 1; /* Ensures body takes remaining space */
    flex-direction: column;
  }
  
  .team-card-body h3 {
    color: var(--color-pi-dark-green);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
  }
  
  .team-card-body h4 {
    color: #555; /* A softer color for the subtitle */
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
    font-size: 0.95rem;
  }
  
  .team-card-body p {
    color: var(--team-text-color);
    line-height: 1.6;
    font-size: 0.9rem;
  }
  
  
/* ---------------------------------
   RESPONSIVENESS (Mobile View)
   --------------------------------- */

@media (max-width: 768px) {
    /* Stack cards vertically on smaller screens */
    .team-card, .pi-card {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .card-image-box, .pi-image-box {
        width: 100%; /* Full width */
        height: 150px; /* Give it a height so it's visible */
        /* Use !important to override the previous corner logic for mobile */
        border-radius: var(--team-border-radius) var(--team-border-radius) 0 0 !important;
        order: -1 !important; /* Always put the image box on top in mobile */
    }

    .card-content, .pi-content {
        border-radius: 0 0 var(--team-border-radius) var(--team-border-radius) !important;
    }

    /* Adjust header alignment for smaller screens */
    .section-header {
        font-size: 1.2em;
        justify-content: center;
    }

    .team-members-header h1, .primary-investigators-header h1 {
        margin: 0 10px;
        order: initial; /* Reset order */
    }
}
/* ---------------------------------
    ENGINEERING PAGE COLORS 
    --------------------------------- */

/* --- 1. Main Page & Hero Section --- */
.engineering-page-body {
    background-color: #F8F9FA; /* Sets a clean, light gray background for content */
}



/* --- 2. Redesigned Navigation Tabs --- */
.eng-tabs {
    display: flex;
    justify-content: center;
    gap: 20px; /* Adds space between tab buttons */
    flex-wrap: wrap;
    border: none;
    margin-bottom: 50px;
}

.eng-tabs .nav-link {
    color: white !important;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: var(--team-border-radius);
    padding: 25px 40px;
    min-width: 220px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none !important;
}

.eng-tabs .nav-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Make the active tab stand out */
.eng-tabs .nav-link.active {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    filter: brightness(1.1); /* Makes the active color slightly brighter */
}

/* Tab Colors (from your variables) */
.eng-tab-cloning { background-color: var(--eng-tab-cloning); }
.eng-tab-expression { background-color: var(--eng-tab-expression); }
.eng-tab-purification { background-color: var(--eng-tab-purification); }
.eng-tab-assays { background-color: var(--eng-tab-assays); }


/* --- 3. Content Sections (DBTL Cycle) --- */
.eng-content-title {
    color: var(--eng-tab-expression); /* Use dark teal for headers */
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.eng-heading-divider {
    width: 80px;
    margin: 0 auto 40px auto;
    border-top: 3px solid var(--team-main-color);
    opacity: 1;
}

/* Styling for the Design, Build, Test, Learn blocks */
.dbtl-section {
    background-color: #FFFFFF;
    border: 1px solid #e9ecef;
    border-left-width: .25rem;
    border-radius: .25rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Custom colors for each DBTL section border */
.dbtl-section.design { border-left-color: var(--eng-step-design); }
.dbtl-section.build { border-left-color: var(--eng-step-build); }
.dbtl-section.test { border-left-color: var(--eng-step-test); }
.dbtl-section.learn { border-left-color: var(--eng-step-learn); }

.dbtl-section h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-pi-dark-green);
}

/* ---------------------------------
        Project DESCRIPTION CSS
        --------------------------------- */

/* 1. Overall Page Styling */
body {
    /* background-color: #F1FAFF ; Pale Blue background for the whole page */
    color: #333333; /* Default text color */
    font-family: Arial, sans-serif; /* Fallback font */
}

/* 2. Custom Header and Text Styling */

/* Styling for the custom 'Background' header block */
.background-header-styled {
    background-color: #A9D1D5; /* Light teal/green color */
    color: #085156; /* Dark text for contrast */
    padding: 10px 25px;
    margin-top: 20px;
    font-size: 2rem;
    font-weight: bold;
    /* Custom shape: rounded top edge, straight bottom edge */
    border-radius: 10px 10px 0 0; 
    display: inline-block;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Placeholder for the squiggly decoration above the header text */
.background-header-styled::before {
    content: "";
    position: absolute;
    top: -20px; 
    left: 0;
    width: 100%;
    height: 20px;
    /* You must upload and use the URL for your squiggly graphic here */
    /* Example: background: url('https://yourwiki.igem.org/wiki/images/squiggly_teal.svg') no-repeat center bottom; */
    background-size: contain;
}

/* 3. Quote Box Styling */
.custom-quote-box {
    border: 2px solid #E59866; /* Thin orange/brown border */
    padding: 50px 30px;
    margin: 40px 0;
    position: relative;
    background-color: transparent; 
}

/* Custom quote marks using pseudo-elements */
.custom-quote-box::before, .custom-quote-box::after {
    font-family: Arial, sans-serif; 
    font-size: 4rem;
    color: #E59866; /* Orange/brown color */
    position: absolute;
    line-height: 1;
}

.custom-quote-box::before {
    content: "\201C"; /* Left double quotation mark */
    top: 10px;
    left: 10px;
}

.custom-box {
    bottom: 10px;
    right: 10px;
}



.custom-quote-box::after {
    content: "\201D"; /* Right double quotation mark */
    bottom: 10px;
    right: 10px;
}







/* 4. Vaccine Labels (Badges) */
.vaccine-label {
    /* Base style for the rounded badges */
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    display: inline-block;
    
    /* Positioning adjustment to lift the badge near the syringe graphic */
    position: relative;
    top: -15px; 
}

/* Pfizer Label Color */
.vaccine-label:not(.moderna) {
    background-color: #CC66CC; /* Purple/magenta default color */
}

/* Moderna Label Color */
.vaccine-label.moderna {
    background-color: #E59866; /* Orange/brown color for Moderna */
}

/* Placeholder styling for graphics to ensure correct sizing and spacing */
.col-6 img, .text-center img {
    max-width: 100%;
    height: auto;
}

/* ---------------------------------
    RESEARCH QUESTION SECTION
   --------------------------------- */

   .research-question-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto; 
    padding-top: 30px; 
}

.rq-title-lozenge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #C8826B;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 12px 35px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.rq-content-box {
    position: relative;
    background-color: #F8D9C9;
    padding: 60px 40px 40px 40px;
    border-radius: 25px;
    border: 3px solid white;
    box-shadow: 0 5px 20px rgba(100,100,100,0.15);
    min-height: 200px;
    z-index: 1;
}

.rq-text {
    font-size: 1.2rem;
    color: #495057;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: bold;
}

/* --- Decorative Icons --- */
.rq-icon-left,
.rq-icon-right {
    position: absolute;
    top: 25px;
    width: 60px;
    height: auto;
}

.rq-icon-left {
    left: 25px;
}

.rq-icon-right {
    right: 25px;
}


/* ---------------------------------
        Experiments Page CSS
        --------------------------------- */

/* --- Global Variables for Color Scheme --- */
:root {
    --eng-tab-cloning: #6fbbac; /* Light Green/Teal */
    --eng-tab-expression: #007780; /* Dark Teal */
    --eng-tab-purification: #a977b3; /* Purple/Mauve */
    --eng-tab-assays: #f3b19b; /* Salmon/Peach */
}

/* --- Layout for Category Grouping (Pure CSS Grid) --- */
.category-group-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Single column by default (mobile) */
    gap: 32px; /* Large space between category groups */
}

@media (min-width: 640px) { /* Tablet and up */
    .category-group-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 24px;
    }
}

@media (min-width: 1024px) { /* Desktop and up */
    .category-group-container {
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
    }
}

/* --- Protocol Category Header Styling --- */
.protocol-category {
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.category-header {
    font-size: 1.125rem; /* text-lg equivalent */
    font-weight: 700; /* font-bold equivalent */
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
    color: #333; /* Default text color */
}

.protocol-list {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Space between buttons within a category */
}

/* --- Category Color Themes --- */

.protocol-category.cloning {
    background-color: rgba(111, 187, 172, 0.1); /* Light background tint */
}
.protocol-category.cloning .category-header {
    border-color: var(--eng-tab-cloning);
}

.protocol-category.expression {
    background-color: rgba(0, 119, 128, 0.1);
}
.protocol-category.expression .category-header {
    border-color: var(--eng-tab-expression);
}

.protocol-category.purification {
    background-color: rgba(169, 119, 179, 0.1);
}
.protocol-category.purification .category-header {
    border-color: var(--eng-tab-purification);
}

.protocol-category.assays {
    background-color: rgba(243, 177, 155, 0.1);
}
.protocol-category.assays .category-header {
    border-color: var(--eng-tab-assays);
}


/* --- Protocol Button Styling (Coloring is based on the same classes) --- */
.pdf-button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 120px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px;
    width: 100%; /* Ensure button fills the category column */
}

/* Protocol 1: Cloning */
.pdf-button.cloning {
    --base-color: var(--eng-tab-cloning);
    --hover-color: #55a898; 
    background-color: var(--base-color);
}
.pdf-button.cloning:hover, .pdf-button.cloning:active {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Protocol 2: Expression */
.pdf-button.expression {
    --base-color: var(--eng-tab-expression);
    --hover-color: #005f65;
    background-color: var(--base-color);
}
.pdf-button.expression:hover, .pdf-button.expression:active {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Protocol 3: Purification */
.pdf-button.purification {
    --base-color: var(--eng-tab-purification);
    --hover-color: #92669c;
    background-color: var(--base-color);
}
.pdf-button.purification:hover, .pdf-button.purification:active {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Protocol 4: Assays */
.pdf-button.assays {
    --base-color: var(--eng-tab-assays);
    --hover-color: #e09f8c;
    background-color: var(--base-color);
    /* color: #333; */
}
.pdf-button.assays:hover, .pdf-button.assays:active {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* =================================
  HOMEPAGE STYLES
   ================================= */

/* --- Hero Section --- */
.hero-section-index {
  /* Using a gradient of your defined colors for a dynamic background */
  background: linear-gradient(135deg, #007780,#71b9b1);
  padding: 80px 0;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); /* Angled bottom shape */
  margin-bottom: -1px; /* Prevents tiny gaps on some screens */
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 90%;
  margin-bottom: 30px;
}

.hero-image {
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
}

/* Keyframe animation for the hero image to "float" */
@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-20px); }
	100% { transform: translateY(0px); }
}

/* --- Custom Button --- */
.btn-primary-custom {
  background-color: var(--eng-tab-assays); /* Use the eye-catching salmon color */
  border-color: var(--eng-tab-assays);
  color: var(--team-text-color) !important; /* !important to override Bootstrap defaults */
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 50px; /* Pill shape */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-decoration: none;
}

.btn-primary-custom:hover {
  background-color: #e09f8c; /* Darker salmon from your experiments page CSS */
  border-color: #e09f8c;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- General Section Styling --- */
.section-heading {
  color: var(--eng-tab-expression); /* Use dark teal for headers */
  font-weight: 700;
  margin-bottom: 15px;
}

.heading-divider {
  width: 80px;
  margin: 0 auto 30px auto;
  border-top: 3px solid var(--team-main-color);
  opacity: 1;
}

/* --- Feature Cards (Challenge, Inspiration) --- */
.feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: var(--team-border-radius);
  box-shadow: 0 5px 25px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card .icon-circle {
  width: 80px;
  height: 80px;
  /* Use your defined icon circle styles */
  background-color: var(--team-content-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--team-main-color);
  transition: all 0.3s ease;
}

.feature-card:hover .icon-circle {
  background-color: var(--team-main-color);
  color: #ffffff;
}

.feature-card h3 {
  color: var(--team-main-color);
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card p {
  color: #555;
  font-size: 0.95rem;
}

/* --- Project Module Cards (Navigation) --- */
.module-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--team-border-radius);
  color: #fff !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  min-height: 200px;
}

.module-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.module-card .card-title {
  font-weight: 700;
}

/* Using your engineering page colors for the navigation cards */
.module-card.card-design { background-color: var(--eng-tab-cloning); }
.module-card.card-engineering { background-color: var(--eng-tab-expression); }
.module-card.card-practices { background-color: var(--eng-tab-purification); }
.module-card.card-team {
  background-color: var(--eng-tab-assays);
  /* color: #333 !important; Dark text for the light salmon background */
}

/* HUMAN PRACTICES */

:root {
    --primary-teal: #00796b; /* A slightly darker teal for accessibility */
    --light-teal-bg: #e0f2f1;
    --card-bg: #ffffff;
    --text-color: #333;
    --heading-color: #004d40;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
  }
  
  /* Section styling */
  .interviews-section h2 {
    color: var(--heading-color);
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-teal);
    display: inline-block;
  }
  
  /* Main card container */
  .interview-card {
    display: flex;
    flex-direction: row;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 6px 12px var(--shadow-color);
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .interview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--shadow-color);
  }
  
  /* Image container */
  .interview-card .interview-image {
    flex: 0 0 200px; /* Fixed width for the image */
    background-color: var(--color-dark-teal); /* Placeholder background */
    height:200px;
  }
  
  

  
  /* Content container */
  .interview-card .interview-content {
    padding: 1.5rem 2rem;
    flex-grow: 1;
  }
  
  .interview-content h3 {
    color: var(--heading-color);
    margin-top: 0;
    font-weight: 700;
  }
  
  .interview-content h4 {
    color: var(--primary-teal);
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
  }
  
  /* Takeaway block styling */
  .interview-takeaway {
    background-color: var(--light-teal-bg);
    border-left: 5px solid var(--primary-teal);
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  }
  
  .interview-takeaway strong {
    color: var(--heading-color);
    display: block;
    margin-bottom: 0.5rem;
  }
  
  /* Responsive design for smaller screens */
  @media (max-width: 768px) {
    .interview-card {
      flex-direction: column;
    }
  
    .interview-card .interview-image {
      flex-basis: 200px; /* Fixed height on mobile */
      width: 100%;
    }
  }

  /* INCLUSIVITY */
  
.container-inc {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Inclusivity Page Specific Styles --- */
.inc-section-title {
    font-weight: 700;
    color: var(--color-pi-dark-green);
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.inc-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-green-1);
    border-radius: 2px;
}




.inc-challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.inc-challenge-item {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--team-border-radius);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.inc-challenge-item h3 {
    font-size: 1.5rem;
    color: var(--color-pi-dark-green);
}

.inc-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px; /* spacing between cards */
}

.inc-custom-card {
    background-color: #fff;
    border-radius: var(--team-border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.inc-custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.inc-custom-card-header {
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inc-custom-card-header h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.inc-card-color-1 { background-color: var(--color-green-1); }
.inc-card-color-2 { background-color: var(--color-dark-teal); }
.inc-card-color-3 { background-color: var(--color-purple); }
.inc-card-color-4 { background-color: var(--color-salmon); }

.inc-custom-card-body {
    padding: 1.5rem;
    background-color: #fff;
    flex-grow: 1;
}

.inc-custom-card-body p {
    margin-top: 0;
    font-size: 0.95rem;
}

.bd-callout { 
    padding:1.25rem; 
    margin-top:1.25rem; 
    margin-bottom:1.25rem; 
    border:1px solid #e9ecef; 
    border-left-width:.25rem; 
    border-radius:.25rem 
}
.bd-callout h4 { margin-bottom: 1.25rem; color: var(--color-pi-dark-green); }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout-info { border-left-color: var(--color-dark-teal); }

.inc-spotlight-section {
    background-color: var(--color-dark-teal);
    color: var(--color-light-text);
    padding: 50px 0;
}

.inc-spotlight-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.inc-spotlight-quote h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.inc-spotlight-quote blockquote {
    border-left: 5px solid var(--color-salmon);
    padding-left: 25px;
    font-size: 1.5rem;
    font-style: italic;
    margin: 0;
}

.inc-spotlight-quote p {
    text-align: right;
    font-weight: bold;
}

.inc-spotlight-image img {
    border: 4px solid white;
    border-radius: var(--team-border-radius);
}

@media (max-width: 768px) {
    .inc-challenge-grid, .inc-spotlight-content {
        grid-template-columns: 1fr;
    }
    .inc-hero-section h1, .inc-section-title {
        font-size: 2.5rem;
    }
    .inc-spotlight-content {
        text-align: center;
    }
    .inc-spotlight-quote blockquote {
        padding-left: 0;
        text-align: center;
        border-left: none;
        border-top: 5px solid var(--color-salmon);
        padding-top: 15px;
    }
    .inc-spotlight-quote p {
        text-align: center;
    }
}

/* CONTRIBUTIONS */


.container-con {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* --- Contributions Page Specific Styles --- */
.con-section-title {
    font-weight: 700;
    color: var(--color-pi-dark-green);
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    text-align: center;
    width: 100%;
}

.con-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-green-1);
    border-radius: 2px;
}


.con-content-block {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--team-border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    max-width: 900px;
    margin: 0 auto;
}

.con-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 20px;
}

.con-custom-card {
    background-color: #fff;
    border-radius: var(--team-border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.con-custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.con-custom-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.con-custom-card-header h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.con-card-color-1 { background-color: var(--color-purple); }
.con-card-color-2 { background-color: var(--color-salmon); }

.con-custom-card-body {
    padding: 1.5rem 2rem;
    background-color: #fff;
    flex-grow: 1;
}

.con-custom-card-body ul {
    list-style-type: disc;
    padding-left: 20px;
}

.con-custom-card-body li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .con-hero-section h1, .con-section-title {
        font-size: 2.5rem;
    }
}


/* RESULTS  */


        /* --- Main Container for the Gallery --- */
        .gallery-container {
            max-width: 1100px; /* Increased max-width for side-by-side layout */
            width: 100%;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
            overflow: hidden;
            border: 1px solid #ddeadf;
            margin-bottom: 2rem; /* Add space between galleries */
        }
        
        /* --- Hide the actual radio buttons --- */
        .gallery-container > input[type="radio"] {
            display: none;
        }

        /* --- NEW: Flexbox wrapper for side-by-side content --- */
        .gallery-body {
            display: flex;
            align-items: stretch; /* Makes columns equal height */
        }

        /* --- Wrapper for the image slider --- */
        .gallery-main {
            flex: 1 1 60%; /* Takes up ~60% of the width */
            position: relative;
            overflow: hidden;
        }

        /* --- Container for all slides --- */
        .slides-container {
            display: flex;
            transition: transform 0.4s ease-in-out;
            height: 100%;
        }

        .slide {
            min-width: 100%;
            position: relative;
            box-sizing: border-box;
        }

        .gallery-figure {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures image fills the space without distortion */
            background-color: #e9ecef;
        }

        /* --- Navigation Arrows (styled labels) --- */
        .gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(4, 108, 116, 0.7);
            color: white;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10;
            transition: background-color 0.2s ease, transform 0.2s ease;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

        .gallery-nav:hover {
            background-color: #E3937B;
            transform: translateY(-50%) scale(1.05);
        }
        
        /* --- Container for Table and Caption --- */
        .gallery-info-container {
            flex: 1 1 40%; /* Takes up ~40% of the width */
            padding: 25px;
            border-left: 1px solid #ddeadf;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .gallery-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
            margin-bottom: 15px;
        }

        .gallery-table th, .gallery-table td {
            text-align: left;
            padding: 10px 14px;
            border: 1px solid #cce2e3;
        }
        
        .gallery-table th {
            font-weight: 600;
            background-color: #f5f8f8;
            color: #006D77;
        }

        /* --- Caption Styling --- */
        .gallery-caption {
            font-size: 15px;
            color: #495057;
            text-align: center;
            line-height: 1.5;
            margin: 0;
        }
        
        /* --- The CSS Magic (Selectors updated for new structure) --- */
        .info-content {
            display: none; /* Hide all info blocks by default */
        }

        /* Gallery 1 Controls */
        #g1-slide-radio-1:checked ~ .gallery-body .slides-container { transform: translateX(0%); }
        #g1-slide-radio-2:checked ~ .gallery-body .slides-container { transform: translateX(-100%); }
        #g1-slide-radio-3:checked ~ .gallery-body .slides-container { transform: translateX(-200%); }
        
        #g1-slide-radio-1:checked ~ .gallery-body .info-for-g1-slide-1 { display: block; }
        #g1-slide-radio-2:checked ~ .gallery-body .info-for-g1-slide-2 { display: block; }
        #g1-slide-radio-3:checked ~ .gallery-body .info-for-g1-slide-3 { display: block; }

        #g1-slide-radio-1:checked ~ .gallery-body .slide-1 .prev-nav,
        #g1-slide-radio-3:checked ~ .gallery-body .slide-3 .next-nav {
            display: none;
        }

        /* Gallery 2 Controls */
        #g2-slide-radio-1:checked ~ .gallery-body .slides-container { transform: translateX(0%); }
        #g2-slide-radio-2:checked ~ .gallery-body .slides-container { transform: translateX(-100%); }
        #g2-slide-radio-3:checked ~ .gallery-body .slides-container { transform: translateX(-200%); }
        
        #g2-slide-radio-1:checked ~ .gallery-body .info-for-g2-slide-1 { display: block; }
        #g2-slide-radio-2:checked ~ .gallery-body .info-for-g2-slide-2 { display: block; }
        #g2-slide-radio-3:checked ~ .gallery-body .info-for-g2-slide-3 { display: block; }

        #g2-slide-radio-1:checked ~ .gallery-body .slide-1 .prev-nav,
        #g2-slide-radio-3:checked ~ .gallery-body .slide-3 .next-nav {
            display: none;
        }
        
        /* Gallery 3 Controls */
        #g3-slide-radio-1:checked ~ .gallery-body .slides-container { transform: translateX(0%); }
        #g3-slide-radio-2:checked ~ .gallery-body .slides-container { transform: translateX(-100%); }
        #g3-slide-radio-3:checked ~ .gallery-body .slides-container { transform: translateX(-200%); }
        
        #g3-slide-radio-1:checked ~ .gallery-body .info-for-g3-slide-1 { display: block; }
        #g3-slide-radio-2:checked ~ .gallery-body .info-for-g3-slide-2 { display: block; }
        #g3-slide-radio-3:checked ~ .gallery-body .info-for-g3-slide-3 { display: block; }

        #g3-slide-radio-1:checked ~ .gallery-body .slide-1 .prev-nav,
        #g3-slide-radio-3:checked ~ .gallery-body .slide-3 .next-nav {
            display: none;
        }


        /* --- Styles for Simple Static Figure (Image over Caption) --- */
        .static-figure-simple {
            max-width: 800px;
            width: 100%;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
            overflow: hidden;
            border: 1px solid #ddeadf;
            margin-bottom: 3rem;
        }

        .static-figure-image {
            display: block;
            width: 100%;
            height: auto;
        }

        .static-figure-caption {
            padding: 15px 20px;
            font-size: 15px;
            color: #495057;
            text-align: center;
            line-height: 1.5;
            margin: 0;
            background-color: #fbfdfd;
            border-top: 1px solid #ddeadf;
        }

        /* --- Responsive Design for smaller screens --- */
        @media (max-width: 800px) {
            .gallery-body {
                flex-direction: column; /* Stack vertically */
            }
            .gallery-info-container {
                border-left: none; /* Remove side border */
                border-top: 1px solid #ddeadf; /* Add top border */
            }
        }


        /* Survey Data Gallery in Human Practices  */
        
        /* --- STYLES FOR SURVEY GALLERY (UNIQUE) --- */
        .survey-gallery-container {
            max-width: 1100px; width: 100%; background-color: #ffffff;
            border-radius: 12px; box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
            overflow: hidden; border: 1px solid #ddeadf; margin-bottom: 3rem;
        }
        .survey-gallery-container > input[type="radio"] { display: none; }
        .survey-gallery-body { display: flex; align-items: stretch; }
        .survey-gallery-main { flex: 1 1 60%; position: relative; overflow: hidden; }
        .survey-slides-container { display: flex; transition: transform 0.4s ease-in-out; height: 100%; }
        .survey-slide { min-width: 100%; position: relative; box-sizing: border-box; }
        .survey-gallery-figure { display: block; width: 100%; height: 100%; object-fit: contain; background-color: #f8f9fa; padding: 1rem; box-sizing: border-box;}
        .survey-gallery-nav {
            position: absolute; top: 50%; transform: translateY(-50%);
            background-color: rgba(4, 108, 116, 0.7); color: white;
            border-radius: 50%; width: 44px; height: 44px;
            font-size: 24px; cursor: pointer; display: flex;
            justify-content: center; align-items: center; z-index: 10;
            transition: background-color 0.2s ease, transform 0.2s ease;
            user-select: none;
        }
        .survey-gallery-nav:hover { background-color: #E3937B; transform: translateY(-50%) scale(1.05); }
        .survey-gallery-info-container {
            flex: 1 1 40%; padding: 25px; border-left: 1px solid #ddeadf;
            display: flex; flex-direction: column; justify-content: center;
        }
        .survey-gallery-caption { font-size: 15px; color: #495057; text-align: center; line-height: 1.5; margin: 0; }
        .survey-info-content { display: none; }
        
        /* === CSS LOGIC FOR SURVEY GALLERY (UNIQUE) === */
        #survey-slide-radio-1:checked ~ .survey-gallery-body .survey-slides-container { transform: translateX(0%); }
        #survey-slide-radio-2:checked ~ .survey-gallery-body .survey-slides-container { transform: translateX(-100%); }
        #survey-slide-radio-3:checked ~ .survey-gallery-body .survey-slides-container { transform: translateX(-200%); }
        #survey-slide-radio-4:checked ~ .survey-gallery-body .survey-slides-container { transform: translateX(-300%); }
        #survey-slide-radio-5:checked ~ .survey-gallery-body .survey-slides-container { transform: translateX(-400%); }
        #survey-slide-radio-6:checked ~ .survey-gallery-body .survey-slides-container { transform: translateX(-500%); }

        #survey-slide-radio-1:checked ~ .survey-gallery-body .info-for-survey-slide-1 { display: block; }
        #survey-slide-radio-2:checked ~ .survey-gallery-body .info-for-survey-slide-2 { display: block; }
        #survey-slide-radio-3:checked ~ .survey-gallery-body .info-for-survey-slide-3 { display: block; }
        #survey-slide-radio-4:checked ~ .survey-gallery-body .info-for-survey-slide-4 { display: block; }
        #survey-slide-radio-5:checked ~ .survey-gallery-body .info-for-survey-slide-5 { display: block; }
        #survey-slide-radio-6:checked ~ .survey-gallery-body .info-for-survey-slide-6 { display: block; }

        #survey-slide-radio-1:checked ~ .survey-gallery-body .survey-slide-1 .prev-nav,
        #survey-slide-radio-6:checked ~ .survey-gallery-body .survey-slide-6 .next-nav {
            display: none;
        }
        @media (max-width: 800px) {
             .survey-gallery-body {
                flex-direction: column; /* Stack vertically */
            }
             .survey-gallery-info-container {
                border-left: none; /* Remove side border */
                border-top: 1px solid #ddeadf; /* Add top border */
            }
        }

        /* Alphafold Galleries */

/* GAllery 8 */
/* --- Gallery 8 Styles (Specific) --- */
.af-g8-container {
    max-width: 1100px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
    overflow: hidden;
    border: 1px solid #ddeadf;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}
.af-g8-container > input[type="radio"] { 
    display: none; 
}
.af-g8-container .af-g8-body { 
    display: flex; 
    align-items: stretch; 
}
.af-g8-container .af-g8-main { 
    flex: 1 1 60%; 
    position: relative; 
    overflow: hidden; 
}
.af-g8-container .af-g8-slides-container { 
    display: flex; 
    transition: transform 0.4s ease-in-out; 
    height: 100%; 
    gap: 0;
}
.af-g8-container .af-g8-slide { 
    min-width: 100%; 
    position: relative; 
    box-sizing: border-box; 
    margin: 0;
}
.af-g8-container .af-g8-figure { 
    display: block; 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    background-color: #e9ecef; 
}
.af-g8-container .af-g8-nav {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background-color: rgba(4, 108, 116, 0.7); 
    color: white;
    border-radius: 50%; 
    width: 44px; 
    height: 44px;
    font-size: 24px; 
    cursor: pointer; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    z-index: 10;
    user-select: none; 
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}
.af-g8-container .af-g8-main:hover .af-g8-nav { 
    opacity: 1; 
}
.af-g8-container .af-g8-nav:hover { 
    background-color: #E3937B; 
    transform: translateY(-50%) scale(1.05); 
}
.af-g8-container .af-g8-info-container { 
    flex: 1 1 40%; 
    padding: 25px; 
    border-left: 1px solid #ddeadf; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.af-g8-container .af-g8-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 14px; 
    margin-bottom: 15px; 
}
.af-g8-container .af-g8-table th, .af-g8-container .af-g8-table td { 
    text-align: left; 
    padding: 10px 14px; 
    border: 1px solid #cce2e3; 
}
.af-g8-container .af-g8-table th { 
    font-weight: 600; 
    background-color: #f5f8f8; 
    color: #006D77; 
}
.af-g8-container .af-g8-caption { 
    font-size: 15px; 
    color: #495057; 
    text-align: center; 
    line-height: 1.5; 
    margin: 0; 
}
.af-g8-container .af-g8-info-content { 
    display: none; 
}

/* --- Gallery 8 Controls --- */
#af-g8-slide-radio-1:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(0%); }
#af-g8-slide-radio-2:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(-100%); }
#af-g8-slide-radio-3:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(-200%); }
#af-g8-slide-radio-4:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(-300%); }
#af-g8-slide-radio-5:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(-400%); }
#af-g8-slide-radio-6:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(-500%); }
#af-g8-slide-radio-7:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(-600%); }
#af-g8-slide-radio-8:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(-700%); }
#af-g8-slide-radio-9:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(-800%); }
#af-g8-slide-radio-10:checked ~ .af-g8-body .af-g8-slides-container { transform: translateX(-900%); }

#af-g8-slide-radio-1:checked ~ .af-g8-body .info-for-af-g8-slide-1 { display: block; }
#af-g8-slide-radio-2:checked ~ .af-g8-body .info-for-af-g8-slide-2 { display: block; }
#af-g8-slide-radio-3:checked ~ .af-g8-body .info-for-af-g8-slide-3 { display: block; }
#af-g8-slide-radio-4:checked ~ .af-g8-body .info-for-af-g8-slide-4 { display: block; }
#af-g8-slide-radio-5:checked ~ .af-g8-body .info-for-af-g8-slide-5 { display: block; }
#af-g8-slide-radio-6:checked ~ .af-g8-body .info-for-af-g8-slide-6 { display: block; }
#af-g8-slide-radio-7:checked ~ .af-g8-body .info-for-af-g8-slide-7 { display: block; }
#af-g8-slide-radio-8:checked ~ .af-g8-body .info-for-af-g8-slide-8 { display: block; }
#af-g8-slide-radio-9:checked ~ .af-g8-body .info-for-af-g8-slide-9 { display: block; }
#af-g8-slide-radio-10:checked ~ .af-g8-body .info-for-af-g8-slide-10 { display: block; }

#af-g8-slide-radio-1:checked ~ .af-g8-body .af-g8-slide-1 .prev-nav,
#af-g8-slide-radio-10:checked ~ .af-g8-body .af-g8-slide-10 .next-nav { 
    display: none; 
}

/* --- Gallery 4 Styles (Specific) --- */
.af-g4-container {
    max-width: 1100px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
    overflow: hidden;
    border: 1px solid #ddeadf;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}
.af-g4-container > input[type="radio"] { 
    display: none; 
}
.af-g4-container .af-g4-body { 
    display: flex; 
    align-items: stretch; 
}
.af-g4-container .af-g4-main { 
    flex: 1 1 60%; 
    position: relative; 
    overflow: hidden; 
}
.af-g4-container .af-g4-slides-container { 
    display: flex; 
    transition: transform 0.4s ease-in-out; 
    height: 100%; 
}
.af-g4-container .af-g4-slide { 
    min-width: 100%; 
    position: relative; 
    box-sizing: border-box; 
    margin: 0;
}
.af-g4-container .af-g4-figure { 
    display: block; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    background-color: #e9ecef; 
}
.af-g4-container .af-g4-nav {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background-color: rgba(4, 108, 116, 0.7); 
    color: white;
    border-radius: 50%; 
    width: 44px; 
    height: 44px;
    font-size: 24px; 
    cursor: pointer; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    z-index: 10;
    user-select: none; 
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}
.af-g4-container .af-g4-main:hover .af-g4-nav { 
    opacity: 1; 
}
.af-g4-container .af-g4-nav:hover { 
    background-color: #E3937B; 
    transform: translateY(-50%) scale(1.05); 
}
.af-g4-container .af-g4-info-container { 
    flex: 1 1 40%; 
    padding: 25px; 
    border-left: 1px solid #ddeadf; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.af-g4-container .af-g4-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 14px; 
    margin-bottom: 15px; 
}
.af-g4-container .af-g4-table th, .af-g4-container .af-g4-table td { 
    text-align: left; 
    padding: 10px 14px; 
    border: 1px solid #cce2e3; 
}
.af-g4-container .af-g4-table th { 
    font-weight: 600; 
    background-color: #f5f8f8; 
    color: #006D77; 
}
.af-g4-container .af-g4-caption { 
    font-size: 15px; 
    color: #495057; 
    text-align: center; 
    line-height: 1.5; 
    margin: 0; 
}
.af-g4-container .af-g4-info-content { 
    display: none; 
}

/* --- Gallery 4 Controls --- */
#af-g4-slide-radio-1:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(0%); }
#af-g4-slide-radio-2:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(-100%); }
#af-g4-slide-radio-3:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(-200%); }
#af-g4-slide-radio-4:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(-300%); }
#af-g4-slide-radio-5:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(-400%); }
#af-g4-slide-radio-6:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(-500%); }
#af-g4-slide-radio-7:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(-600%); }
#af-g4-slide-radio-8:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(-700%); }
#af-g4-slide-radio-9:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(-800%); }
#af-g4-slide-radio-10:checked ~ .af-g4-body .af-g4-slides-container { transform: translateX(-900%); }

#af-g4-slide-radio-1:checked ~ .af-g4-body .info-for-af-g4-slide-1 { display: block; }
#af-g4-slide-radio-2:checked ~ .af-g4-body .info-for-af-g4-slide-2 { display: block; }
#af-g4-slide-radio-3:checked ~ .af-g4-body .info-for-af-g4-slide-3 { display: block; }
#af-g4-slide-radio-4:checked ~ .af-g4-body .info-for-af-g4-slide-4 { display: block; }
#af-g4-slide-radio-5:checked ~ .af-g4-body .info-for-af-g4-slide-5 { display: block; }
#af-g4-slide-radio-6:checked ~ .af-g4-body .info-for-af-g4-slide-6 { display: block; }
#af-g4-slide-radio-7:checked ~ .af-g4-body .info-for-af-g4-slide-7 { display: block; }
#af-g4-slide-radio-8:checked ~ .af-g4-body .info-for-af-g4-slide-8 { display: block; }
#af-g4-slide-radio-9:checked ~ .af-g4-body .info-for-af-g4-slide-9 { display: block; }
#af-g4-slide-radio-10:checked ~ .af-g4-body .info-for-af-g4-slide-10 { display: block; }

#af-g4-slide-radio-1:checked ~ .af-g4-body .af-g4-slide-1 .prev-nav,
#af-g4-slide-radio-10:checked ~ .af-g4-body .af-g4-slide-10 .next-nav { 
    display: none; 
}

/* --- Gallery 5 Styles (Specific) --- */
.af-g5-container {
    max-width: 1100px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
    overflow: hidden;
    border: 1px solid #ddeadf;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.af-g5-container > input[type="radio"] { display: none; }
.af-g5-body { display: flex; align-items: stretch; }
.af-g5-main { flex: 1 1 60%; position: relative; overflow: hidden; }
.af-g5-slides-container { display: flex; transition: transform 0.4s ease-in-out; height: 100%; }
.af-g5-slide { min-width: 100%; position: relative; box-sizing: border-box; }
.af-g5-figure { display: block; width: 100%; height: 100%; object-fit: cover; background-color: #e9ecef; }
.af-g5-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(4, 108, 116, 0.7); color: white;
    border-radius: 50%; width: 44px; height: 44px;
    font-size: 24px; cursor: pointer; display: flex;
    justify-content: center; align-items: center; z-index: 10;
    user-select: none; opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}
.af-g5-main:hover .af-g5-nav { opacity: 1; }
.af-g5-nav:hover { background-color: #E3937B; transform: translateY(-50%) scale(1.05); }
.af-g5-info-container { flex: 1 1 40%; padding: 25px; border-left: 1px solid #ddeadf; display: flex; flex-direction: column; justify-content: center; }
.af-g5-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 15px; }
.af-g5-table th, .af-g5-table td { text-align: left; padding: 10px 14px; border: 1px solid #cce2e3; }
.af-g5-table th { font-weight: 600; background-color: #f5f8f8; color: #006D77; }
.af-g5-caption { font-size: 15px; color: #495057; text-align: center; line-height: 1.5; margin: 0; }
.af-g5-info-content { display: none; }

/* --- Gallery 5 Controls (Expanded to 10) --- */
#af-g5-slide-radio-1:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(0%); }
#af-g5-slide-radio-2:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(-100%); }
#af-g5-slide-radio-3:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(-200%); }
#af-g5-slide-radio-4:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(-300%); }
#af-g5-slide-radio-5:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(-400%); }
#af-g5-slide-radio-6:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(-500%); }
#af-g5-slide-radio-7:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(-600%); }
#af-g5-slide-radio-8:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(-700%); }
#af-g5-slide-radio-9:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(-800%); }
#af-g5-slide-radio-10:checked ~ .af-g5-body .af-g5-slides-container { transform: translateX(-900%); }

#af-g5-slide-radio-1:checked ~ .af-g5-body .info-for-af-g5-slide-1 { display: block; }
#af-g5-slide-radio-2:checked ~ .af-g5-body .info-for-af-g5-slide-2 { display: block; }
#af-g5-slide-radio-3:checked ~ .af-g5-body .info-for-af-g5-slide-3 { display: block; }
#af-g5-slide-radio-4:checked ~ .af-g5-body .info-for-af-g5-slide-4 { display: block; }
#af-g5-slide-radio-5:checked ~ .af-g5-body .info-for-af-g5-slide-5 { display: block; }
#af-g5-slide-radio-6:checked ~ .af-g5-body .info-for-af-g5-slide-6 { display: block; }
#af-g5-slide-radio-7:checked ~ .af-g5-body .info-for-af-g5-slide-7 { display: block; }
#af-g5-slide-radio-8:checked ~ .af-g5-body .info-for-af-g5-slide-8 { display: block; }
#af-g5-slide-radio-9:checked ~ .af-g5-body .info-for-af-g5-slide-9 { display: block; }
#af-g5-slide-radio-10:checked ~ .af-g5-body .info-for-af-g5-slide-10 { display: block; }

#af-g5-slide-radio-1:checked ~ .af-g5-body .af-g5-slide-1 .prev-nav,
#af-g5-slide-radio-10:checked ~ .af-g5-body .af-g5-slide-10 .next-nav { display: none; }

/* --- Responsive Design --- */
@media (max-width: 800px) {
    .af-g4-body, .af-g5-body {
        flex-direction: column;
    }
    .af-g4-info-container, .af-g5-info-container {
        border-left: none;
        border-top: 1px solid #ddeadf;
    }
}


        /* HUMAN PRCATICES Button stack */

          /* --- Main Content Container --- */
          .content-container-hp1 {
            max-width: 900px;
            margin: 0 auto;
            width: 100%;
        }

        /* --- NEW: Flex container for the side-by-side layout --- */
        .side-by-side-container {
            display: flex;
            align-items: center; /* Vertically align video and buttons */
            gap: 2rem; /* Space between video and buttons */
        }

        /* --- NEW: Wrapper for the video to control its size --- */
        .video-wrapper {
            flex: 2; /* Make the video container twice as wide as the button container */
            min-width: 300px; /* Prevent video from becoming too squished */
        }

        .video-wrapper iframe {
            width: 100%;
            aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio */
            height: auto; /* Let height be automatic based on aspect ratio */
            display: block; /* Remove any extra space below the iframe */
            border-radius: 12px;
            box-shadow: 0 6px 20px rgba(0, 64, 64, 0.1);
            border: 0;
        }

        /* --- NEW: Container for the vertical buttons --- */
        .vertical-button-container {
            flex: 1; /* Button container takes up 1 part of the space */
            display: flex;
            flex-direction: column; /* Stack the buttons on top of each other */
            gap: 1rem; /* Space between the two buttons */
        }

        /* --- Updated button style --- */
        .small-pdf-button {
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            font-weight: 600;
            color: #fff;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
            border-radius: 12px;
            padding: 0.8rem 1.5rem;
            min-height: 50px;
        }

        .small-pdf-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        }

        /* Your existing color classes */
        .small-pdf-button.expression {
            background-color: var(--eng-tab-expression);
        }
        .small-pdf-button.purification {
            background-color: var(--eng-tab-purification);
        }

        /* Hover states for colors */
        .small-pdf-button.expression:hover { background-color: #005f65; }
        .small-pdf-button.purification:hover { background-color: #92669c; }
        
        /* --- Responsive Design for smaller screens --- */
        @media (max-width: 768px) {
            .side-by-side-container {
                flex-direction: column; /* Stack video on top of buttons */
            }
            .video-wrapper {
                width: 100%;
            }
            .vertical-button-container {
                width: 100%;
                flex-direction: row; /* Place buttons side-by-side again on mobile */
            }
        }


        /* --- NEW: Gallery 7 Styles (res-g7 prefix, 15 slides) --- */
        .res-g7-container {
            max-width: 1100px; width: 100%; background-color: #ffffff;
            border-radius: 12px; box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
            overflow: hidden; border: 1px solid #ddeadf; margin-bottom: 3rem;
            margin-left: auto; margin-right: auto;
        }
        .res-g7-container > input[type="radio"] { display: none; }
        .res-g7-body { display: flex; align-items: stretch; }
        .res-g7-main { flex: 1 1 60%; position: relative; overflow: hidden; }
        .res-g7-slides-container { display: flex; transition: transform 0.4s ease-in-out; height: 100%; }
        .res-g7-slide { min-width: 100%; position: relative; box-sizing: border-box; }
        .res-g7-figure { display: block; width: 100%; height: 100%; object-fit: contain; background-color: #e9ecef; } /* contain vs cover*/
        /*  display: block; width: 100%; height: 100%; object-fit: contain; background-color: #f8f9fa; padding: 1rem; box-sizing: border-box; */
        .res-g7-nav {
            position: absolute; top: 50%; transform: translateY(-50%);
            background-color: rgba(4, 108, 116, 0.7); color: white;
            border-radius: 50%; width: 44px; height: 44px;
            font-size: 24px; cursor: pointer; display: flex;
            justify-content: center; align-items: center; z-index: 10;
            user-select: none; opacity: 0;
            transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
        }
        .res-g7-main:hover .res-g7-nav { opacity: 1; }
        .res-g7-nav:hover { background-color: #E3937B; transform: translateY(-50%) scale(1.05); }
        .res-g7-info-container { flex: 1 1 40%; padding: 25px; border-left: 1px solid #ddeadf; display: flex; flex-direction: column; justify-content: center; }
        .res-g7-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 15px; }
        .res-g7-table th, .res-g7-table td { text-align: left; padding: 10px 14px; border: 1px solid #cce2e3; }
        .res-g7-table th { font-weight: 600; background-color: #f5f8f8; color: #006D77; }
        .res-g7-caption { font-size: 15px; color: #495057; text-align: center; line-height: 1.5; margin: 0; }
        .res-g7-info-content { display: none; }

        /* --- NEW: Gallery 7 Controls (15 Slides) --- */
        #res-g7-slide-radio-1:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(0%); }
        #res-g7-slide-radio-2:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-100%); }
        #res-g7-slide-radio-3:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-200%); }
        #res-g7-slide-radio-4:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-300%); }
        #res-g7-slide-radio-5:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-400%); }
        #res-g7-slide-radio-6:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-500%); }
        #res-g7-slide-radio-7:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-600%); }
        #res-g7-slide-radio-8:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-700%); }
        #res-g7-slide-radio-9:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-800%); }
        #res-g7-slide-radio-10:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-900%); }
        #res-g7-slide-radio-11:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-1000%); }
        #res-g7-slide-radio-12:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-1100%); }
        #res-g7-slide-radio-13:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-1200%); }
        /* #res-g7-slide-radio-14:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-1300%); }
        #res-g7-slide-radio-15:checked ~ .res-g7-body .res-g7-slides-container { transform: translateX(-1400%); } */

        #res-g7-slide-radio-1:checked ~ .res-g7-body .info-for-res-g7-slide-1 { display: block; }
        #res-g7-slide-radio-2:checked ~ .res-g7-body .info-for-res-g7-slide-2 { display: block; }
        #res-g7-slide-radio-3:checked ~ .res-g7-body .info-for-res-g7-slide-3 { display: block; }
        #res-g7-slide-radio-4:checked ~ .res-g7-body .info-for-res-g7-slide-4 { display: block; }
        #res-g7-slide-radio-5:checked ~ .res-g7-body .info-for-res-g7-slide-5 { display: block; }
        #res-g7-slide-radio-6:checked ~ .res-g7-body .info-for-res-g7-slide-6 { display: block; }
        #res-g7-slide-radio-7:checked ~ .res-g7-body .info-for-res-g7-slide-7 { display: block; }
        #res-g7-slide-radio-8:checked ~ .res-g7-body .info-for-res-g7-slide-8 { display: block; }
        #res-g7-slide-radio-9:checked ~ .res-g7-body .info-for-res-g7-slide-9 { display: block; }
        #res-g7-slide-radio-10:checked ~ .res-g7-body .info-for-res-g7-slide-10 { display: block; }
        #res-g7-slide-radio-11:checked ~ .res-g7-body .info-for-res-g7-slide-11 { display: block; }
        #res-g7-slide-radio-12:checked ~ .res-g7-body .info-for-res-g7-slide-12 { display: block; }
        #res-g7-slide-radio-13:checked ~ .res-g7-body .info-for-res-g7-slide-13 { display: block; }
        /* #res-g7-slide-radio-14:checked ~ .res-g7-body .info-for-res-g7-slide-14 { display: block; }
        #res-g7-slide-radio-15:checked ~ .res-g7-body .info-for-res-g7-slide-15 { display: block; } */

        #res-g7-slide-radio-1:checked ~ .res-g7-body .res-g7-slide-1 .prev-nav,
        #res-g7-slide-radio-13:checked ~ .res-g7-body .res-g7-slide-13 .next-nav { display: none; } /* Last slide switch*/



/* --- CONTENT CARDS --- */
.results-section {
    scroll-margin-top: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    margin-bottom: 2rem;
    border-left: 5px solid var(--color-green-1);
}
.results-section h2 {
    font-size: 1.8rem;
    color: var(--color-pi-dark-green);
    margin-top: 0;
    border-bottom: none; 
    padding-bottom: 0;
}
.results-section h3 {
    font-size: 1.3rem;
    color: var(--color-dark-teal);
    margin-top: 2rem;
}

/* --- Gallery 6 Styles (res-g6 prefix) --- */
.res-g6-container {
    max-width: 1100px; width: 100%; background-color: #ffffff;
    border-radius: 12px; box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
    overflow: hidden; border: 1px solid #ddeadf; margin-bottom: 3rem;
    margin-left: auto; margin-right: auto;
}
.res-g6-container > input[type="radio"] { display: none; }
.res-g6-body { display: flex; align-items: stretch; }
.res-g6-main { flex: 1 1 60%; position: relative; overflow: hidden; }
.res-g6-slides-container { display: flex; transition: transform 0.4s ease-in-out; height: 100%; }
.res-g6-slide { min-width: 100%; position: relative; box-sizing: border-box; }
.res-g6-figure { display: block; width: 100%; height: 100%; object-fit: contain; background-color: #f8f9fa; padding: 1rem; box-sizing: border-box; }
.res-g6-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(4, 108, 116, 0.7); color: white;
    border-radius: 50%; width: 44px; height: 44px;
    font-size: 24px; cursor: pointer; display: flex;
    justify-content: center; align-items: center; z-index: 10;
    user-select: none; opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}
.res-g6-main:hover .res-g6-nav { opacity: 1; }
.res-g6-nav:hover { background-color: #E3937B; transform: translateY(-50%) scale(1.05); }
.res-g6-info-container { flex: 1 1 40%; padding: 25px; border-left: 1px solid #ddeadf; display: flex; flex-direction: column; justify-content: center; }
.res-g6-caption { font-size: 15px; color: #495057; text-align: center; line-height: 1.5; margin: 0; }
.res-g6-info-content { display: none; }

/* --- Gallery 6 Controls (10 Slides) --- */
#res-g6-slide-radio-1:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(0%); }
#res-g6-slide-radio-2:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(-100%); }
#res-g6-slide-radio-3:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(-200%); }
#res-g6-slide-radio-4:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(-300%); }
#res-g6-slide-radio-5:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(-400%); }
#res-g6-slide-radio-6:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(-500%); }
#res-g6-slide-radio-7:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(-600%); }
#res-g6-slide-radio-8:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(-700%); }
#res-g6-slide-radio-9:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(-800%); }
#res-g6-slide-radio-10:checked ~ .res-g6-body .res-g6-slides-container { transform: translateX(-900%); }

#res-g6-slide-radio-1:checked ~ .res-g6-body .info-for-res-g6-slide-1 { display: block; }
#res-g6-slide-radio-2:checked ~ .res-g6-body .info-for-res-g6-slide-2 { display: block; }
#res-g6-slide-radio-3:checked ~ .res-g6-body .info-for-res-g6-slide-3 { display: block; }
#res-g6-slide-radio-4:checked ~ .res-g6-body .info-for-res-g6-slide-4 { display: block; }
#res-g6-slide-radio-5:checked ~ .res-g6-body .info-for-res-g6-slide-5 { display: block; }
#res-g6-slide-radio-6:checked ~ .res-g6-body .info-for-res-g6-slide-6 { display: block; }
#res-g6-slide-radio-7:checked ~ .res-g6-body .info-for-res-g6-slide-7 { display: block; }
#res-g6-slide-radio-8:checked ~ .res-g6-body .info-for-res-g6-slide-8 { display: block; }
#res-g6-slide-radio-9:checked ~ .res-g6-body .info-for-res-g6-slide-9 { display: block; }
#res-g6-slide-radio-10:checked ~ .res-g6-body .info-for-res-g6-slide-10 { display: block; }

#res-g6-slide-radio-1:checked ~ .res-g6-body .res-g6-slide-1 .prev-nav,
#res-g6-slide-radio-10:checked ~ .res-g6-body .res-g6-slide-10 .next-nav { display: none; }

/* --- Responsive Design --- */
@media (max-width: 800px) {
    .res-g6-body { flex-direction: column; }
    .res-g6-info-container { border-left: none; border-top: 1px solid #ddeadf; }
}

/* --- R-Time Gallery Styles (rtime-g prefix) --- */
.rtime-g-container {
    max-width: 1100px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
    overflow: hidden;
    border: 1px solid #ddeadf;
    margin: 3rem auto;
    font-family: sans-serif;
}

.rtime-g-container > input[type="radio"] {
    display: none;
}

.rtime-g-body {
    display: flex;
    align-items: stretch;
}

.rtime-g-main {
    flex: 1 1 60%;
    position: relative;
    overflow: hidden;
}

.rtime-g-slides-container {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.rtime-g-slide {
    min-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.rtime-g-figure {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use 'contain' to see the whole image, or 'cover' to fill the space */
    background-color: #e9ecef;
}

.rtime-g-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(4, 108, 116, 0.7);
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    user-select: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.rtime-g-main:hover .rtime-g-nav {
    opacity: 1;
}

.rtime-g-nav:hover {
    background-color: #E3937B;
    transform: translateY(-50%) scale(1.05);
}

.next-nav { right: 15px; }
.prev-nav { left: 15px; }

.rtime-g-info-container {
    flex: 1 1 40%;
    padding: 25px;
    border-left: 1px solid #ddeadf;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rtime-g-caption {
    font-size: 15px;
    color: #495057;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

.rtime-g-info-content {
    display: none;
}

/* --- R-Time Gallery Controls (5 Slides) --- */
#rtime-g-slide-radio-1:checked ~ .rtime-g-body .rtime-g-slides-container { transform: translateX(0%); }
#rtime-g-slide-radio-2:checked ~ .rtime-g-body .rtime-g-slides-container { transform: translateX(-100%); }
#rtime-g-slide-radio-3:checked ~ .rtime-g-body .rtime-g-slides-container { transform: translateX(-200%); }
#rtime-g-slide-radio-4:checked ~ .rtime-g-body .rtime-g-slides-container { transform: translateX(-300%); }
#rtime-g-slide-radio-5:checked ~ .rtime-g-body .rtime-g-slides-container { transform: translateX(-400%); }

#rtime-g-slide-radio-1:checked ~ .rtime-g-body .info-for-rtime-g-slide-1 { display: block; }
#rtime-g-slide-radio-2:checked ~ .rtime-g-body .info-for-rtime-g-slide-2 { display: block; }
#rtime-g-slide-radio-3:checked ~ .rtime-g-body .info-for-rtime-g-slide-3 { display: block; }
#rtime-g-slide-radio-4:checked ~ .rtime-g-body .info-for-rtime-g-slide-4 { display: block; }
#rtime-g-slide-radio-5:checked ~ .rtime-g-body .info-for-rtime-g-slide-5 { display: block; }

/* Hide prev arrow on first slide and next arrow on the last (5th) slide */
#rtime-g-slide-radio-1:checked ~ .rtime-g-body .rtime-g-slide-1 .prev-nav,
#rtime-g-slide-radio-5:checked ~ .rtime-g-body .rtime-g-slide-5 .next-nav {
    display: none;
}

/* --- Trial Gallery Styles (trial-g prefix) --- */
.trial-g-container {
    max-width: 1100px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
    overflow: hidden;
    border: 1px solid #ddeadf;
    margin: 3rem auto;
    font-family: sans-serif;
}

.trial-g-container > input[type="radio"] {
    display: none;
}

.trial-g-body {
    display: flex;
    align-items: stretch;
}

.trial-g-main {
    flex: 1 1 60%;
    position: relative;
    overflow: hidden;
}

.trial-g-slides-container {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.trial-g-slide {
    min-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.trial-g-figure {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #e9ecef;
}

.trial-g-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(4, 108, 116, 0.7);
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    user-select: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.trial-g-main:hover .trial-g-nav {
    opacity: 1;
}

.trial-g-nav:hover {
    background-color: #E3937B;
    transform: translateY(-50%) scale(1.05);
}

.next-nav { right: 15px; }
.prev-nav { left: 15px; }

.trial-g-info-container {
    flex: 1 1 40%;
    padding: 25px;
    border-left: 1px solid #ddeadf;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trial-g-caption {
    font-size: 15px;
    color: #495057;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

.trial-g-info-content {
    display: none;
}

/* --- Trial Gallery Controls (6 Slides) --- */
#trial-g-slide-radio-1:checked ~ .trial-g-body .trial-g-slides-container { transform: translateX(0%); }
#trial-g-slide-radio-2:checked ~ .trial-g-body .trial-g-slides-container { transform: translateX(-100%); }
#trial-g-slide-radio-3:checked ~ .trial-g-body .trial-g-slides-container { transform: translateX(-200%); }
#trial-g-slide-radio-4:checked ~ .trial-g-body .trial-g-slides-container { transform: translateX(-300%); }
#trial-g-slide-radio-5:checked ~ .trial-g-body .trial-g-slides-container { transform: translateX(-400%); }
#trial-g-slide-radio-6:checked ~ .trial-g-body .trial-g-slides-container { transform: translateX(-500%); }

#trial-g-slide-radio-1:checked ~ .trial-g-body .info-for-trial-g-slide-1 { display: block; }
#trial-g-slide-radio-2:checked ~ .trial-g-body .info-for-trial-g-slide-2 { display: block; }
#trial-g-slide-radio-3:checked ~ .trial-g-body .info-for-trial-g-slide-3 { display: block; }
#trial-g-slide-radio-4:checked ~ .trial-g-body .info-for-trial-g-slide-4 { display: block; }
#trial-g-slide-radio-5:checked ~ .trial-g-body .info-for-trial-g-slide-5 { display: block; }
#trial-g-slide-radio-6:checked ~ .trial-g-body .info-for-trial-g-slide-6 { display: block; }

/* Hide prev arrow on first slide and next arrow on the last (6th) slide */
#trial-g-slide-radio-1:checked ~ .trial-g-body .trial-g-slide-1 .prev-nav,
#trial-g-slide-radio-6:checked ~ .trial-g-body .trial-g-slide-6 .next-nav {
    display: none;
}


/* --- Two-Slide Gallery Styles (gallery-two-col prefix) --- */
.gallery-two-col-container {
    max-width: 1100px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
    overflow: hidden;
    border: 1px solid #ddeadf;
    margin: 3rem auto;
    font-family: sans-serif;
}

.gallery-two-col-container > input[type="radio"] {
    display: none;
}

.gallery-two-col-body {
    display: flex;
    align-items: stretch;
}

.gallery-two-col-main {
    flex: 1 1 60%;
    position: relative;
    overflow: hidden;
}

.gallery-two-col-slides-container {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.gallery-two-col-slide {
    min-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.gallery-two-col-figure {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #e9ecef;
}

.gallery-two-col-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(4, 108, 116, 0.7);
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    user-select: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.gallery-two-col-main:hover .gallery-two-col-nav {
    opacity: 1;
}

.gallery-two-col-nav:hover {
    background-color: #E3937B;
    transform: translateY(-50%) scale(1.05);
}

.next-nav { right: 15px; }
.prev-nav { left: 15px; }

.gallery-two-col-info-container {
    flex: 1 1 40%;
    padding: 25px;
    border-left: 1px solid #ddeadf;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-two-col-caption {
    font-size: 15px;
    color: #495057;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

.gallery-two-col-info-content {
    display: none;
}

/* --- Gallery Controls (2 Slides) --- */
#gallery-two-col-slide-radio-1:checked ~ .gallery-two-col-body .gallery-two-col-slides-container { transform: translateX(0%); }
#gallery-two-col-slide-radio-2:checked ~ .gallery-two-col-body .gallery-two-col-slides-container { transform: translateX(-100%); }

#gallery-two-col-slide-radio-1:checked ~ .gallery-two-col-body .info-for-gallery-two-col-slide-1 { display: block; }
#gallery-two-col-slide-radio-2:checked ~ .gallery-two-col-body .info-for-gallery-two-col-slide-2 { display: block; }

/* Hide prev arrow on first slide and next arrow on the last (2nd) slide */
#gallery-two-col-slide-radio-1:checked ~ .gallery-two-col-body .gallery-two-col-slide-1 .prev-nav,
#gallery-two-col-slide-radio-2:checked ~ .gallery-two-col-body .gallery-two-col-slide-2 .next-nav {
    display: none;
}

/* --- Duo Gallery Styles (gallery-duo prefix) --- */
.gallery-duo-container {
    max-width: 1100px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
    overflow: hidden;
    border: 1px solid #ddeadf;
    margin: 3rem auto;
    font-family: sans-serif;
}

.gallery-duo-container > input[type="radio"] {
    display: none;
}

.gallery-duo-body {
    display: flex;
    align-items: stretch;
}

.gallery-duo-main {
    flex: 1 1 60%;
    position: relative;
    overflow: hidden;
}

.gallery-duo-slides-container {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.gallery-duo-slide {
    min-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.gallery-duo-figure {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #e9ecef;
}

.gallery-duo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(4, 108, 116, 0.7);
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    user-select: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.gallery-duo-main:hover .gallery-duo-nav {
    opacity: 1;
}

.gallery-duo-nav:hover {
    background-color: #E3937B;
    transform: translateY(-50%) scale(1.05);
}

.next-nav { right: 15px; }
.prev-nav { left: 15px; }

.gallery-duo-info-container {
    flex: 1 1 40%;
    padding: 25px;
    border-left: 1px solid #ddeadf;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-duo-caption {
    font-size: 15px;
    color: #495057;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

.gallery-duo-info-content {
    display: none;
}

/* --- Gallery Controls (2 Slides) --- */
#gallery-duo-slide-radio-1:checked ~ .gallery-duo-body .gallery-duo-slides-container { transform: translateX(0%); }
#gallery-duo-slide-radio-2:checked ~ .gallery-duo-body .gallery-duo-slides-container { transform: translateX(-100%); }

#gallery-duo-slide-radio-1:checked ~ .gallery-duo-body .info-for-gallery-duo-slide-1 { display: block; }
#gallery-duo-slide-radio-2:checked ~ .gallery-duo-body .info-for-gallery-duo-slide-2 { display: block; }

/* Hide prev arrow on first slide and next arrow on the last (2nd) slide */
#gallery-duo-slide-radio-1:checked ~ .gallery-duo-body .gallery-duo-slide-1 .prev-nav,
#gallery-duo-slide-radio-2:checked ~ .gallery-duo-body .gallery-duo-slide-2 .next-nav {
    display: none;
}

.significant {
    font-weight: bold;
    color: #2a9d8f;
}

/* --- Trial Gallery Styles (trial-f prefix) --- */
.trial-f-container {
    max-width: 1100px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(4, 108, 116, 0.1);
    overflow: hidden;
    border: 1px solid #ddeadf;
    margin: 3rem auto;
    font-family: sans-serif;
}

.trial-f-container > input[type="radio"] {
    display: none;
}

.trial-f-body {
    display: flex; /* Makes the main slide area and info area side-by-side */
    align-items: stretch;
}

.trial-f-main {
    flex: 1 1 60%; /* Takes 60% of the container width */
    position: relative;
    overflow: hidden;
}

.trial-f-slides-container {
    display: flex;
    /* Total width is 600% (6 slides * 100% of the .trial-f-main container) */
    width: 600%; 
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.trial-f-slide {
    min-width: 16.6666%; /* 100% / 6 slides = 16.6666% of the 600% container width */
    position: relative;
    box-sizing: border-box;
}

.trial-f-figure {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #e9ecef;
}

/* --- Navigation Arrows --- */
.trial-f-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(4, 108, 116, 0.7);
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    user-select: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.trial-f-main:hover .trial-f-nav {
    opacity: 1;
}

.trial-f-nav:hover {
    background-color: #E3937B;
    transform: translateY(-50%) scale(1.05);
}

.next-nav { right: 15px; }
.prev-nav { left: 15px; }

/* --- Caption/Info Content --- */
.trial-f-info-container {
    flex: 1 1 40%; /* Takes 40% of the container width */
    padding: 25px;
    border-left: 1px solid #ddeadf;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trial-f-caption {
    font-size: 15px;
    color: #495057;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

.trial-f-info-content {
    display: none; /* Hidden until the corresponding radio is checked */
}


