@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;1,500&family=Source+Sans+3:ital@0;1&display=swap');

body {
  font-family: "Montserrat", sans-serif;
  margin: 0; 
  padding: 0; 
  min-height: 100vh; 
}
main {
  flex: 1; 
  margin-top: 200px;
}

/* Navbar begin */
.navbar {
  overflow: hidden;
  background-color: #fff;
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 100%;
  z-index: 1000;
  top: 0; 
  left: 0;
}

.logo-container {
  margin: 15px 15px 15px 15px;
}
.logo-container a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.navbar .nav-links {
  display: flex;
  justify-content: space-around;
  flex-grow: 1;
  margin: 0 225px;
}

.navbar a {
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
  margin: 0 10px;
  font-weight: 500;
  position: relative;
}

.navbar .nav-links a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #772432;
  transition: width 0.3s ease;
  position: absolute;
  bottom: 0;
  left: 50%;
}

.navbar .nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.logo {
  width: 135px;
}
/* Navbar end */

/* News banner */

.news-container{
    display: flex;
    top: 335px;
    left: 0;
    right: 0;
    font-family: "Source Sans 3", sans-serif;
    color: white;
    font-size: 25px;
    box-shadow:0 4px 8px -4px rgba(0, 0, 0, 0.3);
    background-color: #004165;
    overflow: hidden;
    max-width: 100%;
}
.news-container .title {
    background: #004165;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    color: white;
    font-weight: bold;
    z-index: 200;
}

.news-container ul {
    display: flex;
    list-style: none;
    margin: 0;
    animation: scroll 120s infinite linear;
}

.news-container ul li {
    white-space: nowrap;
    padding: 10px 24px;
    color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
}

.news-container ul li::before {
    content: "•";
    margin-right: 10px; 
    color: #ffffff; 
}

.news-container ul li:first-child::before {
    content: none; 
}


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


/* Image speech */
.image-container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    position: relative; 
    height: 35px; 
    right: 23%;
}

.image-container img {
    height: auto; 
    width: 100%; 
    max-width: 455px; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1; 
}

.logo-frontpage{
    display: flex;
    justify-content: center;
}
.logo-frontpage img {
    height: auto;
    margin-left: 35%;
    width: 38%;
}

.frontpage-text {
  padding-left: 735px;
  margin-right: 96px;
  font-size: 20px;
  position: relative;
  top: -40px;
}

.frontpage-p {
    color: rgb(0, 0, 0);
    font-size: 20px;
}
.cta-button {
  padding: 10px 20px;
  background-color: #f2df74;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 1px 3px 6px 0px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
  background-color: #fff37a;
}

/* Cards frontpage */
.section-header {
  text-align: center;
  font-size: 60px;
  font-family: "Montserrat", sans-serif;
  margin-top: 15%;
  margin-bottom: 75px; 
  font-weight: 500;
  z-index: 2;
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 20%;
  padding: 20px;
  margin: 0 25px;
  background-color: #f0f0f0;
  border-radius: 10px;
  text-align: center;
  position: relative; 
}

.card img {
  width: 100%; 
  height: 300px; 
  object-fit: cover; 
  border-radius: 5px; 
  margin-bottom: 10px;
}

.card h2 {
  color: #333;
}

.card p {
  color: #666;
  font-style: italic;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 225px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: calc(100% + 5px); 
  left: 50%;
  transform: translateX(-50%); 
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}
.ray {
  clip-path: polygon(0 47%, 0 46%, 188% 0, 100% 100%);
  transition: 4s;
  transform: translateY(-50%) translateX(-50%) rotate(var(--angle)) translateY(50%) translateX(50%) translateY(-50%);
  position: absolute;
  top: 1084px;
  width: 615px;
  height: 495px;
  background: linear-gradient(0.25turn, rgba(248, 248, 62, 0.7), rgba(255, 255, 100, 0));
  z-index: 1;
}


.light1 {
  animation-duration: 9s;
  animation-name: wave;
  animation-iteration-count: infinite;
  display: none;
}

.light2 {
  animation-duration: 6s;
  animation-name: wave;
  animation-iteration-count: infinite;
  display: none;
}


@keyframes wave {
  0% {
    --angle: 90deg;
  }

  10% {
    --angle: 120deg;
  }
  
  50% {
    --angle: 110deg;
  }
  100% {
    --angle: 60deg;
  }
}

/* contact page start */ 

.main-contact {
  display: grid;
  grid-template-columns: 600px 200px 600px;
  grid-template-rows: 200px 1fr 1fr 50px;
  gap: 5px;
  padding-bottom: 30px;
}
.contact {
  grid-column: 1;
  grid-row: span 2;
}
.location {
  grid-column: 3;
  grid-row: span 2;
  color: black;
  overflow: hidden;
}
.title-contact {
  grid-column: 2;
  font-size: 60px;
  font-weight: 500;
  color: black;
  text-align: center;
}
.title-contact-form {
  font-size: 2vw;
  font-weight: 400;
  color: black;
  margin-bottom: 20px;
  padding-left: 75px;
}
.title-location {
  font-size: 2vw;
  font-weight: 400;
  color: black;
  margin-bottom: 20px;
}
#location-text {
  font-size: 1.1vw;
  font-weight: 350;
  color: black;
}

/* contact form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
  width: 40vw;
  overflow: hidden;
  padding: 20px;
  margin-left: 75px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.contact-form {
  background-image: url("img/lighttownspeakers-photo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.cf {
  grid-column: 2;
}
input[type=text], 
input[type=tel],
input[type=email],
textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  display: block;
  border: none;
  border-bottom: 2px solid #ccc;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.5);
}
input[type=submit] {
  background-color: white;
  color: black;
  margin-top: 10px;
  padding: 12px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
input[type=submit]:hover {
  background-color: #004165;
  color: white;
}
textarea {
  resize: vertical;
  min-height: 100px;
  border-color: #ccc;
  border-radius: 5px;
}
.cf input:focus,
.cf textarea:focus {
  border-bottom-color: #004165;
  transition: 0.5s;
}
.cf label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 16px;
  color: white;
  opacity: 1;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}
.cf input:valid + label,
.cf input:focus + label,
.cf textarea:valid + label,
.cf textarea:focus + label {
  top: -15px;
  font-size: 12px;
  color: white;
  opacity: 1;
}

/* map */
.map iframe {
  border: solid 2px;
  border-radius: 5px;
  border-color: #004165;
}

/* about us */
.main-about {
  display: grid;
  grid-template-columns: 600px 200px 600px;
  grid-template-rows: 200px 1fr 1fr 50px;
  gap: 5px;
}
.title-about {
  grid-column: 1 / span 3;
  font-size: 60px;
  font-weight: 500;
  color: black;
  text-align: center;
}
.media-about {
  grid-column: 1;
  grid-row: span 2;
}
.info-about {
  grid-column: 3;
  grid-row: span 2;
}
.main-about img {
  height: 550px;
  width: 550px;
  margin-left: 75px;
  margin-top: 30px;
  border-radius: 5px;
}
.title-info {
  font-size: 2vw;
  font-weight: 400;
  color: black;
}
.about-text {
  font-size: 1.1vw;
  font-weight: 350;
  color: black;
}

/*trainings page css*/
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /*width: 100vw;*/
}

.pageTitle h1 {
    font-size: 60px;
    font-weight: 500;
    color: black;
    text-align: center;
    position: relative;
  }

.trainingOutcomesContainer {
  width: 80vw;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
}

.trainingOutcome {
  display: flex;
  flex-direction: column;
  background-color: #004165;
  border-radius: 5px;
  width: 20%;
  height: 15em;
  margin-bottom: 2em;
  padding: 15px;
  justify-content: space-between;
}

.iconCircle {
  background: #fff;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

i {
  font-size: 3em;
  color: #004165;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trainingOutcomeName {
  background-color: #fff;
  border-radius: 5px;
  height: 50%;
}

.trainingOutcomeName p {
  margin: 5px;
}

/*training main end*/

/*member page start*/
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.upperHalf {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 2em;
  width: 80vw;
}

.lowerHalf {
  width: 80vw;
}

/*sign up start*/
.contactForm {
  background: #fff;
  width: 30vw;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.formGroup {
  position: relative;
  margin-bottom: 20px;
}

.formGroup input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  font-size: 16px;
  background: none;
}

.formGroup input:focus {
  border: solid #004165;
  border-radius: 5px;
}

input[type=submit] {
  background-color: #f2df74;
  color: black;
  margin-top: 10px;
  margin-right: 5px;
  padding: 12px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  border: solid #f2df74;
  border-radius: 5px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #004165;
  color: white;
  border: solid #004165;
}

input.freeMeeting {
  background-color: #fff;
  color: black;
  border: solid #f2df74;
}

input.freeMeeting:hover {
  background-color: #fff;
  border: solid #004165;
  color: black;
}
/*sign up end*/

/*Meetings table start*/
.meetingInfo, .specialEvents {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.meetingTable,
.specialEventsTable {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  grid-template-rows: repeat(auto-fill, auto); /* Five rows */
}

.grid-cell {
  padding: 1em;
  border: 1px solid #004165;
  text-align: left;
}

.meetingTable .grid-cell:nth-child(1),
.specialEventsTable .grid-cell:nth-child(1) {
  border-top-left-radius: 5px; /* Top-left cell */
}

.meetingTable .grid-cell:nth-child(2),
.specialEventsTable .grid-cell:nth-child(2) {
  border-top-right-radius: 5px; /* Top-right cell */
}

.meetingTable .grid-cell:nth-last-child(2),
.specialEventsTable .grid-cell:nth-last-child(2) {
  border-bottom-left-radius: 5px; /* Bottom-left cell */
}

.meetingTable .grid-cell:last-child,
.specialEventsTable .grid-cell:last-child {
  border-bottom-right-radius: 5px; /* Bottom-right cell */
}
/* table end*/
/*members page end*/

/* Footer begin */

footer {
    background: #772432;
    padding: 50px 20px;
    color: white;
    width: 100%;
    margin-top: 10%;
    box-sizing: border-box; 
}
  
  .container {
    max-width: 1920px;
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    overflow: hidden;
  }
  
  .footer-content,
  .footer-image {
    flex: 1; 
    text-align: center; 
  }
  
  .footer-image img {
    max-width: 40%; 
    height: auto; 
  }
  
  .footer-content h3,
  .footer-content ul,
  .social-icons,
  .social-icons li,
  .bottom-bar p {
    margin: 0 auto;
    padding: 7px;
    text-align: center; 
  }
  .footer-content p {
    margin: 0 73px; 
    padding: 7px;
    text-align: center; 
  }
  
  .social-icons li,
  .social-icons i {
    display: inline-block;
    color: white;
    font-size: 25px;
  }
  
  a,
  a:hover {
    text-decoration: none;
    color: inherit;
  }
  
  a:hover,
  .social-icons i:hover {
    color: #f2df74;
  }
  
  .bottom-bar {
    background: #772432;
    padding: 10px 0;
    color: #ffffff;
  }
  
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      align-items: center;
      .footer-content,
      .footer-image {
        width: 100%;
      }
    }
  }
  
  /* Footer end */