:root {
    --theme-dark-blue: #003366; /* old #003399 */
    --theme-blue: #4c8cd9; 
    --theme-yellow: #ffcc66;
    --theme-yellow-gray: #f5f1e5; /* old ffcc66 */
    --theme-light-gray: #e0e0e0; /* old #ececec */
    --theme-white-gray: #f8f9fa;
    --theme-light-blue: #aabbcd;
    --text-on-dark: rgba(255, 255, 255, 0.9);
  }


body {
    background-color: var(--theme-white-gray) !important; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-theme {
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.container-theme .h4 {
    scroll-margin-top: 140px; 
}

.btn-theme {
    background-color: var(--theme-dark-blue) !important;
    border-color: var(--theme-dark-blue) !important;
    color: var(--text-on-dark) !important;
    border-radius: 25px;
}
.btn-theme:hover {
    background-color: var(--theme-blue) !important;
    border-color: var(--theme-blue) !important;
}

.btn-theme-secondary {
    background-color: var(--theme-white-gray) !important;
    border-color: var(--theme-dark-blue) !important;
    color: var(--theme-dark-blue) !important;
}
.btn-theme-secondary:hover {
    background-color: var(--theme-light-blue) !important;
}

.input-group > .form-control.form-theme, .input-group > .form-control.form-control-lg {
  border-color: var(--theme-dark-blue) !important;
}

.text-theme, .page-link {
    color: var(--theme-dark-blue) !important;
}


/* Navbar Styling */
.navbar-theme {
    background-color: var(--theme-dark-blue) !important;
    border-bottom: 1px solid #001f3f;
}

.nav-link-theme {
    color: var(--text-on-dark) !important;
    text-decoration: none;
    margin-right: 1rem;
    padding-bottom: 0.5rem;
}

.text-theme:hover, .nav-link-theme:hover, .dropdown-toggle-theme:hover {
    color: var(--theme-light-blue) !important;
}

.nav-item, .dropdown-item {
    font-size: 0.9rem;
}

.dropdown-item:hover, .page-link:hover {
    background-color: var(--theme-light-blue) !important;
}

.active > .page-link, .form-check-input:checked {
    background-color: var(--theme-dark-blue) !important;
    border-color: var(--theme-dark-blue) !important;
    color: var(--text-on-dark) !important;
}


/* Language Dropdown Styling */
.dropdown-toggle-theme {
    color: var(--text-on-dark) !important;
    background-color: transparent;
    text-decoration: none;
    padding-right: 1.5rem !important;
}

.dropdown-menu {
    display: none;
    max-width: 75vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer Styling */
.footer-theme {
    background: var(--theme-dark-blue) !important;    
    border-top: 1px solid #001f3f; 
    color: var(--text-on-dark) !important;
}

.host-logo {
    max-height: 30px; 
    margin-right: 15px; 
    vertical-align: middle; 
    border: none;
}


/* Searchbar Styling */
.searchbar-top-bg {
    background-color: #ffffff;
    border-bottom: 2px solid var(--theme-light-gray);
    width: 100%;
}


.mask-transparent {
    backdrop-filter: blur(5px);
    background-color: var(--theme-dark-blue);
    opacity: 0.15;
}

.text-section {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--text-on-dark); 
    padding: 2rem;
    margin-bottom: 15px;
}

a {
    color: var(--theme-blue) !important;
    text-decoration: none !important;
}

p a:hover, .search-result-item a:hover {
    color: var(--theme-light-blue) !important;
    text-decoration: underline !important;
}

.text-uppercase {
    user-select: none;
}

.w-60 {
    width:60% !important
}

/* Custom CSS to increase spacing between pagination items */
.pagination-spaced-lg .page-item {
    margin: 0 5px; /* Adjust the 5px value to control the desired spread */
}

/* Optional: To remove extra padding that might appear from the margin */
.pagination-spaced-lg .page-item:first-child {
    margin-left: 0;
}
.pagination-spaced-lg .page-item:last-child {
    margin-right: 0;
}

.search-result-item {
    background-color: #ffffff;
    border: 1px solid var(--theme-light-gray);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
}


.form-check-input {
    /* Increase the size of the checkbox */
    width: 1.25em;
    height: 1.25em;
    /* Increase the default border width and use a darker color */
    border-width: 2px;
    border-color: #343a40; /* Darker border color */
}

/* Ensure the checked state maintains visibility */
.form-check-input:checked {
    background-color: #4285f4; /* ScholarSearch Blue for checked state */
    border-color: #4285f4;
}

