/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* General Body & Typography */
body {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

h1,
h2,
h3 {
  color: #023452;
  line-height: 1.3;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2em;
  margin-bottom: 1em;
}

h3 {
  font-size: 1.3em;
  margin-bottom: 0.5em;
}

a {
  color: #0d47a1;
  text-decoration: none;
}

a:hover {
  color: #1976d2;
  text-decoration: underline;
}

/* Prevent flash of unstyled content */
#header-placeholder,
#footer-placeholder {
  min-height: 1px;
}

#header-placeholder:empty,
#footer-placeholder:empty {
  display: block;
  min-height: 90px;
}

/* Loading indicator for page transitions */
body.loading {
  position: relative;
}

body.loading::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f47920, #ff9f50);
  z-index: 9999;
  animation: loading-bar 1s ease-in-out infinite;
}

@keyframes loading-bar {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Smooth content transitions */
main {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.main-header {
  background-color: #023452;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-logo {
  flex-shrink: 0;
  width: auto;
  max-width: 250px;
  z-index: 1001;
}

.header-logo a {
  display: block;
  width: fit-content;
  pointer-events: auto;
}

.header-logo img {
  max-height: 180px;
  width: auto;
  display: block;
  pointer-events: none;
  transition: max-height 0.3s ease;
}

/* Burger Menu Button - Hidden by default */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2.5em;
  height: 2.5em;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  z-index: 1001;
  position: relative;
}

.burger-menu:focus {
  outline: 2px solid #f47920;
  outline-offset: 2px;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  z-index: 1000;
  position: relative;
}

.header-nav .nav-list,
.header-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.header-nav ul li {
  display: inline-block;
  margin: 0;
  padding: 0;
  position: relative;
}

.header-nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.54em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: block;
  white-space: nowrap;
  position: relative;
}

.header-nav ul li a:hover,
.header-nav ul li .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

.header-nav ul li.active a,
.header-nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.header-nav ul li.active a:hover,
.header-nav ul li a.active:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

/* Responsive breakpoints for navbar */

/* Tablet landscape and smaller desktops (1200px and below) */
@media (max-width: 1200px) {
  .header-container {
    padding: 0 1.5em;
  }

  .header-logo img {
    max-height: 140px;
  }

  .header-nav ul {
    gap: 0.4em;
  }

  .header-nav ul li a {
    font-size: 1.3em;
    padding: 12px 20px;
  }
}

/* Tablet (1024px and below) - Show burger menu */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 1em;
  }

  .header-logo {
    max-width: 200px;
  }

  .header-logo img {
    max-height: 120px;
  }

  .burger-menu {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    max-width: 80%;
    background-color: #023452;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .header-nav.active {
    right: 0;
  }

  .header-nav .nav-list,
  .header-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    align-items: stretch;
  }

  .header-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header-nav ul li a {
    padding: 18px 30px;
    font-size: 1.4em;
    text-align: left;
    white-space: normal;
  }

  .header-nav ul li a:hover {
    transform: none;
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .main-header {
    padding: 15px 0;
  }

  .header-container {
    padding: 0 1em;
  }

  .header-logo {
    max-width: 180px;
  }

  .header-logo img {
    max-height: 100px;
  }

  .burger-menu {
    width: 2.2em;
    height: 2.2em;
  }

  .header-nav {
    width: 280px;
  }

  .header-nav ul li a {
    font-size: 1.3em;
    padding: 16px 25px;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .header-container {
    padding: 0 0.8em;
  }

  .header-logo {
    max-width: 150px;
  }

  .header-logo img {
    max-height: 80px;
  }

  .burger-menu {
    width: 2em;
    height: 2em;
  }

  .burger-line {
    height: 2.5px;
  }

  .header-nav {
    width: 260px;
  }

  .header-nav ul li a {
    font-size: 1.2em;
    padding: 14px 20px;
  }
}


/* Hero Section */
.hero {
  background: linear-gradient(135deg, #023452 0%, #034a73 100%);
  color: #ffffff;
  padding: 35px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: #ffffff;
  font-size: 3em;
  margin-bottom: 0.3em;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.625em;
  margin-bottom: 1em;
  font-weight: 400;
}

.hero-description {
  font-size: 1.225em;
  margin-bottom: 2em;
  opacity: 0.95;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.button-primary {
  background-color: #f47920;
  color: #ffffff;
  border: 2px solid #f47920;
}

.button-primary:hover {
  background-color: #ffffff;
  color: #f47920 !important;
  border-color: #f47920;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 121, 32, 0.3);
  text-decoration: none;
}

.button-secondary {
  background-color: #f47920;
  color: #ffffff;
  border: 2px solid #f47920;
}

.button-secondary:hover {
  background-color: #ffffff;
  color: #f47920 !important;
  border-color: #f47920;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 121, 32, 0.3);
  text-decoration: none;
}

.button-outline {
  background-color: transparent;
  color: #023452;
  border: 2px solid #023452;
  padding: 10px 25px;
}

.button-outline:hover {
  background-color: #023452;
  color: #ffffff !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.button-primary-large {
  background-color: #f47920;
  color: #ffffff;
  padding: 15px 40px;
  font-size: 1.1em;
  border: 2px solid #f47920;
}

.button-primary-large:hover {
  background-color: #ffffff;
  color: #f47920 !important;
  border-color: #f47920;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 121, 32, 0.3);
  text-decoration: none;
}

.text-link {
  color: #f47920;
  font-weight: 600;
  font-size: 1.1em;
}

.text-link:hover {
  color: #e06810 !important;
  text-decoration: underline;
}

.card-link {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  color: #f47d21;
  background-color: transparent;
  border: 2px solid #f47d21;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-link:hover {
  color: #ffffff !important;
  background-color: #f47d21;
  border-color: #f47d21;
  transform: translateY(-2px);
  text-decoration: none;
}

.card-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.card-buttons .card-link {
  margin-top: 0;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.card-link.register-btn {
  color: #023452;
  border-color: #023452;
  background-color: transparent;
}

.card-link.register-btn:hover {
  color: #fff;
  background-color: #023452;
  border-color: #023452;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #f47d21;
  color: white;
  border: 2px solid #f47d21;
}

.btn-primary:hover {
  background: #ffffff;
  color: #f47d21 !important;
  border-color: #f47d21;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(244, 125, 33, 0.3);
  text-decoration: none;
}

.btn-lg {
  padding: 1em 2.5em;
  font-size: 1.1em;
  border: 2px solid #f47d21;
}

.btn-outline {
  background: transparent !important;
  color: #f47d21;
  border: 2px solid #f47d21;
  padding: 10px 20px;
  /* Match card-link padding */
  border-radius: 4px;
  /* Match card-link radius */
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  /* Match card-link size */
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #f47d21 !important;
  color: #ffffff !important;
  border-color: #f47d21;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: none;
  /* Remove extra shadow to match card-link simple style, or keep if desired */
}

/* Card Image Styles */
.card-image {
  width: 100%;
  height: 200px;
  /* Fixed height for consistency */
  object-fit: contain;
  /* Contain logic ensures whole image is seen */
  border-radius: 4px;
  /* Slight radius */
  margin-bottom: 1em;
  background-color: #ffffff;
  /* White background for cleaner look */
}

/* Ensure buttons in cards wrap properly */
.card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

main.container {
  padding-top: 2em;
  padding-bottom: 2em;
}

/* Sections */
.about-preview,
.key-areas,
.news-events,
.cta-section {
  padding: 25px 0;
}

.about-preview {
  background-color: #e8eaed;
  text-align: center;
}

.about-preview p {
  max-width: 800px;
  margin: 0 auto 1em;
  font-size: 1.1em;
  line-height: 1.8;
}

.text-link {
  color: #f47920;
  font-weight: 600;
  font-size: 1.1em;
}

.text-link:hover {
  color: #e06810;
}

/* Key Areas - Card Grid */
.key-areas {
  background-color: #ffffff;
}

.key-areas h2 {
  text-align: center;
  margin-bottom: 1.5em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
}

.card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2em;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #023452;
}

.card-icon {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p {
  color: #666;
  margin-bottom: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

.card-link {
  color: #f47920;
  font-weight: 600;
  margin-top: auto;
}

.card-link:hover {
  color: #ffffff !important;
  text-decoration: none;
}

/* News & Events */
.news-events {
  background-color: #e8eaed;
}

.news-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3em;
  align-items: start;
}

.news-section,
.events-section {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-section h2,
.events-section h2 {
  margin-bottom: 1.5em;
}

.news-item {
  background: #ffffff;
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 1.5em;
  border-left: 4px solid #f47920;
  flex-grow: 1;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #023452 0%, #034a73 100%);
  color: #ffffff;
  text-align: center;
  padding: 50px 0;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 0.3em;
}

.cta-section p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
  opacity: 0.95;
}

/* Footer */
.main-footer {
  background-color: #023452;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3em;
}

.footer-column {
  flex: 1;
  max-width: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1em;
  }

  .hero {
    padding: 35px 0;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero-subtitle {
    font-size: 1.2em;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .news-events-grid {
    grid-template-columns: 1fr;
  }

  .main-header .container {
    flex-direction: column;
    text-align: center;
  }

  .main-header .main-nav li {
    margin: 0.5em;
  }

  .content-section {
    padding: 30px 0;
  }

  .elixir-ireland-featured {
    padding: 35px 0 !important;
  }
}

/* Prevent overflow in all sections */
section {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Fix for grids that might cause overflow */
.about-intro-grid,
.info-grid,
.features-cards,
.institutes-grid,
.leadership-grid,
.team-grid,
.feature-grid,
.two-column {
  width: 100%;
  max-width: 100%;
}

/* ===========================
   ABOUT PAGE STYLES
   =========================== */

/* Page Hero */
.page-hero {
  text-align: center;
  padding: 40px 20px 30px;
  background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
  margin-bottom: 0;
}

.page-hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #f47d21;
  margin-bottom: 20px;
}

.page-hero .lead {
  font-size: 1.5rem;
  color: #495057;
  font-weight: 300;
}

/* Content Section - Full Width */
.content-section {
  margin-bottom: 0;
  padding: 45px 0;
  width: 100%;
}

.content-section:nth-of-type(odd) {
  background-color: #ffffff;
}

.content-section:nth-of-type(even) {
  background-color: #e8eaed;
}

.content-section .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* About Intro Section */
.about-intro-section {
  background: linear-gradient(135deg, #023452 0%, #034a73 100%) !important;
  color: #ffffff;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-intro-text h2 {
  font-size: 2em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
}

.about-intro-text p {
  color: #ffffff;
  opacity: 0.95;
}

.intro-paragraph {
  font-size: 1.2rem !important;
  font-weight: 500;
  color: #ffffff !important;
  line-height: 1.8;
  margin-bottom: 20px !important;
  opacity: 0.95;
}

/* Feature Cards Grid */
.features-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-card {
  background: white;
  padding: 35px 30px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(244, 125, 33, 0.15);
  border-color: #f47d21;
}

.feature-card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #f47d21;
  /* Add icon color */
}

.feature-card h3 {
  font-size: 1.3rem;
  color: #023452;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.feature-card p {
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

/* Featured ELIXIR Ireland Section */
.elixir-ireland-featured {
  background-color: #ffffff !important;
  padding: 50px 0 !important;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.featured-text {
  padding-right: 20px;
}

.featured-content {
  margin-top: 20px;
}

.featured-intro {
  font-size: 1.25rem !important;
  font-weight: 500;
  color: #2c3e50 !important;
  line-height: 1.8;
  margin-bottom: 25px !important;
}

.features-highlight {
  display: grid;
  gap: 20px;
  margin-top: 35px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  border-radius: 10px;
  border-left: 4px solid #f47d21;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 12px rgba(244, 125, 33, 0.15);
}

.highlight-icon {
  font-size: 2rem;
  min-width: 40px;
}

.highlight-item h4 {
  font-size: 1.1rem;
  color: #023452;
  margin: 0 0 5px 0;
  font-weight: 700;
}

.highlight-item p {
  color: #6c757d;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.featured-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-placeholder:hover {
  transform: scale(1.02);
}

.image-caption {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
  text-align: center;
}

/* Container for content within sections */
.content-section .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1.5em;
}

.icon-circle {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: linear-gradient(135deg, #f47d21 0%, #ff9447 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(244, 125, 33, 0.3);
  margin: 0;
}

.section-header h2 {
  font-size: 2em;
  font-weight: 700;
  color: #023452;
  margin: 0;
}

.section-content {
  line-height: 1.8;
}

.section-content>p {
  font-size: 1.1rem;
  color: #495057;
  margin-bottom: 30px;
}

/* Info Grid (Stats Cards) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #e9ecef;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(244, 125, 33, 0.15);
  border-color: #f47d21;
}

.info-card h3 {
  font-size: 3rem;
  font-weight: 700;
  color: #f47d21;
  margin: 0 0 10px 0;
}

.info-card p {
  font-size: 1.1rem;
  color: #6c757d;
  margin: 0;
  font-weight: 600;
}

/* Features List */
.features-list {
  display: grid;
  gap: 25px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 16px rgba(244, 125, 33, 0.12);
}

.feature-icon {
  font-size: 2.5rem;
  min-width: 50px;
}

.feature-item h4 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.feature-item p {
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* Project Card Grid */
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  /* Adjusted gap */
  margin-top: 40px;
}

.project-card {
  background-color: #fff;
  border-radius: 12px;
  /* Adjusted border-radius */
  box-shadow: none;
  /* Remove initial box-shadow */
  border: 2px solid #e9ecef;
  /* Add border */
  padding: 35px 30px;
  /* Adjusted padding */
  text-align: center;
  transition: all 0.3s ease;
  /* Use all for transition */
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  /* Add cursor pointer */
}

.project-card:hover {
  transform: translateY(-8px);
  /* Adjusted transform */
  box-shadow: 0 12px 32px rgba(244, 125, 33, 0.15);
  /* Add hover box-shadow */
  border-color: #f47d21;
  /* Add hover border color */
}

.project-card-logo {
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-card-logo img {
  max-height: 100%;
  max-width: 150px;
  object-fit: contain;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 15px;
  /* Adjusted margin */
  color: #023452;
  font-weight: 700;
  /* Add font-weight */
}

.project-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #6c757d;
  /* Adjusted color */
  flex-grow: 1;
}

/* Institutes Grid - Horizontal Cards */
.institutes-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.institute-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.institute-card:hover {
  border-color: #f47d21;
  box-shadow: 0 8px 24px rgba(244, 125, 33, 0.15);
  transform: translateY(-3px);
  text-decoration: none;
}

.institute-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
  padding: 8px;
  overflow: hidden;
}

.institute-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.institute-card:hover .institute-icon {
  background: #ffffff;
  border-color: #f47d21;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(244, 125, 33, 0.2);
}

.institute-info {
  flex: 1;
}

.institute-card h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.institute-card p {
  color: #6c757d;
  margin: 0;
  font-size: 1rem;
}

.institute-link {
  color: #f47d21;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.institute-card:hover .institute-link {
  opacity: 1;
}

/* Leadership Grid */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}



/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.team-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: #f47d21;
  box-shadow: 0 8px 24px rgba(244, 125, 33, 0.15);
  transform: translateY(-5px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  border: 3px solid #dee2e6;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.team-card:hover .team-avatar {
  border-color: #f47d21;
  transform: scale(1.05);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* Adjust Pilib's image position for team card */
.team-avatar img[alt="Pilib Ó Broin"] {
  object-position: center 20%;
}

.team-card h4 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.team-card .role {
  color: #f47d21;
  font-size: 0.95rem;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.team-card .affiliation {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0 0 15px 0;
}

.team-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.team-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
}

.team-link:hover {
  background: #f47d21;
  color: white;
  border-color: #f47d21;
  transform: translateY(-2px);
}

/* Board List */
.board-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 20px;
  margin-top: 40px;
}

.board-member {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.board-member:hover {
  border-color: #f47d21;
  box-shadow: 0 6px 20px rgba(244, 125, 33, 0.12);
  transform: translateX(10px);
  text-decoration: none;
}

.board-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.board-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* Ensure board icon images display properly */
.board-icon img {
  transform: scale(1.0);
}

.board-member:hover .board-icon {
  border-color: #f47d21;
  box-shadow: 0 4px 12px rgba(244, 125, 33, 0.3);
}

.board-member h4 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.board-member .role {
  color: #f47d21;
  font-size: 0.95rem;
  margin: 0 0 5px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.board-member .affiliation {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

/* Collaboration Category */
.collaboration-category {
  margin-bottom: 50px;
}

.collaboration-category:last-child {
  margin-bottom: 0;
}

.collaboration-category>h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 25px;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 2px solid #f47d21;
}

.collaboration-list {
  display: grid;
  gap: 20px;
}

.collaboration-item {
  padding: 25px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.collaboration-item:hover {
  border-color: #f47d21;
  box-shadow: 0 6px 20px rgba(244, 125, 33, 0.12);
  transform: translateX(8px);
  text-decoration: none;
}

.collaboration-item h4 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.collaboration-item p {
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, #023452 0%, #034a73 100%);
  padding: 60px 2em;
  text-align: center;
  margin-top: 0;
  width: 100%;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: white;
  margin: 0 0 20px 0;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 30px 0;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #f47d21;
  color: white;
  border: 2px solid #f47d21;
}

.btn-primary:hover {
  background: #ffffff;
  color: #f47d21 !important;
  border-color: #f47d21;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(244, 125, 33, 0.3);
  text-decoration: none;
}

.btn-lg {
  padding: 1em 2.5em;
  font-size: 1.1em;
  border: 2px solid #f47d21;
}

/* Institute List */
.institute-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.institute-list li {
  background-color: #e8eaed;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: flex-start;
}

.action-buttons.centered {
  justify-content: center;
}

.action-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Member Logos */
.member-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
  align-items: start;
}

.member-logo {
  text-align: center;
}

.logo-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.logo-circle:hover {
  border-color: #f47d21;
  transform: scale(1.05);
}

.logo-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.member-logo p {
  font-weight: 600;
  color: #023452;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-text {
    padding-right: 0;
  }

  .featured-image {
    order: -1;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-intro-image {
    order: -1;
  }

  .member-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro-image-placeholder {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero .lead {
    font-size: 1.2rem;
  }

  .content-section {
    padding: 40px 0;
  }

  .content-section .container {
    padding: 0 1em;
  }

  .elixir-ireland-featured {
    padding: 50px 0 !important;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .leadership-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .institute-card {
    flex-direction: column;
    text-align: center;
  }

  .board-member {
    flex-direction: column;
    text-align: center;
  }

  .member-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   15. Participate Page Styles
   ========================================================================== */

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.icon-circle {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e7f3f8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cce3f0;
}

.icon-circle svg {
  color: var(--primary-color);
}

.section-header h2 {
  margin-bottom: 0;
}

.section-content {}

.alt-bg .section-content {
  padding-left: 0;
}

.alt-bg .section-header {}

.participate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.participate-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.participate-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 1rem;
}

.benefits-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 20px;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: flex-start;
}

.action-buttons.centered {
  justify-content: center;
}

.action-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.working-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.working-group-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.working-group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.working-group-icon {
  font-size: 1.5rem;
  background-color: #e7f3f8;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.working-group-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.group-activities {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.group-activities li {
  margin-bottom: 0.25rem;
  position: relative;
  padding-left: 18px;
}

.group-activities li::before {
  content: '›';
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--secondary-color);
}

.join-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.join-option-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.join-option-badge {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.join-option-badge.institutional {
  background-color: #e9d8fd;
  color: #5a0c9e;
}

.join-option-badge.individual {
  background-color: #d8f5fd;
  color: #0c7a9e;
}

.join-option-badge.service {
  background-color: #d8fddb;
  color: #0c9e2e;
}

.join-option-card h3 {
  margin-top: 0;
}

.join-description {
  font-style: italic;
  color: #555;
  min-height: 60px;
}

.join-benefits,
.join-requirements {
  margin-top: 1rem;
}

.join-benefits h4,
.join-requirements h4 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.join-benefits ul,
.join-requirements ul {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}

.join-benefits ul li,
.join-requirements ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5rem;
}

.join-benefits ul li::before {
  content: '✓';
  color: #28a745;
  position: absolute;
  left: 0;
}

.join-requirements ul li::before {
  content: '»';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
}

.join-option-card .btn {
  margin-top: auto;
  width: 100%;
}

.join-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background-color: #e8eaed;
  border-radius: 8px;
}

.vibe-section .section-content {
  padding-left: 0;
}

.vibe-intro {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.vibe-intro-text {
  flex: 1;
}

.vibe-intro-image {
  flex-basis: 40%;
  max-width: 500px;
}

.vibe-intro-image img {
  border-radius: 8px;
}

.vibe-ideal-list {
  list-style: none;
  padding: 0;
}

.vibe-ideal-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5rem;
}

.vibe-ideal-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.subsection-title {
  text-align: center;
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.vibe-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vibe-area-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.vibe-area-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.vibe-examples {
  margin-top: 1rem;
  font-size: 0.8rem;
}

.vibe-tag {
  display: inline-block;
  background-color: #e9ecef;
  color: #495057;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  margin: 0.2rem;
}

.vibe-process {
  margin-top: 3rem;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 1rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.process-arrow {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-top: 2.5rem;
}

.vibe-benefits-section {
  margin-top: 3rem;
}

.vibe-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.vibe-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #e8eaed;
  padding: 0.75rem;
  border-radius: 8px;
}

.benefit-icon {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
}

.vibe-action.action-buttons {
  justify-content: center;
}

@media (max-width: 992px) {
  .section-content {
    padding-left: 0;
  }

  .alt-bg .section-header {
    padding-left: 0;
  }

  .vibe-intro {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section-header {
    gap: 1rem;
  }

  .icon-circle {
    width: 50px;
    height: 50px;
  }

  .icon-circle svg {
    width: 24px;
    height: 24px;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .process-arrow {
    transform: rotate(90deg);
    margin: 0;
  }
}

/*--------------------------------------------------------------
# Content Sections
--------------------------------------------------------------*/

.content-section .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Card styles for News and Events */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 15px;
  color: #005686;
  /* ELIXIR Blue */
}

.card-content .card-date {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.card-content p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-content .read-more {
  display: inline-block;
  padding: 8px 15px;
  background: #005686;
  /* ELIXIR Blue */
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.card-content .read-more:hover {
  background: #003c5c;
  /* Darker ELIXIR Blue */
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.pagination button {
  background: #fff;
  border: 1px solid #dee2e6;
  color: #005686;
  padding: 8px 16px;
  margin: 0 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

.pagination button:hover:not(:disabled) {
  background-color: #e9ecef;
}

.pagination button:disabled {
  color: #6c757d;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

.pagination button.active {
  background-color: #005686;
  color: #fff;
  border-color: #005686;
}

#page-info {
  margin: 0 15px;
  font-size: 0.9rem;
  color: #495057;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

/* ==========================================================================
   End of File
   ========================================================================== */
/* Styles for events cards, matching news.css with additional event features */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  position: relative;
  height: 100%;
  /* Ensure card fills grid height */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-color: #f47920;
}



.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Event Status Badge */
.event-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  align-self: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.event-status-badge.upcoming {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.event-status-badge.past {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #023452;
}

.card-date {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 0.5rem;
}

.card-location {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* Card Buttons */
.card-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  /* Prevent buttons from stretching vertically */
}

.card-link {
  display: inline-block;
  font-weight: 600;
  color: #f47920;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 2px solid #f47920;
  border-radius: 5px;
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.card-link:hover {
  background-color: #f47920;
  color: #ffffff !important;
  text-decoration: none;
}

/* Register button - must come after base styles for proper cascade */
.card-link.register-btn {
  background-color: #f47d21 !important;
  color: #ffffff !important;
  border-color: #f47d21 !important;
}

.card-link.register-btn:hover {
  background-color: #ffffff !important;
  color: #f47d21 !important;
  border-color: #f47d21 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 125, 33, 0.3);
}

/* Filter Buttons */
.events-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  color: #023452;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  /* Match site standard */
  font-weight: 600;
  font-size: 1rem;
}

.filter-btn:hover {
  background-color: #f47920;
  color: #ffffff;
  border-color: #f47920;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 121, 32, 0.3);
}

.filter-btn.active {
  background-color: #023452;
  color: #ffffff;
  border-color: #023452;
  box-shadow: 0 2px 8px rgba(2, 52, 82, 0.3);
}

.filter-btn.active:hover {
  background-color: #034a73;
  border-color: #034a73;
}

/* Modern Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1rem 0;
}

.pagination button {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  color: #023452;
  padding: 10px 18px;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 45px;
}

.pagination button:hover:not(:disabled) {
  background-color: #f47920;
  color: #ffffff;
  border-color: #f47920;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(244, 121, 32, 0.3);
}

.pagination button:disabled {
  color: #adb5bd;
  cursor: not-allowed;
  background-color: #f8f9fa;
  border-color: #e9ecef;
  opacity: 0.6;
}

.pagination button.active {
  background-color: #023452;
  color: #ffffff;
  border-color: #023452;
  box-shadow: 0 2px 8px rgba(2, 52, 82, 0.3);
}

.pagination button.active:hover {
  background-color: #034a73;
  border-color: #034a73;
  transform: translateY(-2px);
}

/* No Events Message */
.no-events-message {
  text-align: center;
  font-size: 1.2rem;
  color: #6c757d;
  padding: 3rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .events-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    width: 100%;
  }

  .card-buttons {
    flex-direction: column;
  }

  .card-link {
    width: 100%;
  }
}

/* News styling uses shared .card architecture defined above */


.pagination button:hover:not(:disabled) {
  background-color: #f47920;
  color: #ffffff;
  border-color: #f47920;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(244, 121, 32, 0.3);
}

.pagination button:disabled {
  color: #adb5bd;
  cursor: not-allowed;
  background-color: #f8f9fa;
  border-color: #e9ecef;
  opacity: 0.6;
}

.pagination button.active {
  background-color: #023452;
  color: #ffffff;
  border-color: #023452;
  box-shadow: 0 2px 8px rgba(2, 52, 82, 0.3);
}

.pagination button.active:hover {
  background-color: #034a73;
  border-color: #034a73;
  transform: translateY(-2px);
}

#page-info {
  margin: 0 15px;
  font-size: 0.9rem;
  color: #495057;
}

/* Services Page Styles */

/* ELIXIR Europe Services Box */
.elixir-europe-box {
  background: linear-gradient(135deg, #023452 0%, #034a73 100%);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(2, 52, 82, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important;
  display: block;
  color: white;
}

.elixir-europe-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(2, 52, 82, 0.3);
  color: white;
  text-decoration: none !important;
}

.elixir-europe-box h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  text-decoration: none !important;
}

.elixir-europe-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: white;
  opacity: 0.95;
  margin-bottom: 20px;
  text-decoration: none !important;
}

.elixir-europe-box .btn-primary {
  margin-top: 10px;
}

.elixir-europe-box .btn-primary:hover {
  transform: translateY(-3px);
}

/* Service Categories - Collapsible */
.service-category {
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-header {
  background: linear-gradient(135deg, #023452 0%, #034a73 100%);
  color: white;
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.category-header:hover {
  background: linear-gradient(135deg, #034a73 0%, #023452 100%);
}

.category-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 28px;
  height: 28px;
  stroke: #f47920;
}

.expand-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #f47920;
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

.category-content {
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 30px;
}

.category-content.expanded {
  max-height: 10000px;
  padding: 25px 30px;
  border-top: 2px solid #f47920;
}

.service-item {
  background: #f8f9fa;
  border-left: 4px solid #f47920;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item:hover {
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(8px);
}

.service-item h4 {
  color: #023452;
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.service-item p {
  margin: 0 0 10px 0;
  color: #495057;
  line-height: 1.6;
}

.service-item-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f47920;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}

.service-item-link:hover {
  gap: 10px;
  text-decoration: underline;
}

.service-item-link svg {
  width: 14px;
  height: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .elixir-europe-box {
    padding: 25px 20px;
  }

  .elixir-europe-box h3 {
    font-size: 1.5rem;
  }

  .category-header {
    padding: 15px 20px;
  }

  .category-header h3 {
    font-size: 1.2rem;
  }

  .category-icon {
    width: 28px;
    height: 28px;
  }

  .category-icon svg {
    width: 24px;
    height: 24px;
  }

  .category-content {
    padding: 0 20px;
  }

  .category-content.expanded {
    padding: 20px;
  }
}