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

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

.card {
    background: white;
    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: #f8f9fa !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");
}


.hero {
    position: relative;
    background: #1e3c72;
    color: white;
    text-align: center;
    min-height: 250px;
    padding: 70px 20px;
    margin: 0px;
    clip-path: ellipse(100% 100% at center top);
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("{% static 'images/stars.png' %}") repeat;
    opacity: 0.3;
}

.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: #1e3c72;
    color: white;
    text-align: center;
    padding: 34px 24px;
    margin-top: 80px;
    font-size: 0.95rem;
}

footer a {
    color: #7db8f7;
    text-decoration: underline;
}

footer a:hover {
    color: #a1c7ff;
}