:root {
  --theme: #f7f7f7;
}

/* Adjust the navbar height */
.header {
    height: 70px; /* Adjust height as needed */
    line-height: 80px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--theme); /* ✅ dynamic background */
}

.nav {
    height: 80px;
}
.logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
    margin-top: 8px;
}

.contact-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-title {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease-in-out;
    background-color: #ffffff; /* ✅ Ensure a consistent background */
    color: #333; /* ✅ Ensure text color is consistent */
    appearance: none; /* ✅ Avoid browser interference */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0077cc;
    outline: none;
    background-color: #ffffff; /* ✅ Keep background consistent */
}

/* Fix for autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Change Send Message button to red */
.contact-button {
    background-color: #ff4d4f; /* Red color */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.contact-button:hover {
    background-color: #d9363e; /* Slightly darker red on hover */
}


textarea {
    resize: none !important;
}

@media (max-width: 600px) {
    .contact-page {
        padding: 15px;
    }

    .contact-title {
        font-size: 28px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .contact-button {
        font-size: 16px;
    }
}


.docs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }  

.docs-wrapper {
    display: flex;
    padding-top: 2rem;
    margin-left: 0rem; /* nudges sidebar left to match container edge */
  }
  
.docs-sidebar {
    width: 220px;
    padding-right: 1rem;
    padding-left: 0;
    margin-left: 0;
    border-right: 1px solid var(--border);
    background-color: transparent;
  }
  
.docs-sidebar h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
  }
  
.docs-sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  
.docs-sidebar a {
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
  }
  
.docs-sidebar a:hover,
.docs-sidebar a.active {
    font-weight: 600;
    color: var(--primary);
  }
  
.docs-content {
    flex: 1;
    padding-left: 2rem;
  }
  
.submenu {
  display: none;
  position: absolute;
  border: 1px solid #c2bfbf;
  border-radius: 3px;
  background: var(--theme);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  top: 100%;
  z-index: 1000;
  list-style: none;


}


.submenu li {
  list-style: none;
  margin: 0;

}

.submenu li:first-child {
  padding-left: 1.5rem ;
}


.submenu li a {
  display: block; 
  width: 100%;                  /* ✅ ensures it spans the submenu */
  text-decoration: none;
  padding-left: 0rem;
  padding-right: 1rem ;


}


.submenu li a:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark .submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.08); /* slightly stronger highlight */
}



.has-children:hover .submenu {
  display: block;
}

