﻿html,
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1 0 auto;
}

.flash-message {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* login page */

.login-background {
    background-image: url("/static/images/login-background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-page .breadcrumb {
    display: none;
}

/* Center the login boxes */
.login-container {
  display: flex;
  justify-content: center;
  gap: 30px; /* Space between boxes */
  padding: 40px;
}

/* Style for each login box */
.login-box {
  background: #f5f5f5; /* Light gray background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  width: 400px;
}

/* Styling for headings and text */
.login-box h2 {
  margin-bottom: 10px;
}

.login-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* Input fields */
.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Buttons */
.google-button, .login-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

/* Google button styling */
.google-button {
  background-color: #00395a;
  color: white;
}

/* Login button styling */
.login-button {
  background-color: #ccc;
  color: #666;
}

/* Link styling */
.login-box a {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #00395a;
  text-decoration: none;
}


#footer {
  flex-shrink: 0;
}

/* Navbar settings */
.bg-primary {
  background-color: #ffff !important;
  padding: 11px 0;
  font-size: 14px;
  border-bottom: 2px solid #e9e9e8; /* Adds a border at the bottom */
}

/* No navbar border on the home page */
body.home-page .bg-primary {
  border-bottom: none;
}

/* Mobile: give the navbar contents (logo, links, user dropdown) room from the edges */
@media (max-width: 991.98px) {
  .navbar.bg-primary {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}



/* Spacing inside each nav link */
.navbar .nav-link {
  color: #000000 !important; /* Text color for the nav links */
}

/* Adjust spacing between nav items */
.navbar-nav .nav-item {
  margin-right: 14px; /* Adjusts spacing between each nav item */
  padding-top: 1px;
  display: inline-block; /* Makes nav items horizontal */
}

/* Hover effect for links */
.navbar .nav-link:hover {
  color: #333333 !important; /* Slightly darker color on hover for contrast */
}

/* Active link styling */
.navbar-nav .nav-item.active .nav-link {
  color: #333333 !important; /* Slightly darker color for active link */
}

.navbar .navbar-brand h4 {
  color: #000000 !important; /* Text color for the heading "NU" */
}

.navbar-toggler-icon {
  background-image: none !important;
  position: relative;
  width: 22px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.75);
  display: block;
  transition: background-color 0.15s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.75);
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after  { bottom: -7px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

#nav-logo {
  max-height: 45.5px; /* Adjust the height of the logo if necessary */
  width: auto; /* Keep the width proportional */
  margin-top: 5px; /* Adjust the top margin to move the logo down */
  margin-left: 15px;
  margin-right: 6px;
}


#logged_out {
  padding: 0 0.5em 0.6em;
}


#nav-heading {
  padding-left: 0.5em;
}


.wrapper {
  padding-top: 2rem;
  padding-left: 10%;
  padding-right: 10%;
}

.site-footer {
  background-color: #162f56;
  color: #ffffff;
  padding: 40px 5% 24px;
}

.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.site-footer__brand {
  margin-bottom: 24px;
}

.site-footer__logo {
  height: 56px;
  width: auto;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-col {
  flex: 1 1 140px;
  min-width: 140px;
}

.site-footer .footer-col__title {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff !important;
  text-decoration: none;
  margin-bottom: 10px;
}

.site-footer .footer-col__title:hover {
  color: #ff9900 !important;
}

.site-footer .footer-col ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.site-footer .footer-col ul li {
  margin: 4px 0;
}

.site-footer .footer-col ul li a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-footer .footer-col ul li a:hover {
  color: #ff9900 !important;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 28px;
}

.site-footer__address p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer__address-title {
  font-weight: 600;
  margin-bottom: 6px !important;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__social-title {
  margin-right: 6px;
  font-size: 14px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background-color: #ffffff;
  color: #162f56 !important;
  font-size: 22px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer__social-link:hover {
  background-color: #ff9900;
  color: #162f56 !important;
}

.footer-bottom {
  background-color: #162f56;
  padding: 10px 0;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
}

@media (max-width: 768px) {
  .site-footer__nav {
    gap: 20px;
    padding-bottom: 32px;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

#scrollToTopBtn {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  background-color: #0b2a3d;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#scrollToTopBtn::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 18px solid white;
  display: inline-block;
}

#scrollToTopBtn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 18px solid #0b2a3d;
  position: absolute;
  top: 28px;
}

#scrollToTopBtn:hover {
  background-color: #193b59;
}

#scrollToTopBtn:hover::after {
  border-bottom-color: #193b59;
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}


.nav-link {
  position: relative;
  /* Ensures the pseudo-element is positioned relative to the link */
  display: inline-block;
  text-decoration: none;
  color: black;
  /* Adjust the initial color as needed */
  padding-bottom: 5px;
  /* Some space between text and the line */
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  /* Height of the line */
  bottom: 0;
  left: 0;
  background-color: rgb(0, 64, 96);
  /* Color of the line */
  transition: width 0.3s ease-in-out;
  /* Smooth transition */
}

.nav-link:hover::after {
  width: 100%;
  /* Expand the line on hover */
}

.breadcrumb {
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-left: 15%;
  margin-top: 20px;
  font-weight: normal;
  color: #002537
}

/* For links at the breadcrumb */
.breadcrumb a {
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Deep blue by hover over breadcrumb */
.breadcrumb a:hover {
  color: rgb(0, 64, 96);
}

/* Light grey for seperator */
.breadcrumb .separator {
  color: #b0b0b0;
  margin: 0 6px;
}

.breadcrumb .current {
  margin: 0;
}

.choice-link { 
  text-decoration: none; 
  color: inherit; 
  display: block; 
}
.choice-card { 
  transition: transform .15s ease, 
  box-shadow .15s ease; 
  border-radius: 1rem; 
}
.choice-card:hover, .choice-link:focus-visible .choice-card { 
  transform: translateY(-2px); 
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); 
}
.emoji-icon { 
  font-size: 3rem;
  line-height: 1; 
}
.btn-stretch { 
  align-self: center; 
  min-width: 60%; 
}
.brand-gradient { 
  background: linear-gradient(135deg, #eef2ff, #f8f9ff); 
  border-radius: 1.25rem; 
}

.user-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* Fix Bootstrap animation delay */
}

/* Optional: keep dropdown open if hovering it directly */
.user-dropdown .dropdown-menu {
  pointer-events: auto;
}

.loader {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #3498db;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    animation: spin 2s linear infinite;
    display: none;
  }
  
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

.event-page {
  color: #162f56;
}

.event-banner img {
  object-fit: cover;
  max-height: 400px;
}

.event-title {
  font-weight: 700;
  font-size: 2rem;
  color: #162f56;
}

.event-meta {
  font-size: 0.95rem;
}

.event-about p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.event-details ul li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.event-sidebar .card {
  border-radius: 0.75rem;
}

.event-sidebar h5 {
  color: #162f56;
  font-weight: 600;
}

.btn-primary {
  background-color: #162f56;
  border-color: #162f56;
}

.btn-primary:hover {
  background-color: #0f2038;
  border-color: #0f2038;
}

@media (max-width: 992px) {
  .event-title {
    font-size: 1.5rem;
  }
  .event-banner img {
    max-height: 250px;
  }
}
.event-banner {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.event-banner img {
  object-fit: cover;
  max-height: 400px;
  width: 100%;
  display: block;
  border-radius: 0.5rem;
}

.btn-about-company {
  background-color: rgba(255, 255, 255, 0.9);
  color: #162f56;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-about-company:hover {
  background-color: #162f56;
  color: #fff;
}

@media (max-width: 768px) {
  .btn-about-company {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    margin: 0.75rem;
  }
}

:root {
  --nu-blue: #162f56;
  --nu-light: #f4f6fa;
}

/* General layout */
.events-overview {
  background-color: #fff;
  color: #162f56;
}

/* --- Carousel --- */
.upcoming-carousel h2 {
  font-weight: 600;
  color: var(--nu-blue);
}

.carousel-inner {
  text-align: center;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* --- All Events Section --- */
.all-events {
  background-color: var(--nu-blue);
  color: white;
}

.all-events .btn-outline-light {
  border-color: #fff;
  color: #fff;
}

.all-events .btn-outline-light:hover {
  background-color: #fff;
  color: var(--nu-blue);
}

/* Event Card */
.event-card {
  overflow: hidden;
  border: none;
}

.event-card img {
  object-fit: cover;
  height: 180px;
  width: 100%;
}

.event-card .card-body {
  background-color: #fff;
  color: #162f56;
}

.event-card .btn-primary,
.event-card .btn-outline-primary {
  font-weight: 500;
}

.event-card .btn-primary {
  background-color: var(--nu-blue);
  border-color: var(--nu-blue);
}

.event-card .btn-primary:hover,
.event-card .btn-outline-primary:hover {
  background-color: #0f2038;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-item .event-card {
    max-width: 220px;
  }
}

.btn-blue {
    background-color: #162f56;
    color: white;
    transition: background-color 0.3s ease;
    border-radius: 0;
}

.btn-blue:hover {
    background-color: #0f2038;
    color: white;
}

/* Companies-page styles moved to companies.css (loaded on companies.html). */

.pg-hidden {
  display: none !important;
}

.companies-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.pg-range-label {
  font-size: 0.85rem;
  color: #6c757d;
  white-space: nowrap;
  min-width: 140px;
}

.companies-pagination {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.pg-btn {
  background: none;
  border: none;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  font-family: inherit;
  border-radius: 0;
  line-height: 1.4;
}

.pg-btn:hover:not(.disabled) {
  color: #111;
}

.pg-btn.active {
  color: #9ca3af;
  cursor: default;
}

.pg-btn.disabled {
  opacity: 0.35;
  cursor: default;
}

.pg-arrow {
  font-size: 1.1rem;
  padding: 0.2rem 0.3rem;
}

.pg-ellipsis {
  padding: 0.2rem 0.2rem;
  color: #374151;
  font-size: 0.875rem;
}

.pg-per-page-select {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
}

/* .company-card-* styles moved to companies.css (loaded on companies.html). */

.text-color-black {
    color: #000000 !important;
}

/* Limits scale of dropdown in company profile */
.ms-menu .form-check-input,
.ms-root .form-check-input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  box-sizing: border-box;
  
}

/* ===== Event Detail – Modal styles ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.modal-overlay.active {
  background: rgba(0, 0, 0, 0.4);
}

.modal-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  width: 90%;
  max-width: 760px;
  max-height: 85vh;
  height: auto;
  min-height: 260px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-box-header {
  width: 100%;
}

.modal-box-header h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-box-body {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

.modal-overlay.active .modal-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.company-info {
  flex: 2;
}

.company-logo {
  flex: 0 0 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo img {
  width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
  padding: 8px;
}

.company-info h4 {
  margin-bottom: 0.5rem;
}

.company-info p {
  margin-bottom: 0.5rem;
  color: #333;
}

.company-info .btn {
  margin-top: 0.75rem;
}

#companyTitle {
  font-size: 30px;
  font-weight: 700;
}

@media (max-width: 576px) {
  .modal-box-body {
    flex-direction: column;
  }

  .modal-box {
    max-width: 95%;
    padding: 1rem;
  }

/* last chance ribbon for job postings */
#jobs-list .list-group-item {
  position: relative;
  overflow: hidden;
}

/* Legacy blue ribbon removed — the "Last chance!" ribbon is now defined
   in jobs_overview.css (.jb-job-row .ribbon) as a red top-left corner ribbon. */