.text-serif {
  font-family: "PT Serif", serif;
}

.navbar-dark .nav-link {
    color: #ffffff;
}
.navbar-dark .nav-link:hover {
    color: #dcdcdc !important;
}

.text-small {
	font-size: 80%;
    line-height: 1.375;
}
.text-small-2x {
	font-size: 65%;
}

.badge.badge-lg {
	font-size: .85em;
}
.text-gray-light {
	color: #999999;
}

.show-pointer {
    cursor: pointer;
}

.lh-qtr {
    line-height: 1.25;
}

/* NAV AVATAR */
.nav-avatar {
    height: 64px;
    aspect-ratio: 1 / 1; /* The Container stays a perfect square based on height */
    overflow: hidden; /* Good practice if you are using rounded corners */
}
.nav-avatar img { /* Tandem with above */
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Cover is standard for avatars */
}
.avatar-hover-glow {
    transition: all 0.1s ease-in-out;
}
.avatar-hover-glow:hover,
.avatar-hover-glow:focus {
    transform: scale(1.035); /* Optional: slight zoom effect */
}
/* ^^^ */

/* CONVENIENT HARD WIDTHS */
.w-px-50 {
    width: 50px;
    max-width: 50px;
    flex: 0 0 50px; /* Don't grow, don't shrink, stay exactly */
}
.w-px-100 {
    width: 100px;
    max-width: 100px;
    flex: 0 0 100px;
}
.w-px-150 {
    width: 150px;
    max-width: 150px;
    flex: 0 0 150px;
}
.w-px-200 {
    width: 200px;
    max-width: 200px;
    flex: 0 0 200px;
}
.w-px-250 {
    width: 250px;
    max-width: 250px;
    flex: 0 0 250px;
}
.w-px-300 {
    width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
}
.w-px-350 {
    width: 350px;
    max-width: 350px;
    flex: 0 0 350px;
}
.w-px-400 {
    width: 400px;
    max-width: 400px;
    flex: 0 0 400px;
}
.w-px-450 {
    width: 450px;
    max-width: 450px;
    flex: 0 0 450px;
}
.w-px-500 {
    width: 500px;
    max-width: 500px;
    flex: 0 0 500px;
}
/* ^^^ */

.striped-bg-gray {
    background: repeating-linear-gradient(
        -45deg,
        #fcfcfc,
        #fcfcfc 20px,
        #ffffff 20px,
        #ffffff 40px
    );
    background-size: 56.56px 56.56px; /* 40px * sqrt(2) */
}

.bg-black {
    background-color: #000;
}


/* CUSTOM SMALLER BS BUTTON */
.btn-xs {
    padding: .25rem .4rem;
    font-size: .875rem;
    line-height: 1rem;
    border-radius: .18rem;
}
/* ^^^ */

/* GRADIENT FADE LONG DESCRIPTIONS */
.description-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 4em; /* Roughly 3 lines of text; was: 3.8em */
    transition: max-height 0.2s ease-in-out;
}
.description-wrapper.expanded {
    max-height: 1000px; /* High enough to accommodate long text */
}
.description-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    transition: opacity 0.2s;
}
.description-wrapper.expanded .description-gradient {
    opacity: 0;
}
/* ^^^ */

/* re: COPY TO CLIPBOARD EVENTS */
.copy-confirmation-bubble {
        position: fixed;
        background: #D73A59;
        color: #fff;
        padding: 5px 15px;
        border-radius: 5px;
        font-size: 15px;
        z-index: 9999;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: translateY(15px);
    }

    .copy-confirmation-bubble.show {
        opacity: 1;
        transform: translateY(-10px);
    }

    /* Hover effect for the link icon */
    .copy-asset-link:hover {
        opacity: 0.7;
    }
/* ^^^ */

/* HR SPECIALS */
.hr-text-center {
  display: flex;
  align-items: center;
  text-align: center;
}
.hr-text-center::before,
.hr-text-center::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #888;
}
.hr-text-center:not(:empty)::before {
  margin-right: .25em;
}
.hr-text-center:not(:empty)::after {
  margin-left: .25em;
}

.hr-text-start {
  display: flex;
  align-items: center;
  text-align: start;
}
.hr-text-start::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #999;
}
.hr-text-start:not(:empty)::after {
  margin-left: .25em;
}
/* ^^^ */

/* SMALLER GAP OPTIONS */
.mx-1-pixel {
    margin-left: 1px;
    margin-right: 1px;
}
.mx-2-pixel {
    margin-left: 2px;
    margin-right: 2px;
}
.px-1-pixel {
    padding-left: 1px;
    padding-right: 1px;
}
/* ^^^ */

/* RE: BORDER */
.border-x-dotted {
    border-left-style: dotted !important;
    border-right-style: dotted !important;
}
/* ^^^ */

/* lg editions where lacking in bs form components */
.dropdown-menu-lg .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: calc(1.26563rem + 0.1875vw);
}

.list-group-lg {
    padding: 0.5rem 0px;
    font-size: calc(1.26563rem + 0.1875vw);
}
.form-check-lg .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.50em;
}
.form-check-lg .form-check-label {
    font-size: calc(1.26563rem + 0.1875vw);
}
.form-select-lg {
    padding-left: 0.7rem;
}
.form-control-lg.file-input {
    font-size: calc(1.26563rem + 0.1875vw + 0.06vw);
}
/* ^^^ */

/* BS FORM INPUTS BORDER COLOR: MAKE SLIGHTLY DARKER */
.form-control,
.form-select,
.form-check-input {
    border-color: #BCC0C4 !important; /* A darker gray */
}
/* ^^^ */


/* soften font color for placeholder text */
label {
	font-weight: normal; /* temp disable; was: bold to override bs; */
}
input::placeholder {
  color: #bbbbbb !important;
  opacity: 1;
}
input[type=file] {
  color: #bbbbbb;
  font-size: 100%;
}
/* ^^^ */

/* CUSTOM TABS CONTAINER */
.custom-tabs-container .nav-tabs {
    border-bottom: 2px solid #aab4bc;
    margin-bottom: 0;
}
.custom-tabs-container .nav-link {
    border-width: 2px 2px 0px 2px;
    position: relative;
    top: 1px;
}
.custom-tabs-container .nav-link:hover {
    border-color: #cccccc;
}
.custom-tabs-container .nav-link.active {
    border-top: 2px solid #aab4bc;
    border-left: 2px solid #aab4bc;
    border-right: 2px solid #aab4bc;
    border-bottom-color: #fff;
    position: relative;
    top: 1px;

}
.custom-tabs-container .tab-content {
    border-left: 2px solid #aab4bc;
    border-right: 2px solid #aab4bc;
    border-bottom: 2px solid #aab4bc;
}
/* CUSTOM TABS COLORS FOR ACTIVE TAB */
.custom-tabs-container.primary-10 .nav-link.active  {
    background-color: #E5F0FD; /* bg-primary bg-opacity-10 */
}
/* ^^^ */


/* FOOTER CSS (BEGIN) */
.footer{
    background-color: #2150A2;
}
.footer-fineprint {
    color: #aaaaaa;
    font-weight: lighter;
}
/* FOOTER CSS (END) *//**/


/* BS TOOLTIP ADJUSTMENTS */
.tooltip-inner {
    line-height: 1.25;
}
/* ^^^ */

/* IMAGE CROPPING */
.cropper-container {
    max-height: 500px;
}
#cropperImage {
    max-width: 100%;
}
/* Make handles larger and more visible */
.cropper-point {
  width: 10px !important;  /* Default is often 5px */
  height: 10px !important;
  background-color: #39f; /* Change color if needed */
  opacity: 0.75;
}

/* Specific styling for corner handles to make them easier to grab */
.cropper-point.point-se {
  width: 15px !important;
  height: 15px !important;
}
/* ^^^ */


/* RE: COURSE PLAYER... */
/* WE WANT SOMETHING BIGGER THAN THE BS modal-xl BUT SMALLER THAN BS modal-fullscreen */
.modal-course-player {
    max-width: 96vw !important;
    margin: 2vh auto;
}
.modal-course-player .modal-content {
    height: 96vh;
    border-radius: 0.5rem; /* Rounded corners help it feel like a modal */
    overflow: hidden;
    /*box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);  Deep shadow for pop effect */
}
/* ^^^ */


/* THUMBNAIL ZOOM BEHAVIOR */
.thumbnail-zoom {
    transition: transform 0.1s ease, box-shadow 0.1s ease, z-index 0s ease;
    position: relative;
    z-index: 1;
    cursor: zoom-in;
    outline: none; /* Prevents the blue browser focus ring */
}
.thumbnail-zoom:focus {
    transform: scale(3.0); /* 50px * 3.0 = 150px zoomed */
    z-index: 1050; /* Bootstrap modal level so it pops over everything */
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4) !important;
    cursor: zoom-out;
}
/* ^^^ */


/* BS TABLE ADJUSTMENTS (AND ADDITIONS) */
.table th {
    color: #3D4149;
    background-color: #CDCFD1;
}
/* SPECIAL HANDLING FOR sticky-top (because border collapse occurs) */
/* Apply ONLY the bottom border to ALL sticky header cells */
.table thead.sticky-top th {
    box-shadow: inset 0 -2px 0 var(--bs-secondary);
}
/* For all cells EXCEPT the last one, apply BOTH the bottom border AND the right divider */
.table thead.sticky-top th:not(:last-child) {
    box-shadow:
        inset 0 -2px 0 var(--bs-secondary),           /* The bottom border */
        inset -1px 0 0 var(--bs-table-border-color); /* The vertical divider */
}
/* ^^^ */
.table-sm td, .table-sm th {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.table {
    --bs-table-striped-bg: rgba(0, 0, 0, 0.04);
}
.table.table-striped > tbody > tr:nth-of-type(odd) > * {
	--bs-table-accent-bg: var(--bs-table-striped-bg);
}
.table > thead > tr > th.w-5,
.table > tbody > tr > td.w-5 {
    width: 5%;
}
.table > thead > tr > th.w-10,
.table > tbody > tr > td.w-10 {
    width: 10%;
}
.table > thead > tr > th.w-15,
.table > tbody > tr > td.w-15 {
    width: 15%;
}
.table > thead > tr > th.w-20,
.table > tbody > tr > td.w-20 {
    width: 20%;
}
.table > thead > tr > th.w-25,
.table > tbody > tr > td.w-25 {
    width: 25%;
}
.table > thead > tr > th.w-30,
.table > tbody > tr > td.w-30 {
    width: 30%;
}
.table > thead > tr > th.w-35,
.table > tbody > tr > td.w-35 {
    width: 35%;
}
.table > thead > tr > th.w-40,
.table > tbody > tr > td.w-40 {
    width: 40%;
}
.table > thead > tr > th.w-45,
.table > tbody > tr > td.w-45 {
    width: 45%;
}
.table > thead > tr > th.w-50,
.table > tbody > tr > td.w-50 {
    width: 50%;
}
.table > thead > tr > th.w-55,
.table > tbody > tr > td.w-55 {
    width: 55%;
}
.table > thead > tr > th.w-60,
.table > tbody > tr > td.w-60 {
    width: 60%;
}
.table > thead > tr > th.w-65,
.table > tbody > tr > td.w-65 {
    width: 65%;
}
.table > thead > tr > th.w-70,
.table > tbody > tr > td.w-70 {
    width: 70%;
}
.table > thead > tr > th.w-75,
.table > tbody > tr > td.w-75 {
    width: 75%;
}
.table > thead > tr > th.w-80,
.table > tbody > tr > td.w-80 {
    width: 80%;
}
.table > thead > tr > th.w-85,
.table > tbody > tr > td.w-85 {
    width: 85%;
}
.table > thead > tr > th.w-90,
.table > tbody > tr > td.w-90 {
    width: 90%;
}
.table > thead > tr > th.w-95,
.table > tbody > tr > td.w-95 {
    width: 95%;
}
/* ^^^ */


/***************************/
/* MEGA MENU (EXPLORE TAB) */
/***************************/
.dropdown-mega {
  position: static;
}

.dropdown-mega .dropdown-menu {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  border: none;
  border-radius: 0.2rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.15);
  left: 0;
  right: 0;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  display: none;
}

.dropdown-mega.show .dropdown-menu {
  display: block;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* MENU CATEGORIES */
.mega-menu .categories {
  display: flex;
  gap: 2rem;
  border-bottom: 2px solid #eee;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mega-menu .category {
  padding: 0.5rem 0;
  cursor: pointer;
  font-weight: 600;
  color: #051a68;
  position: relative;
}

.mega-menu .category.active {
  color: #051a68;
}

.mega-menu .category.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: #051a68;
}

/* SUBMENU PANELS */
.mega-menu .submenu {
  display: none;
}

.mega-menu .submenu.active {
  display: flex;
  flex-wrap: wrap;
}

.mega-menu .submenu .col-md-4 {
  padding: 0 1rem;
}

.mega-menu .submenu a {
  display: block;
  padding: 0.35rem 0;
  color: #0072ee;
  text-decoration: none;
}

.mega-menu .submenu a:hover {
  text-decoration: underline;
  color: #051a68;
}

.mega-menu .submenu-header {
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.mega-menu .submenu-header span {
  font-size: 1.25rem;
  font-weight: 600;
  color: #051a68;
  margin-right: 0.5rem;
}

.mega-menu .submenu-header .view-all-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: #0072ee;
  text-decoration: none;
}

.mega-menu .submenu-header .view-all-link:hover {
  text-decoration: underline;
  color: #163a75;
}

/* MOBILE MEGA MENU BACK BUTTON */
.mega-menu .back-btn {
  display: none;
  margin-bottom: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #0072ee;
}

/* MENU MEDIA QUERIES */
@media (max-width: 991px) {
  .mega-menu .back-btn {
    display: block;
  }

  .mega-menu .categories {
    flex-direction: column;
    gap: 1rem;
  }

  .mega-menu .submenu.active {
    flex-direction: column;
  }

  .mega-menu .submenu .col-md-4 {
    border: none !important;
    padding: 0;
  }
}