/* Early Black Friday ticker + popup — resources/views/partials/sale-promo.blade.php.
   Black + gold = the sale; Hofstra navy (#25295f) stays the site's own colour. */

/* ---------- Ticker ---------- */
.hc-ticker { background: #111; color: #fff; font-family: Manrope, "Open Sans", sans-serif; font-size: 13.5px; line-height: 1.4; position: relative; z-index: 20; }
.hc-ticker-in { display: flex; align-items: center; gap: 14px; max-width: 1200px; margin: 0 auto; padding: 8px 16px; min-height: 42px; }
.hc-ticker-flag { flex: none; background: #f5c21b; color: #111; font-weight: 800; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.hc-ticker-track { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.hc-ticker-run { display: inline-flex; white-space: nowrap; animation: hc-ticker-scroll 38s linear infinite; }
.hc-ticker:hover .hc-ticker-run, .hc-ticker:focus-within .hc-ticker-run { animation-play-state: paused; }
.hc-ticker-item { padding: 0 22px; position: relative; color: #e5e7eb; }
.hc-ticker-item::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #f5c21b; }
.hc-ticker-item b { color: #f5c21b; font-weight: 800; }
.hc-ticker-item s { color: #9ca3af; margin-left: 2px; }
@keyframes hc-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hc-ticker-cta { flex: none; border: 0; border-radius: 6px; background: #f5c21b; color: #111; font-weight: 800; font-size: 13px; padding: 6px 14px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.hc-ticker-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -2px rgba(245, 194, 27, .5); }
.hc-ticker-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
    /* one row on phones: scrolling offer + button (no countdown since 2026-11-16) */
    .hc-ticker-in { gap: 10px; padding: 7px 12px; }
    .hc-ticker-flag { display: none; }
    .hc-ticker-cta { padding: 5px 12px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .hc-ticker-run { animation: none; }
}

/* ---------- Popup ---------- */
.hc-sale-modal[hidden] { display: none; }
.hc-sale-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: Manrope, "Open Sans", sans-serif; }
.hc-sale-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 30, .62); animation: hc-sale-fade .2s ease-out; }
.hc-sale-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .45); animation: hc-sale-rise .25s ease-out; outline: none; }
.hc-sale-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 1; }
.hc-sale-x:hover { background: rgba(255, 255, 255, .22); }
.hc-sale-x:focus-visible { outline: 2px solid #f5c21b; outline-offset: 2px; }
.hc-sale-head { background: #111; color: #fff; padding: 26px 26px 22px; border-radius: 14px 14px 0 0; }
.hc-sale-eyebrow { display: inline-block; background: #f5c21b; color: #111; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; border-radius: 999px; padding: 4px 11px; }
.hc-sale-dialog .hc-sale-title { color: #fff; font-size: 26px; line-height: 1.2; font-weight: 800; margin: 12px 0 8px; letter-spacing: -.4px; padding-right: 24px; }
.hc-sale-lead { color: #d1d5db; font-size: 14.5px; line-height: 1.55; margin: 0; }
.hc-sale-lead b { color: #f5c21b; }
.hc-sale-list { list-style: none; margin: 0; padding: 8px 26px; }
.hc-sale-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eceef3; }
.hc-sale-item:last-child { border-bottom: 0; }
.hc-sale-item-main { flex: 1 1 auto; min-width: 0; }
.hc-sale-item-name { display: block; color: #25295f; font-weight: 800; font-size: 15px; text-decoration: none; }
.hc-sale-item-name:hover { text-decoration: underline; color: #25295f; }
.hc-sale-item-price { margin-top: 2px; font-size: 14px; color: #111; }
.hc-sale-item-price b { font-size: 17px; font-weight: 800; }
.hc-sale-item-price s { color: #9ca3af; margin: 0 4px; }
.hc-sale-item-off { display: inline-block; background: #fef3c7; color: #92400e; font-weight: 800; font-size: 11.5px; border-radius: 999px; padding: 1px 8px; }
.hc-sale-item-cta { flex: none; background: #25295f; color: #fff; font-weight: 800; font-size: 13.5px; text-decoration: none; border-radius: 8px; padding: 10px 14px; white-space: nowrap; transition: background .15s, transform .15s; }
.hc-sale-item-cta:hover { background: #111; color: #f5c21b; text-decoration: none; transform: translateY(-1px); }
.hc-sale-item-cta:focus-visible { outline: 2px solid #f5c21b; outline-offset: 2px; }
.hc-sale-foot { margin: 0; padding: 12px 26px 22px; font-size: 12.5px; color: #6b7280; line-height: 1.5; }
@media (max-width: 480px) {
    .hc-sale-head { padding: 22px 18px 18px; }
    .hc-sale-dialog .hc-sale-title { font-size: 22px; }
    .hc-sale-list { padding: 4px 18px; }
    .hc-sale-item { flex-wrap: wrap; gap: 10px; }
    .hc-sale-item-cta { flex: 1 1 100%; text-align: center; }
    .hc-sale-foot { padding: 10px 18px 18px; }
}
@keyframes hc-sale-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hc-sale-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .hc-sale-backdrop, .hc-sale-dialog { animation: none; }
}
body.hc-sale-open { overflow: hidden; }
.hc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Bootcamps menu sale tags (partials/header.blade.php) ---------- */
.hc-nav-sale { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: #f5c21b; color: #111; font-size: 9.5px; font-weight: 800; letter-spacing: .6px; line-height: 1.35; text-transform: uppercase; vertical-align: 2px; }
.hc-nav-off { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #111; color: #f5c21b; font-size: 10.5px; font-weight: 800; line-height: 1.5; white-space: nowrap; vertical-align: 1px; text-transform: none; letter-spacing: 0; }
/* Desktop: the nav row has no spare width — an inline pill wrapped the whole
   menu onto a second row and pushed the cart icon off it. Float the pill as a
   badge just above the word instead, taking no width. (Bootsnav collapses to
   the mobile menu at <=1023px, where the inline pill is fine.) */
@media (min-width: 1024px) {
    #navbar-menu > ul > li.dropdown > a { position: relative; }
    #navbar-menu > ul > li.dropdown > a .hc-nav-sale { position: absolute; top: calc(50% - 26px); left: 50%; transform: translateX(-50%); margin: 0; pointer-events: none; }
}
.hc-sale-more { margin: 0 26px; padding: 12px 14px; border-radius: 8px; background: #fef9e7; border: 1px solid #f5e1a4; font-size: 13.5px; line-height: 1.5; color: #374151; }
.hc-sale-more b { color: #111; }
@media (max-width: 480px) { .hc-sale-more { margin: 0 18px; } }
/* Desktop dropdown columns are ~310px: keep the tag on the course's line
   ("Medical Coding & Billing Professional" was wrapping its tag). */
@media (min-width: 1024px) {
    /* 2-column dropdown is 620px; the longest name + tag ("Medical Coding & Billing Professional  10% off") needs 312px + 30px padding per column. */
    #navbar-menu > ul > li.dropdown > .dropdown-menu { width: 690px; min-width: 690px; }
}
