@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
/* General Body Styling */
body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: 'Jura';
  width: 100%;
  overflow-x: hidden;
}


/* Video Background Styling */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: #f5f5f5;
}

#background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  background-size: cover;
  z-index: -1;
}

/* Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: transparent; /* Allow background video to show through */
  padding: 20px 0;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.logo-container a {
  display: inline-block;
  line-height: 0; /* Prevent extra spacing */
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 45px;
  padding-right: 20px;
}

.nav-link {
  color: black;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: 'Jura', sans-serif;
  font-size: 1.15em;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.7;
}

.social-icons {
  margin: 0;
}

.linkedin-icon {
  width: 24px;
  height: 24px;
}

.logo {
  width: 40px; /* Fixed width to match across all pages */
  height: auto;
  margin: 0;
  display: block;
}

.logo-text {
  font-size: 1.5em;
  font-weight: 500;
  color: black;
  margin-left: 10px; /* Adjust space between the logo and text */
}

.logo-text-link {
  text-decoration: none;
  color: black;
}

.page-content {
  padding: 50px 20px 100px 20px;
  min-height: 80vh;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-content h1 {
  font-family: 'Jura', sans-serif;
  font-size: 3em;
  font-weight: 500;
  margin-bottom: 30px;
  text-align: center;
}

.about-text {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.about-text p {
  font-family: 'Jura', sans-serif;
  font-size: 1.2em;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
  color: black;
}

.page-content p {
  font-family: 'Jura', sans-serif;
  font-size: 1.2em;
  margin-left: 20px;
}

/* Team Grid Styling */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 40px auto 0;
  padding: 0 20px;
}

.team-member {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.team-photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.team-name-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.team-name {
  font-family: 'Jura', sans-serif;
  font-size: 1.5em;
  font-weight: 600;
  color: black;
  margin: 0;
}

.team-linkedin {
  display: inline-block;
  line-height: 0;
}

.team-linkedin .linkedin-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.team-linkedin:hover .linkedin-icon {
  opacity: 1;
}

.team-title {
  font-family: 'Jura', sans-serif;
  font-size: 1.1em;
  font-weight: 500;
  color: black;
  margin: 0 0 15px 0;
  font-style: italic;
}

.team-bio {
  font-family: 'Jura', sans-serif;
  font-size: 1em;
  color: black;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Middle Section Styling */
.middle-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden; /* Prevent any overflow from causing shifts */
}

.middle-text {
  font-size: 2.6em; /* Slightly bigger font size */
  font-weight: 500;
  color: black; /* Ensure the text is black */
  margin: 0;
  line-height: 1.2em; /* Adjust line spacing */
  text-align: left; /* Align text to the left */
  width: 800px; /* Fixed width to ensure text stays on 2 lines */
  white-space: pre-wrap; /* Ensures the line breaks are respected */
  position: absolute;
  top: 20%;
  left: 70px; /* Aligned with the P from PharosAI (20px padding + 40px logo + 10px margin) */
}

.middle-text #typing-text {
  display: inline-block;
  white-space: pre-wrap;
}

.partner-section {
  background-color: white; /* White background */
  min-height: 50vh;
  color: black; /* Black text for contrast */
  padding: 40px 20px; /* Add padding for spacing */
  text-align: left; /* Align text to the left */
  width: 100%; /* Ensure the section stretches the full width */
  box-sizing: border-box; /* Ensure padding is included in the width */
}

.partner-section h2 {
  font-family: 'Jura', sans-serif; /* Font of your choice */
  font-size: 2.5em;
  font-weight: 500;
  margin-bottom: 75px; /* Space between heading and content */
  margin-left: 20px;
}

.partners-logos {
  display: flex; /* Use Flexbox to position logos in a row */
  justify-content: space-between; /* Spread logos evenly across the width */
  align-items: center; /* Center logos vertically */
  gap: 20px; /* Space between the logos */
  flex-wrap: wrap; /* Ensure logos wrap if screen size is too small */
  width: 100%; /* Use full width */
  padding: 0 20px; /* Add horizontal padding */
  box-sizing: border-box;
}

.partner-logo {
  max-width: 150px; /* Control the size of the logos */
  height: auto;
}

.partner-logo-small {
  max-width: 100px; /* Smaller size for King's College and Barts Health Trust */
}

.partner-logo,
.partner-logo-small {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.partner-logo:hover,
.partner-logo-small:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.footer-section {
  background-color: #f9f9f9; /* Light background for contrast */
  padding: 20px 20px 20px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align content to the bottom */
  align-items: flex-start; /* Align content to the left */
  text-align: left; /* Align text to the left */
  position: relative;
  min-height: 100px; /* Half the original size */
}

.joinus-section {
  background-color: #f9f9f9; /* Light background for contrast */
  padding: 40px 20px 20px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space between top content and bottom copyright */
  align-items: flex-start; /* Align content to the left */
  text-align: left; /* Align text to the left */
  position: relative;
  min-height: 140px; /* Half the original size */
}

.contact-centered {
  background-color: transparent; /* Remove background for contact page */
  height: 100vh; /* Exactly viewport height, no scrolling */
  max-height: 100vh;
  overflow: hidden; /* Prevent scrolling */
  justify-content: flex-start; /* Start from top */
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text */
  padding: 0;
  padding-top: 30vh; /* Push content up by approximately 3cm */
}

.contact-centered .joinus-content {
  margin-left: 0; /* Remove left margin when centered */
}

.contact-centered .copyright {
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  text-align: left;
}

.joinus-content {
  margin-left: 20px; /* Add left margin to align with other sections */
}

.joinus-section p {
  font-family: 'Jura', sans-serif; /* Apply the font */
  font-size: 1.5em; /* Adjust font size */
  font-weight: 400; /* Set to normal weight */
  margin-bottom: 40px; /* Space below the text */
}

.contact-centered .joinus-content p {
  font-size: 2em; /* Larger font size for contact page */
}


.joinus-logo {
  position: absolute; /* Position logo absolutely */
  bottom: 0px; /* Align the logo to the bottom */
  left: 20px; /* Align the logo to the left */
  padding: 20px; /* Add padding around the logo */
}

.joinus-logo-img {
  max-width: 60px; /* Adjust the size of the logo */
  height: auto;
}

.contact-button {
  display: inline-block;
  background-color: grey;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-family: 'Jura', sans-serif;
  font-size: 1.2em;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-bottom: 30px;
}


.contact-button:hover {
  background-color: #0056b3; /* Darker shade on hover */
}

.bottom-line {
  width: calc(100% - 40px); /* Full width minus left margin */
  border-bottom: 1px solid #555; /* Black line */
  margin: 20px 20px 20px 20px; /* Space above and below the line, aligned to left */
}

.copyright {
  margin: 0;
  margin-left: 20px;
  margin-top: 10px;
  color: grey;
}

.copyright p {
  font-family: 'Jura', sans-serif;
  font-size: 0.9em; /* Smaller font for copyright */
  margin: 0;
}


@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: black; }
}


/* Navigation Styling */
nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: black;
}


/* Responsive Layouts */

@media (max-width: 900px) {
  .header-nav {
    gap: 24px;
  }

  .middle-text {
    width: calc(100% - 40px);
    left: 20px;
    font-size: 2.3em;
  }

  .team-grid {
    padding: 0 16px;
    gap: 30px;
  }

  .partner-logo {
    max-width: 130px;
  }

  .partner-logo-small {
    max-width: 85px;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .logo-container {
    padding-left: 15px;
    margin-bottom: 8px;
  }

  .header-nav {
    padding-right: 15px;
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 1em;
  }

  .middle-section {
    align-items: flex-start;
    min-height: 70vh;
  }

  .middle-text {
    position: static;
    padding: 80px 20px 40px 20px;
    width: 100%;
    font-size: 2em;
  }

  .page-content {
    padding: 40px 15px 60px 15px;
  }

  .page-content h1 {
    font-size: 2.2em;
  }

  .about-text {
    padding: 0 10px;
  }

  .team-grid {
    padding: 0 12px;
    gap: 24px;
  }

  .team-photo {
    height: 260px;
  }

  .partners-logos {
    justify-content: center;
    gap: 16px;
  }

  .partner-logo {
    max-width: 110px;
  }

  .partner-logo-small {
    max-width: 70px;
  }

  .joinus-section p {
    font-size: 1.2em;
  }

  .contact-centered {
    height: auto;
    max-height: none;
    padding-top: 20vh;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */


.great-detox-text {
  font-size: 65px; /* Adjust the font size as needed */
}
