html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 45px;
  margin-top: 75px;
}

.container {
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .container {
    margin-top: 0;
  }
}

.api-keys-button {
  color: #343a40 !important; /* Match other nav links in light theme */
  font-weight: bold; /* Make it stand out slightly */
  border-radius: 3px;
  padding: 5px 10px;
  transition: color 0.3s ease;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.api-keys-button:hover {
  color: #007bff !important;
}

@media (max-width: 991.98px) {
  .api-keys-button {
    padding: 10px 20px !important;
    /*margin-left: 0 !important;*/
    display: block !important;
    width: 100% !important;
    /*text-align: left;*/
    box-sizing: border-box !important;
  }
}

.bg-dark-custom {
  background-color: rgba(200, 200, 200, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 200, 200, 0.2);
}

.navbar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 15px; 
  background-color: #ffffff;  
  z-index: 999;
}

.navbar {
  position: fixed;
  top: 15px;
  left: 15px;
  right: 15px;
  height: 45px;
  border-radius: 8px;
  background-color: #22222222;
  z-index: 1000;
}

.navbar-brand {
  font-weight: bold;
  color: #343a40 !important; /* Dark text for brand in light theme */
}

.nav-link {
  color: #343a40 !important; /* Dark text for links in light theme */
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
  position: relative;
  text-decoration: none;
}

.nav-link:hover {
  color: #007bff !important; /* Blue on hover for light theme */
  background-color: rgba(0, 123, 255, 0.1); /* Subtle background highlight on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #007bff;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 80%;
  left: 10%;
}

.navbar-toggler {
  border-color: #000000; /* Pure black border for maximum contrast */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); /* Pure black and thicker icon for maximum visibility on mobile */
}

/* Responsive adjustments for navbar */
@media (max-width: 991.98px) {
  .navbar-backdrop {
    height: 5px;
  }
  
  .navbar {
    top: 5px;
    left: 5px;
    right: 5px;
  }
  
  .navbar-collapse {
    background-color: rgba(200, 200, 200, 0.8); /* Darker semi-transparent gray tint for glassy effect on mobile */
    backdrop-filter: blur(10px); /* Blur effect for glassy look */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 5px;
    margin-top: 5px;
  }
  
  .nav-link {
    padding: 10px 20px !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  .navbar-toggler {
    border-color: #000000 !important;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; /* Ensure pure black and thicker icon on mobile */
  }
}

.home-container {
  width: 100%;
  align-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding: 0px;
  margin: 0 auto;
}

.home-left, .home-right {
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .home-left {
    flex: 1 1 55%;
  }
  .home-right {
    flex: 1 1 40%;
  }
}

.home-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-posts {
  margin-top: 10px;
}

.blog-posts h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.blog-posts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.blog-post-item {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33.33% - 15px); /* 3 items per row with gap */
  width: 250px;
  height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-post-item h3 {
  font-size: 1.1rem;
  margin-top: 0;
  color: #3498db;
}

.blog-post-item p {
  margin: 5px 0 10px;
  color: #555;
  font-size: 0.9rem;
}

.blog-post-item a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.blog-post-item a:hover {
  text-decoration: underline;
}

.blog-post-item .read-more {
  align-self: flex-end;
  margin-top: auto;
}

@media (max-width: 991.98px) {
  .blog-post-item {
    flex: 1 1 100%;
  }
}

.home-right {
  /*background-color: #f8f8f8;*/
  padding: 10px;
  /*border-radius: 5px;*/
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}
