/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

h1, h2, h3 {
  color: #2c3e50;
}

a {
  color: #F4B223; /* Brand color for links */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background-color: #2c3e50;
  color: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  color: #fff; 
}

header p {
  margin: 5px 0 0;
  font-size: 1.1rem;
}

.logo {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

/* Container */
.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Table of Contents */
.toc {
  background-color: #ecf0f1;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.toc ul {
  list-style-type: none;
  padding: 0;
}

.toc li {
  margin: 10px 0;
}

.toc a {
  color: #2c3e50;
  font-weight: bold;
}

/* Sections */
section {
  margin-bottom: 30px;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #F4B223; /* Brand color for section headings */
}

section p, section ul {
  margin: 10px 0;
}

section ul {
  padding-left: 20px;
}

section ul li {
  margin: 5px 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #F4B223;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  display: none;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #2c3e50;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  section h2 {
    font-size: 1.2rem;
  }

  .back-to-top {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
  }
}

/* #add bounce animation to the back to top button */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
  }
  40% {
      transform: translateY(-10px);
  }
  60% {
      transform: translateY(-5px);
  }
}

.back-to-top {
    animation: bounce 4s infinite; /* #apply bounce animation */
}

/*konnect logos styles*/
.konnect-logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
  padding: 10px;
  max-width: 100%;
  overflow-x: auto; /* Allows scrolling on very small screens if needed */
}

.konnect-logos-container img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* Applying different animation delays to each logo for a staggered effect */
.konnect-logos-container img:nth-child(1) {
  animation: bounce 1s infinite, settle 2s 1; /* First logo bounces first and then settles */
  animation-delay: 1s;
}

.konnect-logos-container img:nth-child(2) {
  animation: bounce 1s infinite, settle 2s 1; /* Second logo bounces after the first and then settles */
  animation-delay: 2.6s;
}

.konnect-logos-container img:nth-child(3) {
  animation: bounce 1s infinite, settle 2s 1; /* Third logo bounces after the second and then settles */
  animation-delay: 1s;
}

.konnect-logos-container img:nth-child(4) {
  animation: bounce 1s infinite, settle 2s 1; /* Fourth logo bounces after the third and then settles */
  animation-delay: 2.6s;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .konnect-logos-container {
    gap: 10px;
  }

  .konnect-logos-container img {
    max-height: 40px;
  }
}

@media screen and (max-width: 480px) {
  .konnect-logos-container {
    gap: 5px;
  }

  .konnect-logos-container img {
    max-height: 30px;
  }
}

/* #footer starts here */
