body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}

body.dark-mode .bg-light {
    background-color: #1e1e1e !important;
}

body.dark-mode .border-top,
body.dark-mode .border-bottom,
body.dark-mode .border-start,
body.dark-mode .border-end {
    border-color: #333 !important;
}

body.dark-mode .card {
    background-color: #2a2a2a;
    color: #f0f0f0;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.bg-custom-class {
    background-color: #fcf5eb;
}

/* Container for the search functionality */
 .search-container {
     position: relative;
 }

/* Results container styling */
#search-results {
    position: absolute;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    top: 100%;
    left: 0; /* Align with the left edge of the search box */
    background-color: white;
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
}

/* Make sure it's visible when it has content */
#search-results:not(:empty) {
    display: block;
}

/* If you want to center the results relative to the search box */
/* Uncomment this if you prefer centered alignment */
/*
#search-results {
  left: -100%;
  right: -100%;
  margin-left: auto;
  margin-right: auto;
}
*/

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    #search-results {
        width: 100%; /* Full width on mobile */
        left: 0;
    }
}

/* Style for h1 to h5 tags */
h1, h2, h3, h4, h5 {
    font-family: arial, sans-serif; /* or any modern font you prefer */
    font-weight: 600; /* Make them slightly less bold */
    line-height: 1.4; /* Slightly increase line-height for better readability */
    margin-top: 0; /* Remove the top margin */
    margin-bottom: 0.5em; /* Space out below headings */
    color: darkgray;
}

/* Override for mobile devices */
@media (max-width: 767.98px) {
    h1, h2, h3, h4, h5 {
        font-family: 'Arial', sans-serif; /* Choose a more readable font for mobile */
    }
}

/* Specific styles for each heading */
h1 {
    font-size: 1.8em;
    letter-spacing: -0.3px;
}

h2, h3 {
    font-size: 1.8em;
    letter-spacing: -0.2px;
}

h4 {
    font-size: 1.5em;
    letter-spacing: -0.1px;
}

h5 {
    font-size: 1.3em;
    letter-spacing: 0; /* No extra letter spacing for h5 */
}

/* Navigation Menu Styling */
nav {
    display: flex;
    gap: 15px; /* Add space between the items */
}

nav a {
    padding: 5px 5px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.nav-link {
    color: inherit;
    text-decoration: none;
}

/* Dropdown menu styling */
.dropdown-menu {
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 10px 15px;
}

.dropdown-item:hover {
    background-color: #db853b;
    color: #fff;
}

.ad-container {
    max-width: 300px;        /* Set a max width for the ad container */
    width: 100%;             /* Allow the ad container to scale down if necessary */
    text-align: center;      /* Center the content inside the ad */
}

.list-link {
    display: block;              /* Fills the entire li */
    text-decoration: none;       /* Removes underline */
    color: inherit;              /* Keeps original color */
    padding: 2px;           /* Optional: extra spacing */
    border-radius: 4px;          /* Optional: slight rounding */
    transition: background-color 0.2s ease;
}

.list-link:hover {
    background-color: #e9ecef;   /* Bootstrap's light gray */
    color: #000;                 /* Optional: text color on hover */
}

.social-float .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
}