﻿/* SRU tokens only inside elements marked with [data-sru] */
:where([data-sru]) {
  --sru-color-primary:#007055;          /* SRU Green */
  --sru-color-secondary:#ffcb0b;        /* SRU Gold */
  --sru-color-accent:#e63946;           /* Accent Red */
  --sru-color-secondary-ada:#fede00;    /* SRU ADA Gold */

  --sru-bg-white:#ffffff;
  --sru-bg-light:#f9f9f9;
  --sru-bg-gray:#e7e7e7;
  --sru-bg-dark:#1e1e1e;

  --sru-text-dark:#111111;
  --sru-text-light:#ffffff;
  --sru-text-muted:#6c757d;
  --sru-text-gray:#5f636d;

  --sru-border-color:#e0e0e0;
  --sru-link-color:var(--sru-color-primary);
  --sru-link-hover:var(--sru-color-secondary);
  --sru-link2-color:var(--sru-blue);
  --sru-link2-hover:var(--sru-blue);

  --sru-success:#198754;
  --sru-warning:#ffc107;
  --sru-danger:#dc3545;
  --sru-info:#0dcaf0;
  --sru-blue:#2946f3;
}

/* Background Utilities */
:where([data-sru]) .sru-green-background { background-color: var(--sru-color-primary); }
:where([data-sru]) .sru-gold-background { background-color: var(--sru-color-secondary); }
:where([data-sru]) .sru-accent-background { background-color: var(--sru-color-accent); }
:where([data-sru]) .sru-white-background { background-color: var(--sru-bg-white); }
:where([data-sru]) .sru-light-background { background-color: var(--sru-bg-light); }
:where([data-sru]) .sru-gray-background { background-color: var(--sru-bg-gray); }
:where([data-sru]) .sru-dark-background { background-color: var(--sru-bg-dark); }

/* Text Utilities */
:where([data-sru]) .sru-dark-text { color: var(--sru-text-dark); }
:where([data-sru]) .sru-light-text { color: var(--sru-text-light); }
:where([data-sru]) .sru-muted-text { color: var(--sru-text-muted); }
:where([data-sru]) .sru-gray-text { color: var(--sru-text-gray); }
:where([data-sru]) .sru-green-text { color: var(--sru-color-primary); }
:where([data-sru]) .sru-gold-text { color: var(--sru-color-secondary); }
:where([data-sru]) .sru-gold-text-ada { color: var(--sru-color-secondary-ada); }
:where([data-sru]) .sru-accent-text { color: var(--sru-color-accent); }
:where([data-sru]) .sru-dark-text-button:hover { color: var(--sru-text-dark); }

/* Border Utility */
:where([data-sru]) .sru-border { border-color: var(--sru-border-color); }

/* Link Utilities */
:where([data-sru]) .sru-link { color: var(--sru-link-color); }
:where([data-sru]) .sru-link:hover { color: var(--sru-link-hover); }
:where([data-sru]) .sru-link2 { color: var(--sru-link2-color); text-decoration: underline; }
:where([data-sru]) .sru-link2:hover { color: var(--sru-link2-hover); }

/* State Backgrounds */
:where([data-sru]) .sru-success-background { background-color: var(--sru-success); }
:where([data-sru]) .sru-warning-background { background-color: var(--sru-warning); }
:where([data-sru]) .sru-danger-background { background-color: var(--sru-danger); }
:where([data-sru]) .sru-info-background { background-color: var(--sru-info); }

/* Buttons */
:where([data-sru]) .btn.btn-sru-gold { background-color: var(--sru-color-secondary); color: var(--sru-text-dark); }
:where([data-sru]) .btn.btn-sru-gold:hover { background-color: var(--sru-color-primary); }

/* Border Colors */
:where([data-sru]) .border-sru-green-wide { border-color: var(--sru-color-primary) !important; border-width: 3px !important; }

/* Base text color only within scoped chrome */
header[data-sru], footer[data-sru] { color: var(--sru-text-gray); }

/* List styles (scoped) */
:where([data-sru]) ul li { list-style-type: disc; }
:where([data-sru]) li.dropdown,
:where([data-sru]) li.sub-title,
:where([data-sru]) .mega-menu ul li { list-style-type: none; }

/* ===== Header styling ===== */
@media (min-width: 992px) {
  :where([data-sru]) .navbar li.nav-item.dropdown { padding-bottom: 1rem; list-style: unset; }
  :where([data-sru]) .mega-menu ul li { padding-bottom: .5rem; list-style: unset; }
}

:where([data-sru]) .navbar .navbar-nav .dropdown .dropdown-menu {
  padding-top: 40px; padding-bottom: 35px; border-bottom: 2px solid #ffcb0b;
}
:where([data-sru]) .navbar-nav { margin-top: 1rem; }

header[data-sru] .navbar { background-color: var(--sru-color-primary); }

:where([data-sru]) .submenu-light { background-color: var(--sru-color-primary) !important; }
:where([data-sru]) .header-demo.navbar .navbar-nav .nav-link { color: var(--sru-text-dark); }

/* search icon */
:where([data-sru]) .header-light .header-icon .icon > a { color: var(--sru-text-light); }
:where([data-sru]) .header-light .header-icon .icon > a:hover { color: var(--sru-color-secondary); opacity: 1; }
:where([data-sru]) .header-icon .icon > a { font-size: 1.5em; }

/* mysru icon group */
:where([data-sru]) .header-light .header-icon .icon .header-language > a,
:where([data-sru]) .header-light .header-icon .icon .header-cart > a,
:where([data-sru]) .header-light .header-icon .icon .header-account > a { color: var(--sru-text-light); }
:where([data-sru]) .header-light .header-icon .icon .header-language > a:hover,
:where([data-sru]) .header-light .header-icon .icon .header-cart > a:hover,
:where([data-sru]) .header-light .header-icon .icon .header-account > a:hover { color: var(--sru-color-secondary); opacity: 1; }

@media (min-width: 992px) {
  header[data-sru] .container-fluid { padding-left: 20px; padding-right: 20px; }
}

@media (min-width: 992px) {
  :where([data-sru]) .header-demo.navbar .navbar-nav .nav-link { color: var(--sru-text-light); }

  :where([data-sru]) .nav-link .dropdown-icon { transition: transform 0.3s ease; }
  :where([data-sru]) .nav-item.dropdown:hover > .dropdown-menu { display: block; visibility: visible; opacity: 1; }
  :where([data-sru]) .nav-item.dropdown:hover .dropdown-icon { transform: rotate(180deg); }

  :where([data-sru]) .navbar-nav > .nav-item .nav-link:not(.dropdown-toggle-icon):hover {
    text-decoration: underline; color: #ffcb0b;
  }

  :where([data-sru]) .nav-link-wrapper .dropdown-toggle-icon { padding-left: 2px; margin-left: 0; }

  /* fixes weird down arrow margin */
  :where([data-sru]) .ms-1 { margin-left: .1rem !important; }

  /* Tighten spacing */
  :where([data-sru]) .nav-link-wrapper .dropdown-toggle-icon { margin-left: -.55em !important; }
}
@media (min-width: 1200px) {
  :where([data-sru]) .nav-link-wrapper .dropdown-toggle-icon { margin-left: -1.2em !important; }
}

@media (min-width: 992px) {
  :where([data-sru]) .dropdown-icon { transition: transform 0.3s ease; }
  :where([data-sru]) .dropdown-icon.rotated { transform: rotate(180deg); }
}

/* change non link dropdown title color */
:where([data-sru]) .navbar .navbar-nav .submenu-content ul .sub-title { color: var(--sru-color-primary); }

/* text utility */
:where([data-sru]) .text-sru-primary { color: #007055; }

@media (min-width: 992px) {
  :where([data-sru]) .navbar .navbar-nav .submenu-content ul .sub-title { font-size: 1.5em; }
  :where([data-sru]) .navbar .navbar-nav .dropdown .dropdown-menu a { color: var(--medium-gray); font-size: 1.05em; }
}

:where([data-sru]) .nav-link:hover i { text-decoration: none !important; }

/* MySRU icon */
:where([data-sru]) .icon-mysru { width: 3.5em; height: 3.5em; vertical-align: middle; fill: currentColor; }

/* ===== Utility bar / CTA ===== */
:where([data-sru]) .sru-cta-top { display: flex; padding: 0px !important; }
:where([data-sru]) .sru-cta-top a {
  display:flex; align-items:center; justify-content:center;
  padding:6px 14px !important; border-radius:0; font-weight:600;
  color:#000 !important; text-decoration:none; background-color:var(--sru-color-secondary);
  transition: background-color .2s ease, color .2s ease; text-align:center; min-width:auto;
  border-left:1px solid; border-bottom:1px solid;
}
:where([data-sru]) .sru-cta-top a:nth-child(3) { border-right: 1px solid; }

@media (max-width: 480px) {
  :where([data-sru]) .sru-cta-top a { padding:6px 10px !important; }
}
@media (max-width: 420px) {
  :where([data-sru]) .sru-cta-top a { padding:6px 4px !important; }
}
@media (min-width: 992px) {
  :where([data-sru]) .sru-cta-top a { min-width:125px; }
}
:where([data-sru]) .sru-cta-top a:hover {
  filter: brightness(1.10); box-shadow: 0 6px 16px rgba(255,203,11,.1);
  background-color: var(--sru-bg-gray);
}

/* Utility bar */
:where([data-sru]) .header-top-bar {
  position: fixed; top:0; left:0; width:100%; z-index:1100; height:42px;
  background-color: var(--sru-bg-dark); display:flex; align-items:center; justify-content:center;
}
:where([data-sru]) .header-top-bar .container-fluid { padding-left:15px !important; padding-right:0px !important;}
:where([data-sru]) .header-top-bar .row { width:100%; margin:0; }
:where([data-sru]) .header-top-bar .col-left,
:where([data-sru]) .header-top-bar .col-right { display:flex; align-items:center; justify-content:center; height:42px; }

@media (min-width: 768px) {
  :where([data-sru]) .header-top-bar .col-left { justify-content:flex-start; }
  :where([data-sru]) .header-top-bar .col-right { justify-content:flex-end; }
}

/* Push primary nav down below utility bar (desktop) */
@media (min-width: 992px) {
  header[data-sru]:not(.sticky):not(.sticky-active) .navbar { margin-top: 42px !important; }
  header[data-sru].sticky.sticky-active .navbar { margin-top: 42px !important; }
  header[data-sru].sticky .navbar { margin-top: 0 !important; }
}

/* Tablet & mobile */
@media (max-width: 991px) {
  :where([data-sru]) .header-top-bar { position: relative; }
  header[data-sru] .navbar { padding-top: 42px !important; }
}

/* Small mobile */
@media (max-width: 767px) {
  :where([data-sru]) .header-top-bar { display:flex !important; height:42px !important; }
  header[data-sru] .navbar { padding-top: 42px !important; }
}

/* spacing fixes */
:where([data-sru]) .header-top-bar .container-fluid .row .col-auto.d-flex.justify-content-end a.ms-3 { margin-left: 1rem !important; }
:where([data-sru]) .header-top-bar .col-auto.d-flex:not(.sru-cta-top) a { margin-right: 1rem !important; }

/* Utility nav styles when header becomes sticky */
header[data-sru].sticky.sticky-active .header-top-bar { background-color: var(--sru-bg-gray); }
header[data-sru].sticky.sticky-active .header-top-bar a { color: var(--sru-text-dark) !important; }

:where([data-sru]) .utility-left button,
:where([data-sru]) .utility-left a { white-space: nowrap; }

/* Mobile dropdown for utility nav */
@media (max-width: 991px) {
  :where([data-sru]) .utility-left { position: relative; display:flex; align-items:center; }
  :where([data-sru]) .utility-left .utility-dropdown {
    display:none; position:absolute; top:42px; left:0; width:100%;
    background-color: var(--sru-bg-dark); flex-direction:column; padding:.5rem 0; z-index:1000;
  }
  :where([data-sru]) .utility-left.open .utility-dropdown { display:flex; }
  :where([data-sru]) .utility-left .utility-dropdown a {
    display:block; padding:.5rem 1rem; color:#fff !important; text-align:left; text-decoration:none;
    border-top:1px solid rgba(255,255,255,.1);
  }
  :where([data-sru]) .utility-left .menu-toggle { cursor:pointer; padding:.5rem 1rem; color:#fff !important; }
}

/* Remove sticky nav on mobile */
@media (max-width: 991px) {
  header[data-sru].sticky.sticky-active [data-header-hover="light"] { display:none; }
}

/* header program masthead fix */
@media (max-width: 991px) {
  :where([data-sru]) .header-position-mobile-fix { margin-top:132px !important; }
}

/* remove odd opacity on nav link hovers */
:where([data-sru]) .navbar .navbar-nav .nav-item:hover .nav-link,
:where([data-sru]) .navbar .navbar-nav .nav-item.active .nav-link { opacity: 1; }

/* ===== Footer styling (scoped to the footer element itself) ===== */
footer[data-sru].footer-demo {
  position: relative;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

/* Overlay over the background image */
footer[data-sru].footer-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 112, 85, 0.92);
  z-index: 0;
  pointer-events: none;
}

/* Ensure content sits above overlay */
footer[data-sru].footer-demo > .container {
  position: relative;
  z-index: 1;
}

/* Optional: shift background a bit toward top like your comment implied */
footer[data-sru].footer-demo { background-position: center top; }

/* Copyright color */
footer[data-sru] .col-lg-5.text-lg-end p.fs-13.lh-22 { color: #ffffff; }

/* Footer headings (“Join SRU”, “Explore SRU”) */
footer[data-sru] .col-lg-2.text-lg-start > span {
  color: #ffcb0b !important;
  font-size: 1.2em;
  text-transform: none !important;
}

/* Footer links */
footer[data-sru] .col-lg-2 ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer[data-sru] .col-lg-2 ul li a:hover {
  color: #ffcb0b;
  text-decoration: underline;
}

/* Highlight span in big headline */
footer[data-sru] .bg-highlight-footer {
  background-color: #ffcb0b;
  color: #000000;
  font-weight: 700;
  padding-left: .5rem;
  padding-right: .5rem;
  text-transform: none;
  line-height: 4rem;
}

/* Image max height */
footer[data-sru].footer-demo img { max-height: 250px !important; }

/* Links inside the left content column */
footer[data-sru] .col-lg-5 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer[data-sru] .col-lg-5 a:hover { color: #ffcb0b; text-decoration: underline; }

/* Paragraph color on the right side */
footer[data-sru] .col-lg-7 p.fs-13.lh-22 { color: #ffffff; }

/* Social row position */
footer[data-sru] .elements-social { position: relative; top: -50px; padding: 10px; }

/* Social hover color accents */
footer[data-sru] .social-icon-style-09 ul.light li a:hover { border-color: var(--sru-color-secondary); }
footer[data-sru] .social-icon-style-09 ul.light li a span { background-color: var(--sru-color-secondary); }

/* Footer list spacing */
footer[data-sru] .footer-demo ul li {
  padding: 5px 0 !important;
  line-height: 1.4 !important;
  list-style: none !important;
}

/* Legal footer links */
footer[data-sru] .footer-legal-links {
  list-style: none;
  margin: 0;
  padding: 15px 0;
  display: flex;
  flex-wrap: wrap;
}
footer[data-sru] .footer-legal-links li { display: flex; align-items: center; }
footer[data-sru] .footer-legal-links li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: .9em;
  background: #fff;
  margin: 0 8px;
}
footer[data-sru] .footer-legal-links a { color: #fff; font-size: 13px; text-decoration: none; }
footer[data-sru] .footer-legal-links a:hover { text-decoration: underline; }


/* ===== Accessibility (scoped) ===== */
:where([data-sru]) :focus-visible {
  outline:none; box-shadow:0 0 0 3px #2946f3; outline-offset:2px;
}
:where([data-sru]) button:focus-visible,
:where([data-sru]) a:focus-visible,
:where([data-sru]) input:focus-visible,
:where([data-sru]) textarea:focus-visible,
:where([data-sru]) select:focus-visible {
  outline:none; box-shadow:0 0 0 3px #2946f3; outline-offset:2px;
}
:where([data-sru]) .navbar a:focus-visible,
:where([data-sru]) .navbar .nav-link:focus-visible {
  outline:none !important; box-shadow:0 0 0 3px #2946f3 !important; outline-offset:2px;
}

/* Skip links (scoped to the skip-links nav we marked with data-sru) */
:where([data-sru]).skip-links { position:absolute; left:-9999px; top:auto; }
:where([data-sru]).skip-links a:focus {
  position:fixed; left:1rem; top:1rem;
  background:#fff; color:#000;
  padding:.5rem .75rem; border:2px solid #007055; border-radius:.25rem;
  z-index:10000; text-decoration:none;
}

header[data-sru] .navbar-toggler .navbar-toggler-line { 
  background: #fff !important;   /* use background to beat background/background-color */
}

/* Footer-only h3 (scoped) */
footer.footer-demo[data-sru] h3,
footer.footer-demo[data-sru] .h3 {
  font-size: 2.813rem;
  line-height: 3.125rem;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
  font-weight: inherit;
}


/*fix mobile blah*/

/* Make the mobile nav panel scrollable inside the header scope */
@media (max-width: 991.98px) {
  header[data-sru] .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;               /* stretch full width */
    width: 100%;
    /* adjust 72px if your header is taller/shorter on mobile */
    max-height: calc(100vh - 72px);
    overflow-y: auto !important;         /* <-- key fix */
    -webkit-overflow-scrolling: touch;   /* smooth iOS scroll */
    overscroll-behavior: contain;        /* keep scrolling contained */
    z-index: 100;                       /* stay above page content */
  }

  /* optional: make the inner list scroll naturally too */
  header[data-sru] .navbar-collapse .navbar-nav {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 400px) {
  header[data-sru] .navbar .container-fluid > .col-lg-2.text-end.xs-pe-0 > .col-auto.pe-lg-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/*not scoped fixes - might have to revisit*/

.fs-14 {
  font-size: 14px;
}

.ls-minus-1px {
  letter-spacing: -1px !important;
}


.footer-demo ul li {
  padding: 5px 0;
  line-height: 1.4;
  list-style: none;
}

a.nav-link.pe-1 {
  z-index: 1;
}

header[data-sru]:not(.sticky):not(.sticky-active) .navbar {
    border-bottom: 3px #ffcb0b solid;
  }

@media screen and (min-width: 767px){
header[data-sru]:not(.sticky):not(.sticky-active) .navbar {
    border-bottom: 4px #ffcb0b solid;
  }
}
  
body, html{
  background-image: none;
}

.billboards {
  background-image: url(../img/crossword.jpg);
}

.masthead-video {
  height: calc(100vh - .5em);
}

@media screen and (min-width: 1024px) {
  .masthead-video {
    height: calc(100vh - 4.9em);
  }
}