/* =======================
   Fonts & Variables
======================= */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'General Serif';
  src: url('../fonts/GeneralSans-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'General Serif';
  src: url('../fonts/GeneralSans-VariableItalic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}
:root {
  --font-sans: 'Manrope', sans-serif;
  --font-serif: 'General Serif', serif;
}

/* =======================
   Global Reset & Base
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  font-family: var(--font-sans);
  background: radial-gradient(circle, rgba(238, 174, 231, 0.33) 0%, rgba(110, 131, 224, 0.23) 100%);
  color: #333;
  display: flex;
  flex-direction: column;
}

/* =======================
   Header & Navigation
======================= */
header {
  position: relative;
  text-align: center;
  padding: 20px;
}
.header-left {
  text-align: center;
}
.header-left h1 {
  font-size: 2.9rem;
  color: #5e3d9f;
  user-select: none;
  pointer-events: none;
}
.header-left p {
  font-size: 1rem;
  color: #7a6fa8;
  user-select: none;
  pointer-events: none;
  margin-top: 4px;
}
.jump-links {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
  width: fit-content;
  padding: 0.6rem 1rem;
  background: transparent;
  transition: opacity 0.4s ease, transform 0.4s ease;
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.154);
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
  }
  
  .jump-nav-button:focus {
    outline: 2px solid #1a6bb8;
    outline-offset: 4px;
  }

  
  

.jump-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.jump-nav-button {
  background-color: #dceeff; /* soft blue background */
  color: #1a6bb8; /* readable blue text */
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.jump-nav-button:hover {
  background-color: #b9dcff;
  transform: translateY(-1px);
}

/* Optional: Hide only after scrolling far past About */
.jump-links.hide {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* Responsive: center layout */
@media (max-width: 600px) {
  .jump-links {
    justify-content: center;
    flex-wrap: wrap;
    top: 0.5rem;
    right: auto;
    left: 0;
    margin: 0 auto;
  }
}



.site-logo {
  width: 60px;
  height: auto;
  border-radius: 8px;
}

.logo-and-title {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center; /* center the combo horizontally */
  flex-wrap: nowrap;
}


.header-left h1 {
  margin: 0;
}



/* =======================
   Search & Filters
======================= */
.filter-controls {
  display: flex;
  justify-content: center;
  padding: 1.1rem 1rem;
}

.filter-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.search-wrapper {
  position: relative;
  width: 350px;
  flex-shrink: 0;
}

.search-bar {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-weight: 500;
  margin: 0;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

@media (max-width: 768px) {
  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrapper {
    width: 100%;
    max-width: 100%;
  }
}


.filter-button {
  padding: 10px 18px;
  margin: -3px;
  background-color: #e4d9fa;
  border: none;
  border-radius: 20px;
  color: #5e3d9f;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: #f5ecff; /* Soft purple tint */
  color: #5e3d9f;
  border: 1.5px solid #c7b6f2;
  font-weight: 500;
}
.filter-button:hover {
    background-color: #d6c5f5;
    transform: translateY(-2px);
  }
  
.filter-button.active {
  background-color: #5e3d9f;
  color: white;
}

.filter-show-all {
  background-color: #f5ecff; /* Soft purple tint */
  color: #5e3d9f;
  border: 1.5px solid #c7b6f2;
  font-weight: 500;
}

.filter-show-all i {
  margin-right: 6px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .filter-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .filter-button {
    flex: 0 1 auto;
    min-width: 120px;
  }
}

/* =======================
   Type Filter Buttons
======================= */
.type-filter-button {
  padding: 10px 18px;
  margin: -3px;
  background-color: #eef7ff; /* Base color for type filters (default blue-ish) */
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
  border: 1.5px solid #b3dafd;
}

/* Hover effect */
.type-filter-button:hover {
  background-color: #cce9ff;
  transform: translateY(-2px);
}

/* Active state */
.type-filter-button.active {
  background-color: #007BFF;
  color: white;
  box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
}

/* Specific blue and green variations */
.type-filter-button-blue {
  background-color: #eef7ff;
  color: #004a99;
  border-color: #b3dafd;
}

.type-filter-button-green {
  background-color: #e6f8ec;
  color: #1b5e20;
  border-color: #a4e6b1;
}

.type-filter-button-blue.active {
  background-color: #007BFF;
  color: white;
}

.type-filter-button-green.active {
  background-color: #28A745;
  color: white;
}


/* =======================
   Card Grid Layout
======================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ default is 3 cards */
  gap: 20px;
  padding: 30px;
  padding-bottom: 6rem;
}

@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* ✅ switch to 2 on medium screens */
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr; /* ✅ single column on mobile */
  }
}

/* =======================
   Card Styles
======================= */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 1rem;
  color: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 95%;
  width: 100%;
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}
.card:hover {
  transform: scale(1.05);
}

.card-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3; /* Ensures consistent shape */
  overflow: hidden;
  border-radius: 8px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-content {
  padding: 1px;
  word-break: break-word;
  padding-bottom: 4rem;
}
.card-content h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 10px 0;
}
.card-content p {
  font-size: 0.9rem;
  color: #555;
  margin: 10px 0;
  margin-bottom: 2rem; /* increase if still tight */
}

/* =======================
Card Bottom Section
======================= */
.card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-top: 0.5rem; 
  margin-bottom: 1rem;
}
.card-bottom .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.5rem;
  flex-direction: row; /* Default for larger screens */
}
/* Base tag styling (applies to all tags) */
.card-bottom .tags span {
  background-color: #e4d9fa;  /* default lilac */
  color: #5e3d9f;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  display: inline-block;
  margin-bottom: 4px;
}

/* Stack vertically on screens narrower than 600px */
@media (max-width: 600px) {
  .card-bottom .tags {
    flex-direction: column;
    align-items: flex-start;
  }
}




/* =======================
Tags
======================= */

/* Specific tag overrides */
.card-bottom .tags .type-tag-blue {
  background-color: #d0e6ff;
  color: #1a73e8;
}

.card-bottom .tags .type-tag-green {
  background-color: #d8f5dc;
  color: #0b8b44;
}


/* =======================
Icons
======================= */

card-icons {
  display: flex;
  gap: 30px;
  align-items: center;
}

.download-icon {
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.download-icon {
  color: #5e3d9f;
}
.download-icon:hover {
  color: #EF4444;
  transform: scale(1.2);
}

.external-link-icon {
  font-size: 1.5rem;
  color: #5e3d9f;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.external-link-icon:hover {
  color: #EF4444;
  transform: scale(1.2);
}



/* =======================
   Lightbox Modal
======================= */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lightbox.show {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  background: #fff;
  border-radius: 10px;
  max-width: 80%;
  width: 70%;
  text-align: center;
  padding: 20px;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}
.lightbox.show .lightbox-content {
  transform: scale(1);
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
}
.lightbox-content iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 10px;
  object-fit: cover;
}

.lightbox-caption {
  max-width: 750px;
  margin: 0 auto;
  padding: 20px 24px;
  text-align: center;
  position: relative;

}



/* =======================
   Close Button
======================= */
.close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: #e4d9fa; /* soft purple */
  border: 1.5px solid #c7b6f2;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #5e3d9f;
  cursor: pointer;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(94, 61, 159, 0.1);
}

.close:hover {
  background: #d6c5f5;
  transform: scale(1.05);
  color: #000;
}


/* =======================
   Lightbox Text Content
======================= */
.lightbox-text {
  color: #333;
  font-family: var(--font-serif);
  font-weight: 400;
}
.lightbox-text h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.lightbox-text p {
  font-size: 0.9rem;
  margin: 5px 0;
}
.lightbox-text p.citation-format {
  font-size: 0.75rem;
  color: #555;
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 20px;
}
.license a {
  color: #007bff;
  text-decoration: none;
}
.license a:hover {
  text-decoration: underline;
}

/* =======================
   Floating Lightbox Buttons (Top-Right)
======================= */
#lightbox-content-container {
  position: relative;
}

.image-action-buttons.below-image {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.image-action-buttons.below-image button {
  background: #e4d9fa; /* soft lilac – solid */
  border: 1.5px solid #c7b6f2;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #5e3d9f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(94, 61, 159, 0.1);
  transition: all 0.2s ease;
}

.image-action-buttons.below-image button:hover {
  background: #d6c5f5; /* slightly deeper lilac on hover */
  transform: scale(1.05);
}

.button-label {
  white-space: nowrap;
  font-size: 0.85rem;
}



/* =======================
   Legacy Inline Download Button Lightbox (if still used)
======================= */
#download-button {
  background: linear-gradient(135deg, #ebe4ff, #d6c7f9);
  color: #5e3d9f;
  padding: 10px 20px;
  border: 1px solid #d2c1f2;
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(94, 61, 159, 0.15);
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}



/* =======================
   Footer
======================= */
.site-footer {
  background-color: #1e1b2e;  /* deep, desaturated purple */
  color: #f0f0f0;
  padding: 40px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer .footer-logo img {
  height: 40px;
  width: auto;
}

.site-footer .footer-logo h1 {
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #e0dbff;
  margin: 0;
}

.site-footer a {
  color: #c3baff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}



/* =======================
   Scroll to Top Button
======================= */
.scroll-up-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #dceeff; /* soft blue */
  color: #1a6bb8;             /* accessible blue text */
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(3px);
  transform: translateY(60px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 200;
  text-decoration : none !important;
  cursor: pointer;
}

.scroll-up-button.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  color: #1a6bb8;
  text-decoration: none !important;
}

.scroll-up-button:hover {
  background-color: #b9dcff;
  text-decoration: none !important;
  transform: translateY(-3px) scale(1.06);
  color: #1a6bb8;
}

.scroll-up-button:focus-visible {
  outline: 2px solid #1a6bb8;
  outline-offset: 4px;
  color: #1a6bb8;
}

@keyframes wiggle {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(-5deg); }
  50% { transform: translateY(0) rotate(5deg); }
  75% { transform: translateY(-2px) rotate(-5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.scroll-up-button.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  animation: wiggle 0.6s ease-in-out;
}




/* =======================
   Utility & Effects
======================= */
.highlight {
  background-color: yellow;
  font-weight: bold;
}
.no-results {
  display: none;
  font-size: 18px;
  font-weight: bold;
  color: red;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid red;
  border-radius: 5px;
}

/* =======================
   About Section (Dark)
======================= */
.about-section {
  width: auto;
  background-color: #2d2a40;
  color: #f2f2f2;
  padding: 60px 20px 100px;
  text-align: center;
}
.about-section h2 {
  color: #e0dbff;
  margin-bottom: 24px;
}
.about-section p,
.about-section a {
  color: #d6d6f0;
  margin-top: 12px;   /* add space from heading above */
  margin-bottom: 20px;
  line-height: 1.6;
}
.about-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Block container with divider animation */
.about-block {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.about-block.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-block:not(:first-child):not(.team-highlight)::before {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #7e73b9;
  margin: 40px auto;
  border-radius: 2px;
}




/* =======================
   Meet the Team Highlight
======================= */
.about-block.team-highlight {
  background-color: #38344e;
  color: #f2f2f2;
  border-radius: 12px;
  padding: 60px 20px 80px;
  margin-bottom: 80px;
  width: 90%;
  max-width: none;
  text-align: center;
}

.about-block.team-highlight h2,
.about-block.team-highlight h3,
.about-block.team-highlight p,
.about-block.team-highlight a,
.about-block.team-highlight .credentials {
  color: #e0dbff;
}

.about-block.team-highlight a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =======================
   Team Grid – Single Row (No Scroll)
======================= */
.team-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  gap: 40px;
  padding: 20px 60px 50px;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* disables horizontal scroll */
}

.team-member {
  flex: 1;
  max-width: 250px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.team-member.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-member img {
  width: 170px;
  height: 170px;
  border-radius: 70%;
  object-fit: cover;
}

.team-member h3 {
  margin: 0;
  color: #e0dbff;
}

.team-member p {
  font-size: 0.95rem;
  color: #d6d6f0;
  margin-bottom: 10px; /* add space between paragraphs */
  line-height: 1.5;
}

.team-member p strong {
  display: block;
  margin-bottom: 6px;
}


.team-member a {
  display: inline-block;
  background-color: #5e3d9f;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.team-member a:hover {
  background-color: #462a77;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .team-grid {
    flex-wrap: wrap; /* allow items to wrap to next line */
    flex-direction: column;
    align-items: center;
    overflow: visible; /* allow vertical scroll if needed */
    padding: 20px 20px 40px;
  }

  .team-member {
    max-width: 90%;
  }
}



.credentials {
  font-size: 0.85rem;
  font-variant: small-caps;
  color: #bbb;
  margin-bottom: 0;
}


/* =======================
   Sponsors
======================= */
.sponsor-logos {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.sponsor-logo img {
  max-height: 60px;
  filter: brightness(0) invert(1) grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sponsor-logo img:hover {
  filter: none;
  transform: scale(1.05);
}

.sponsor-logo {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.sponsor-logo.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =======================
   Contact Us Form
======================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  padding-top: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #fff;
  font-family: var(--font-sans);
}

.contact-form button {
  background-color: #5e3d9f;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #462a77;
}

/* =======================
   Accessibility Focus States
======================= */

:focus-visible {
  outline: 2px solid #1a6bb8; /* accessible blue */
  outline-offset: 4px;
}

/* Specific overrides for elements with soft backgrounds */
.jump-nav-button:focus-visible,
.filter-button:focus-visible,
.download-icon:focus-visible,
.card-icons i:focus-visible {
  border-radius: 6px;
  outline: 2px solid #1a6bb8;
  outline-offset: 4px;
}

/* Input fields (search + contact form) */
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #5e3d9f; /* purple for form fields */
  outline-offset: 2px;
  background-color: #fff;
}

/* Optional: increase contrast for light buttons */
.jump-nav-button:focus-visible {
  background-color: #cde9ff;
}
.filter-button:focus-visible {
  background-color: #e4d9fa;
}

.card:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(26, 107, 184, 0.3); /* soft blue glow */
  transform: scale(1.03);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover,
.card:focus {
  transform: scale(1.05);
}




