/* Base Reset and Fonts */
body {
  font-family: 'Segoe UI', 'Lato', 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Headings */
h1, h2, h3 {
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
}

h1 {
  font-size: 42px;
  margin-bottom: 15px;
  text-align: center;
}

h2 {
  font-size: 28px;
  margin: 50px 0 20px;
  text-align: center;
}

h3 {
  font-size: 22px;
  margin-top: 30px;
}

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

.hero-logo {
  display: block;
  margin: 0 auto 20px;
  width: 300px;
  max-width: 90%;
  height: auto;
  object-fit: contain;
}

.hero-logo {
  display: block;
  margin: 0 auto 20px;
  width: 300px;
  max-width: 90%;
  height: auto;
  object-fit: contain;
}

/* 🧩 Fix navigation layout on subpages */
header nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
}

header nav ul li a {
  font-size: 18px;
  color: #2c3e50;
  text-decoration: none;
  padding: 6px 12px;
}

header nav ul li a:hover {
  text-decoration: underline;
  color: #8db3c9;
}


/* Section Nav (Top Navigation Buttons) */
.section-nav {
  text-align: center;
  padding: 20px 0;
  background-color: #f1f4f6;
  border-bottom: 1px solid #ddd;
}

.section-nav .button {
  margin: 8px 12px;
  display: inline-block;
}

/* Inline Section Links (Under CTA) */
.inline-section-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background-color: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.inline-section-links a {
  white-space: nowrap;
  margin: 0 12px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  font-size: 16px;
}

.inline-section-links a:hover {
  color: #8db3c9;
  text-decoration: underline;
}

/* Sections */
main section {
  padding: 40px 20px;
  border-bottom: 1px solid #eee;
}

main section:nth-child(even) {
  background-color: #f1f4f6;
}

main p {
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 20px;
  color: #333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

ul {
  max-width: 800px;
  margin: 0 auto 20px;
  padding-left: 20px;
}

ul li {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Back to Top Link */
.back-to-top {
  text-align: right;
  margin-top: 30px;
}

.back-to-top a {
  font-size: 16px;
  color: #2c3e50;
  text-decoration: underline;
}

/* Profile Image & About Section */
.profile-img {
  display: block;
  margin: 20px auto;
  width: 200px;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-section {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
  }

  .about-section div {
    flex: 2;
    padding-left: 30px;
    max-width: 600px;
  }

  .about-section img {
    flex: 1;
    max-width: 200px;
    height: auto;
  }
}

/* Buttons */
.button {
  background-color: #8db3c9;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: 18px;
  display: inline-block;
  margin: 10px;
  text-align: center;
}

.button:hover {
  background-color: #6f9cb3;
  cursor: pointer;
}

/* Centered Button Container */
.section-buttons,
.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-buttons .button,
.cta .button {
  margin: 10px;
  display: inline-block;
  text-align: center;
}

/* Services Section Card Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
  justify-items: center;
}

.service-card {
  background-color: #f6f9fb;
  padding: 16px;
  border-radius: 8px;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
  width: 100%;
  max-width: 300px;
}

/* Chatbot Wrapper */
.chatbot-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.chatbot-wrapper input,
.chatbot-wrapper textarea,
.chatbot-wrapper .chat-input,
.chatbot-wrapper .form-control,
#chatbot-container textarea,
#chatbot-container input,
#chatbot-container select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 10px;
  margin-top: 10px;
}

#chatbot-container button {
  font-size: 16px;
  padding: 8px 16px;
  margin-top: 12px;
  background-color: #8db3c9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#chatbot-container button:hover {
  background-color: #6f9cb3;
}

/* Footer */
footer {
  background-color: #8db3c9;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 16px;
  width: 100%;
}

footer .social-links {
  margin-top: 10px;
}

footer .social-links a {
  color: #fff;
  text-decoration: underline;
  margin: 0 8px;
  font-size: 14px;
}

/* === Layout Fixes for Article Pages === */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

main ul {
  padding-left: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === Table Styling for Article Readability === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 18px;
  line-height: 1.6;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  text-align: left;
}

th {
  background-color: #f1f4f6;
  white-space: nowrap;
  font-weight: 600;
  width: 25%;
}

tr:nth-child(even) td {
  background-color: #f9f9f9;
}
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 20px;
  line-height: 1.8;
}

.article-content h1 {
  font-size: 42px;
  margin-top: 40px;
  text-align: center;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
}
