body {
    background: #cddcec;
    padding-top: 0;
    margin: 0;
    overflow-x: hidden;
}

.container.mt-4 {
    min-height: 100vh;
    width: 100%;
}

.card {
    background: #f3f8ffe3;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    border: 2px solid #ccc;
}

.navbar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 55px;
    background-color: #cddcec !important;
}

.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.navbar-brand picture,
.navbar-brand img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.navbar-light .navbar-nav .nav-link {
    color: #000 !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link.active {
    color: #023987 !important;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.show .dropdown-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    width: 500px;
    padding: 0;
    margin: 0;
}

.nav-item.dropdown .dropdown-menu .dropdown-item {
    padding-left: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 6px;
    box-sizing: border-box;
}

.navbar-nav .nav-item .dropdown-menu {
    display: none;
    border-radius: 0;
}

@media (max-width: 991px) {

    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.show .dropdown-menu {
        display: block;
        width: auto;
        max-height: 300px;
        overflow-y: auto;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .nav-item.dropdown .dropdown-menu .dropdown-item {
        width: 100%;
    }

    .nav-item.dropdown .dropdown-menu .dropdown-item {
        white-space: normal;
    }

    .dropdown-menu {
        scroll-behavior: smooth;
    }
}


.navbar-light .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' \
    xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280, 0, 0, 0.5%29' \
    stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 \
    15h22M4 23h22'/%3E%3C/svg%3E");
}

.scroll-menu-container {
    position: sticky;
    top: 55px;
    z-index: 1000;
    background: #1e3c72;
    padding: 3px 40px;
    margin: 0px;
}

.scroll-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.scroll-menu::-webkit-scrollbar {
    display: none;
}

.scroll-menu a {
    flex: 0 0 auto;
    padding: 2px 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background 0.3s;
    border-radius: 20px;
}

.scroll-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scroll-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    display: none;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Make list items look like cards */
#search-results .list-group-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    transition: all 0.3s ease-in-out;
}

/* Add a subtle hover effect */
#search-results .list-group-item:hover {
    background-color: #e9ecef;
    transform: scale(1.02);
    border-left: 5px solid #007bff;
}

/* Style the text inside the results */
#search-results .result-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #007bff;
    margin-bottom: 5px;
}

#search-results .result-description {
    font-size: 0.9rem;
    color: #555;
}

/* Add an icon next to each result */
#search-results .list-group-item::before {
    margin-right: 10px;
}


@media (max-width: 768px) {
    .scroll-menu-container {
        top: 75px;
        padding: 10px 10px;
    }

    .scroll-icon {
        display: none !important;
    }

    .navbar {
        height: 100%;
    }
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

.footer {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 50px 20px;
    font-size: 0.95rem;
}

.footer a {
    color: #a1c7ff;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer h5 {
    margin-bottom: 15px;
}

.footer .social-icons a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.4rem;
    color: #a1c7ff;
    transition: color 0.3s;
}

.footer .social-icons a:hover {
    color: #fff;
}

.search-input {
    border: 3px solid #0d6dfd43;
    /* Replace with your desired color */
    border-radius: 5px;
    /* Optional: for rounded corners */
    transition: border-color 0.3s ease;
}

/* Optional: change border color on focus */
.search-input:focus {
    border-color: #044fc0;
    /* Replace with your desired focus color */
    box-shadow: 0 0 5px rgba(12, 62, 244, 0.363);
    /* Optional glow effect */
    outline: none;
}

.marker {
    background-color: yellow;
}