/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #395886;
  padding: 30px;
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(57, 88, 134, 0.95);
  transition: background-color 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #395886;
}

.nav-links {
  display: flex;
  gap: 50px;
  height: 20px;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

nav a.active-nav {
  border-bottom: 2px solid white;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #395886;
    width: 100%;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: 0;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* Hero Section */
.hero {
  background-color: #8AAEE0;
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.hero h1 {
  font-size: 55px;
  margin-bottom: 10px;
}

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

.cta-button {
  display: inline-block;
  background-color: #395886;
  color: white;
  padding: 10px 20px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.cta-button.pressed {
  transform: scale(0.95);
}

/* Our Story */
.our-story {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 20px;
  background-color: #ffffff;
  flex-wrap: wrap;
}

.story-text {
  flex: 2;
  padding-right: 30px;
  min-width: 280px;
}

.story-text h2 {
  color: #395886;
  margin-bottom: 15px;
  cursor: pointer;
}

.story-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: end;
  min-width: 150px;
}

.story-image img {
  width: 200px;
  height: 200px;
}

/* Features */
.features {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  background: #e4edfc;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 25%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  min-width: 250px;
}

.feature-box:hover {
  transform: scale(1.05);
}

.feature-box h3 {
  color: #395886;
}

.feature-box .subtitle {
  font-weight: bold;
  color: #395886;
  margin-top: 10px;
}

.highlight {
  background: #628ECB;
  color: #fff;
}

.highlight h3,
.highlight .subtitle {
  color: #fff;
}

/* Ticker */
.ticker-wrap {
  background: #628ECB;
  overflow: hidden;
  white-space: nowrap;
  height: 50px;
  display: flex;
  align-items: center;
}

.ticker {
  display: inline-block;
  animation: ticker 15s linear infinite;
}

.ticker span {
  display: inline-block;
  padding: 0 40px;
  font-weight: bold;
  font-size: 18px;
  color: #fff;
}

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

/* Testimonials */
.testimonials h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #395886;
  text-align: center;
}

.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial {
  width: 300px;
  height: 335px;
  perspective: 1000px;
  cursor: pointer;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
}

.testimonial-inner {
  position: relative;
  width: 100%;
  height: 120%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.testimonial.expanded .testimonial-inner {
  transform: rotateY(180deg);
}

.testimonial-front,
.testimonial-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #e4edfc;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #395886;
}

.testimonial-back {
  transform: rotateY(180deg);
  background: #d8e2f4;
}

.avatar {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  align-self: center;
}

.author {
  font-style: italic;
  margin-top: 10px;
  font-size: 14px;
  color: #395886;
}

/* Team Section */
.team-section {
  padding: 40px 20px 20px;
  text-align: left;
}

.team-section h2 {
  font-size: 1.5em;
  color: #395886;
  margin-bottom: 30px;
  text-align: center;
}

.team-members {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.member {
  width: 150px;
  text-align: center;
  transition: transform 0.3s ease;
}

.member:hover {
  transform: scale(1.05);
}

.member img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 4px solid #eee;
  cursor: pointer;
}

.member h4 {
  margin: 10px 0 5px;
  font-size: 1em;
}

.member p {
  font-size: 0.9em;
  color: #395886;
}

/* FAQ Section */
.faq-section {
  padding: 40px 20px;
  background-color: #f7f9fd;
  border-top: 4px solid #628ECB;
}

.faq-section h2 {
  font-size: 1.4em;
  color: #395886;
  margin-bottom: 20px;
  text-align: center;
}

.faq {
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.faq-question {
  display: block;
  width: 100%;
  text-align: left;
  background-color: #628ECB;
  color: white;
  padding: 12px 15px;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #557ab3;
}

.faq-answer {
  background-color: #d9e6ff;
  padding: 15px;
  border-radius: 12px;
  margin-top: 8px;
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.faq-answer p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Reset some defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* General styles */
body {
  background-color: #ffffff;
  color: #4f70b5;
}

/* Chatbot button (floating) */
.chatbot-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #7b9bd1;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* Chatbot container floating */
.chatbot-floating-container {
  display: none;
  position:fixed;
  right: 20px;
  bottom: 70px;
  width: 300px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  padding: 20px;
  z-index: 1000;
}

.chatbot-floating-container.visible {
  display: block;
}

.chatbot-prompt {
  margin-bottom: 10px;
  font-size: 14px;
  color: #4f70b5;
}

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

.chatbot-input-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 15px 0 0 15px;
  outline: none;
  font-size: 14px;
}

.chatbot-submit {
  background-color: #4f70b5;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 0 15px 15px 0;
  font-size: 16px;
  cursor: pointer;
}

/* Contact form section */
.contact-section {
  padding: 40px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-section h2 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #4f70b5;
}

form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #4f70b5;
}

.required {
  color: red;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 14px;
}

textarea {
  resize: vertical;
  height: 100px;
  margin-bottom: 20px;
}

.send-button {
  background-color: #4f70b5;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}
/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  display: none;
  border: none;
  padding: 0.6rem;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
  background-color: #395886;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 12px;
}

.footer-icons {
  margin: 10px 0;
  gap: 100px;
}

.footer-icons img {
  width: 24px;
  height: 24px;
  margin: 0 5px;
}
.footer-icon img {
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.footer-icon img:hover {
  transform: scale(1.1);
}

/* Notification popup */
.popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background-color: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.popup.error {
  background-color: #e74c3c;
}

.popup.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.audience-btn {
  background-color: #f9f9f9;
  border: 2px solid #395886;
  color: #395886;
  padding: 8px 16px;
  margin-right: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
  font-weight: 600;
}
.audience-btn.active {
  background-color: #395886;
  color: #fff;
}
.audience-content {
  opacity: 0;
  max-height: 0;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  overflow: hidden;
}
.audience-content.active {
  opacity: 1;
  max-height: 300px; /* enough for content */
}
