/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  padding-top: 60px;
}

/* Navbar (Header) */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #2a4aff;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  max-height: 50px;
  width: auto;
  margin-left: 20px;
}
.navbar nav {
  display: flex;
  gap: 20px;
  margin-right: 20px;
}
.navbar nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 1em;
  padding: 8px 12px;
  transition: color 0.3s ease;
}
.navbar nav a:hover {
  color: #b3c6ff;
}
.menu-icon {
  display: none;
  font-size: 1.5em;
  color: #ffffff;
  cursor: pointer;
  margin-right: 20px;
}

/* Hero Section */
.hero {
  background: url('../images/pathway_homepage_desktop.png') no-repeat center top / cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  margin-top: 5px;
}
.hero-text {
  max-width: 700px;
}

/* Buttons (All #2a4aff) */
.cta-buttons {
  display: flex;
  gap: 50px;
  justify-content: center;
  margin-top: 200px;
}
.cta-button,
.cta-button-alt,
.secondary-btn,
.submit-button {
  display: inline-block;
  background-color: #2a4aff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1em;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.cta-button:hover,
.cta-button-alt:hover,
.secondary-btn:hover,
.submit-button:hover {
  background-color: #1f3ee0;
}

/* Sections */
.welcome-section {
  text-align: center;
  padding: 40px 20px;
  background-color: #f4f4f4;
}
.welcome-section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #333;
}
.welcome-section p {
  font-size: 1.2em;
  line-height: 1.8;
  max-width: 1200px;
  margin: 0 auto;
}
.why-choose-us {
  text-align: center;
  padding: 40px 20px;
  background-color: #efefef;
  color: #333;
}
.why-choose-us h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}
.why-choose-us p {
  font-size: 1.2em;
  line-height: 1.8;
  max-width: 1200px;
  margin: 0 auto;
}

/* Services Content */
.services-content {
  padding: 40px 20px;
}
.services-content h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 10px;
}
.service {
  margin-bottom: 30px;
}
.service h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.3em;
  cursor: pointer;
}
.toggle-btn {
  background: none;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
  color: #333;
}
.service-details {
  display: none;
  margin-top: 10px;
}
.why-pathway {
  text-align: center;
  background-color: #f4f4f4;
  padding: 40px 20px;
}
.why-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.why-box {
  background: #fff;
  padding: 20px;
  max-width: 250px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.get-started {
  text-align: center;
  padding: 40px 20px;
}
.get-started button {
  background-color: #2a4aff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
.get-started button:hover {
  background-color: #1f3ee0;
}

/* Footer (2 lines) */
footer {
  background-color: #2a4aff;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  position: relative;
}
.footer-line1 {
  text-align: center;
  margin-bottom: 5px;
}
.footer-line2 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.footer-center {
  flex: 0 0 auto;
}
.footer-right {
  position: absolute;
  right: 20px;
}

/* Blog Container (Blog Template) */
.blog-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}
.blog-container h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
}
.blog-featured-image {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}
.blog-footer-links {
  text-align: center;
  margin-top: 30px;
}

/* Cards for Insights & Full Blogs Page */
.insights-section {
  padding: 40px 20px;
  background-color: #ffffff;
}
.insights-grid,
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
}
.insight-card,
.blog-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.insight-card h3,
.blog-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.insight-card p,
.blog-card p {
  font-size: 1em;
  line-height: 1.5;
}
.insight-date,
.blog-date {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

/* to specifically center the button */
.read-more-btn {
  margin: 15px auto 0 auto;
  display: block;
}

/* Floating WhatsApp Icon on Contact Page */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.whatsapp-float img {
  width: 60px;
  height: 60px;
  cursor: pointer;
}

/* Services Page */
.services-hero {
  text-align: center;
  padding: 60px 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.services-hero h1 {
  font-size: 2.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
.services-hero h2 {
  font-size: 1.2em;
  font-weight: 400;
  color: #666;
  margin-bottom: 25px;
}
.services-hero p {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.services-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
.service-block {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  cursor: pointer;
}
.service-block:last-child {
  border-bottom: none;
}
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-header h3 {
  font-size: 1.3em;
  margin: 0;
  font-weight: bold;
}
.toggle-icon {
  font-size: 1.6em;
  background: none;
  border: none;
  color: #2a4aff;
  width: 36px;
  height: 36px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s;
}
.toggle-icon:hover {
  background-color: #f4f4f4;
}
.service-content {
  display: none;
  margin-top: 10px;
  font-size: 1em;
  line-height: 1.6;
  color: #555;
  background-color: #fafafa;
  padding: 15px;
  border-radius: 6px;
}
.service-content ul {
  list-style: disc inside;
  margin-left: 15px;
  margin-top: 10px;
}
.open .service-content {
  display: block;
}

/* Why Choose Section (Services) */
.why-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}
.why-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}
.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.why-card {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
}
.why-card h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #333;
}
.why-card p {
  font-size: 0.95em;
  color: #555;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 40px auto;
}
.cta-section h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #333;
}
.cta-section p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #666;
}

/* Contact Page */
.get-in-touch {
  text-align: center;
  padding: 40px 20px;
  background-color: transparent;
}
.contact-logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}
.contact-text h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.contact-text p {
  font-size: 1.1em;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-section {
  padding: 40px 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-form-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}
.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
input, textarea {
  flex: 1;
  background: #fff;
  border: 2px solid #ccc;
  color: #333;
  padding: 10px;
  font-size: 1em;
  border-radius: 5px;
  outline: none;
}
textarea {
  height: 100px;
  resize: none;
}
.privacy-link {
  margin-top: 30px;
  text-align: center;
}
.privacy-link a {
  font-weight: bold;
  text-decoration: underline;
  color: #2a4aff;
}

.whatsapp-section {
  text-align: center;
  padding: 40px 20px;
  margin-top: 30px;
}
.whatsapp-section h2 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #1c3f4e;
}
.whatsapp-section p {
  font-size: 1em;
  color: #555;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.5;
}
.whatsapp-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.whatsapp-link-btn:hover {
  background-color: #1ebe5c;
}
.whatsapp-link-btn img {
  width: 24px;
  height: 24px;
}

.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.custom-alert-box {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.custom-alert-box p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333;
}
.custom-alert-box button {
  background-color: #2a4aff;
  color: #fff;
  padding: 8px 20px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
.custom-alert-box button:hover {
  background-color: #526cff;
}

/* Accessibility Focus Styles */
input:focus, textarea:focus, button:focus {
  outline: 2px solid #2a4aff;
  outline-offset: 2px;
}
.toggle-icon:focus {
  outline: 2px solid #2a4aff;
  outline-offset: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  .navbar nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    background-color: #2a4aff;
    width: 100%;
    text-align: center;
  }
  .navbar nav.active {
    display: flex;
  }
  .hero {
    background: url('../images/pathway_homepage_desktop.png') no-repeat center center / contain;
    min-height: 70vh;
    padding: 20px;
    background-position: center;
    background-size: contain;
  }
  .footer-line2 {
    flex-direction: column;
  }
  .footer-right {
    position: static;
    margin-top: 5px;
  }
  .why-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    overflow-x: visible;
  }
}
.help-you-tiles {
  text-align: center;
  background-color: #f4f4f4;
  padding: 40px 20px;
}
.help-you-tiles h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.tiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.help-tile {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: left;
}
.help-tile h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}
.help-tile p {
  margin: 0;
  font-size: 1em;
  line-height: 1.5;
}
.services-page-header {
  margin-top: 40px;
}
.why-section {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}
