:root {
  --main-color: #003F63;
  --secondary-color: #3CACAE;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body,
html {
  height: 100%;
}

body {
  font-size: 14px;
  position: relative;
}

.main-header {
  /* height:100vh; */
  max-height: 100vh;
  /* padding:30px; */
  /* background-image: url('assets/banner-2.png'), linear-gradient(to right, var(--main-color), var(--secondary-color)); */
  background-size: cover;
  /* display: flex;
    flex-direction: column; */
}

.header-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px; */
  /* box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px; */
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
  /* border-radius: 15px; */

}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
  padding: 1% 3%;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  background-color: #fff;

}

nav img {
  width: 180px;
}

.nav-links {
  flex: 1;
  text-align: right;
}

.nav-links ul li {
  padding: 8px 12px;
  display: inline-block;
  list-style: none;
}

.nav-links ul li a {
  text-decoration: none;
  color: var(--main-color);
  font-size: 17px;
}

.nav-links ul li::after {
  content: "";
  width: 0%;
  height: 2px;
  background-color: var(--secondary-color);
  display: block;
  margin: auto;
  transition: 0.4s;
}

.nav-links ul li:hover::after {
  width: 100%;
}


/*  section */

.hero-section {
  flex: 1 1 auto;
  background: linear-gradient(to right, var(--main-color), var(--secondary-color));
  background-image: url('assets/bg-peeb.png'), linear-gradient(to right, var(--main-color), var(--secondary-color));
  background-size: cover;
  background-repeat: no-repeat;
  /* height: 70vh; */
  /* border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px; */
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
  /* margin-top:20px; */
}

.hero-content {
  max-width: 75%;
  text-align: center;
  z-index: 2;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.action-btn {
  padding: 12px 30px;
  background-color: #fff;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease, color 0.3s ease;
}

.action-btn:hover {
  background-color: #fff;
  color: var(--secondary-color);
}

/* Optional: Add decorative blurred circle (modern design) */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
}

/* Funding strip */
.funding-strip {
  /* background: #f9f9f9; */
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  /* border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px; */
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05) inset;
  height: 100px;
}

.funding-strip img {
  height: 60px;
  /* keep EU logo proportionate */
}

.funding-strip p {
  font-size: 16px;
  font-weight: 500;
  color: var(--main-color);
  margin: 0;
}

/* footer */
.main-footer {
  /* position: fixed;
   left: 0;
   bottom: 0; */
  background-color: var(--main-color);
  color: #fff;
  padding: 40px 20px 20px 20px;
  width: 100%;
  border-radius: 0;
  margin: 0;
}



.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  /* centers the content inside, but the footer itself spans 100% */
}

.footer-logo img {
  width: 180px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-social {
  font-size: 21px;
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #f0f0f0;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--secondary-color);
}


.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #ccc;
}

/* about */
.about-section {
  padding: 20px;
  background-color: #f9f9f9;
  /* Light background for contrast */
  width: 100%;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1 1 500px;
  padding: 20px;
}

.about-text h2 {
  font-size: 32px;
  color: var(--main-color);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-image {
  flex: 1 1 400px;
  padding: 20px;
  text-align: center;
}

.about-image .carousel {
  grid-area: carousel;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.slideshow-container {
  min-width: 100%;
  position: relative;
  margin: auto;
  margin-top: 25px;
}

.mySlides {
  display: none;
  /* max-height: 300px; */
}

.mySlides img {
  min-width: 100%;
  max-height: 60vh;
  border-radius: 10px;
}

.read-more-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: var(--main-color);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.read-more-btn:hover {
  background: var(--accent-color);
  /* or var(--secondary-color) */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  color: var(--main-color);
}


/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  } */


/* team */

.team-section {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.team-section h2 {
  font-size: 32px;
  color: var(--main-color);
  margin-bottom: 40px;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.team-card {
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 12px;
  padding: 20px;
  max-width: 300px;
  flex: 1 1 250px;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-card h3 {
  font-size: 20px;
  color: var(--main-color);
  margin-bottom: 5px;
}

.team-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/* partners */

.partners-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.partners-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--main-color);
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.partners-logos a img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  /* filter: grayscale(100%); */
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partners-logos a:hover img,
.partners-logos a:focus img {
  /* filter: grayscale(0%); */
  transform: scale(1.1);
  outline: none;
}


/* contact section */
.newsletter-section {
  width: 100%;
  background: #1e293b;
  /* dark slate blue */
  padding: 4rem 2rem;
  box-sizing: border-box;
  color: #f9fafb;
  /* off-white */
  display: flex;
  justify-content: center;
}

.newsletter-container {
  max-width: 700px;
  width: 100%;
  text-align: center;
}

.newsletter-container h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.newsletter-container p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #cbd5e1;
  /* lighter text */
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1 1 250px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px var(--secondary-color);
  /* blue ring */
}

.newsletter-form button {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  background-color: var(--secondary-color);
  /* blue */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

/* disclaimer section */
.disclaimer {
  width: 100%;
  padding: 25px 12%;
  background: linear-gradient(
    to right,
    var(--secondary-color),
    var(--main-color)
  );
  color: #f9f9f9;
  font-size: 15px;
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.2px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.disclaimer p {
  margin: 0 auto;
  max-width: 800px;
  font-weight: 300;
  opacity: 0.95;
}


/* Sign Up Page */

.sign-up {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.sign-up h1 {
  font-size: 30px;
  color: var(--main-color);
  margin: 15px
}

.sign-up .logo {
  width: 50%;
  margin-bottom: 20px;
}

.card {
  width: 35%;
  height: 80%;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  border-radius: 15px;
  margin: auto;
  padding: 5%;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.card.flipped {
  transform: rotateY(180deg);
}


input[type=text],
input[type=password],
input[type=email] {
  width: 100%;
  padding: 12px 20px;
  margin: 13px 0;
  display: inline-block;
  border: none;
  border-bottom: 1px solid var(--main-color);
}

input[type=checkbox] {
  display: inline-block;
  margin: 15px 0px;
}

.sign-up-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  padding: 10px;
  background-color: var(--secondary-color);
  color: #fff;
  font-size: 16px;
  border: 1px solid #fff;
  cursor: pointer;
  transition: 0.3s ease-out;
}

.sign-up-btn:hover {
  background-color: var(--main-color);
}


.sign-up-container,
.sign-in-container {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13%;
}

.sign-in-container {
  transform: rotateY(180deg);
}


.switch-to-sign-in,
.switch-to-sign-up {
  color: blue;
  border: none;
  text-decoration: underline;
  background-color: transparent;
  cursor: pointer;
}




/* responsive */
/* Responsive styles */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  nav img {
    width: 140px;
  }
}


/* news preveiw */
.news-preview {
  padding: 80px 10%;
  background: #fff;
  text-align: center;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 20px;
}

.section-header p {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 500;
}

.news-content h3 {
  font-size: 20px;
  margin: 10px 0;
  color: var(--main-color);
}

.news-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--main-color);
}

.news-header {
  font-size: 28px;
  color: var(--main-color);
  display: inline-flex;
  /* keep arrow inline */
  align-items: center;
  gap: 10px;
  font-weight: 600;
  justify-content: center;
  width: 100%;
  text-align: center;
  /* center text in container */
}

.news-arrow {
  display: flex;
  align-items: center;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.news-arrow:hover {
  transform: translateX(6px);
  color: var(--main-color);
}

.news-arrow svg {
  width: 28px;
  /* bigger arrow */
  height: 28px;
}




/* second banner */
.page-banner {
  height: 35vh; /* keep your preferred height */
  width: 100%;
  position: relative;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* image fills the banner */
  display: block;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* dark overlay for readability */
  z-index: 1;
}

.page-banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center the text */
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 70%;
}

.page-banner-content h1 {
  font-size: 32px;
  margin: 0;
  line-height: 1.2;
}

.page-banner-content p {
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.4;
}
