/*
  SACPCMP Prototype Theme
  Tweak colors/spacing via CSS variables below. Joomla-friendly: no inline styles.
*/

/* ========== CSS Variables (theme tokens) ========== */
:root {
  /* Navy – header utility bar, footer, search button, nav text */
  --navy-900: #0d2137;
  --navy-800: #132f4c;
  --navy-700: #1a3d61;
  --brand-blue: #1e4d8a;

  /* Gold/beige – portal buttons, subscribe button, accents */
  --gold-500: #c4a35a;
  --gold-600: #b8924f;
  --gold-700: #9a7b42;

  /* Neutrals */
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-500: #6c757d;
  --muted: #5a6268;

  /* Spacing (match mockup) */
  --header-utility-py: 0.5rem;
  --header-main-py: 0.75rem;
  --footer-col-py: 1.5rem;
  --footer-col-gap: 2rem;
  --container-max: 1320px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-link-spacing: 1.25rem;
}

/* ========== Base ========== */
body {
  font-family: var(--font-sans);
  color: var(--navy-900);
}

/* Focus for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* ========== Utility bar (dark blue) ========== */
.sacpcmp-utility {
  background: var(--brand-blue);
  color: var(--white);
  padding-top: var(--header-utility-py);
  padding-bottom: var(--header-utility-py);
  font-size: 0.9rem;
}

.sacpcmp-utility a {
  color: var(--white);
  text-decoration: none;
}

.sacpcmp-utility a:hover {
  color: var(--gold-500);
}

.sacpcmp-utility .utility-contact span + span {
  margin-left: 1.5rem;
}

.sacpcmp-utility .utility-contact .bi {
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* Portal login buttons */
.sacpcmp-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  background: var(--gold-500);
  color: var(--navy-900);
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sacpcmp-portal-btn:hover {
  background: var(--gold-600);
  color: var(--navy-900);
}

.sacpcmp-portal-btn .portal-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
}

.sacpcmp-portal-btn .portal-name {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.sacpcmp-portal-btn .bi {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sacpcmp-portal-btns .sacpcmp-portal-btn + .sacpcmp-portal-btn {
  margin-left: 0.75rem;
}

@media (max-width: 991.98px) {
  .sacpcmp-utility .d-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .sacpcmp-portal-btns {
    margin-top: 0.5rem;
  }
  .sacpcmp-portal-btns .sacpcmp-portal-btn + .sacpcmp-portal-btn {
    margin-left: 0.4rem;
  }
}

@media (max-width: 575.98px) {
  .sacpcmp-portal-btns {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .sacpcmp-portal-btns .sacpcmp-portal-btn + .sacpcmp-portal-btn {
    margin-left: 0;
  }
}

/* ========== Main header (white) ========== */
.sacpcmp-header {
  background: var(--white);
  padding-top: var(--header-main-py);
  padding-bottom: var(--header-main-py);
  box-shadow: 0 1px 0 var(--gray-200);
}

.sacpcmp-logo-link {
  display: inline-block;
}

.sacpcmp-logo {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Primary nav */
.sacpcmp-nav .nav-link {
  color: var(--navy-900);
  font-weight: 500;
  padding: 0.5rem 0;
  margin-left: var(--nav-link-spacing);
  margin-right: var(--nav-link-spacing);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.sacpcmp-nav .nav-link:hover {
  color: var(--navy-700);
  border-bottom-color: var(--gray-200);
}

.sacpcmp-nav .nav-link.active {
  border-bottom-color: var(--navy-900);
}

/* Search button */
.sacpcmp-search-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  color: var(--white);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.sacpcmp-search-btn:hover {
  background: var(--navy-900);
  color: var(--white);
}

.sacpcmp-search-btn .bi {
  font-size: 1.1rem;
}

/* Navbar collapse (mobile) */
.navbar-collapse {
  background: var(--white);
}

@media (max-width: 991.98px) {
  .sacpcmp-nav .nav-link {
    margin-left: 0;
    margin-right: 0;
    padding: 0.6rem 0;
  }
  .navbar-collapse {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* ========== Site notice (temporary holding / urgent maintenance) ========== */
.site-notice {
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-notice.is-dismissed {
  display: none;
}

.site-notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  padding-right: 2.5rem;
}

.site-notice-text {
  flex: 1;
}

.site-notice-dismiss {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--navy-900);
  padding: 0.35rem;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.site-notice-dismiss:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--navy-900);
}

.site-notice-dismiss .bi {
  font-size: 1.1rem;
}

@media (max-width: 575.98px) {
  .site-notice-inner {
    padding-right: 2rem;
  }
}

/* ========== Main content (single-column flow) ========== */
.sacpcmp-main {
  padding: 0;
}

/* Section spacing */
.section-block {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (max-width: 767.98px) {
  .section-block {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* ========== Hero (search banner) ========== */
.hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 3rem 0;
  background-image:
    linear-gradient(
      rgba(7, 28, 53, 0.75),
      rgba(7, 28, 53, 0.75)
    ),
    url("../img/about-counter-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  z-index: 1;
}

.hero-headline {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.hero-search-form {
  display: flex;
  max-width: 560px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 1rem;
  min-width: 0;
}

.hero-search-input::placeholder {
  color: var(--gray-500);
}

.hero-search-btn {
  width: 52px;
  min-width: 52px;
  padding: 0;
  background: var(--navy-800);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-search-btn:hover {
  background: var(--navy-900);
  color: var(--white);
}

.hero-search-btn .bi {
  font-size: 1.25rem;
}

@media (max-width: 575.98px) {
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  .hero-search-form {
    flex-direction: column;
    max-width: none;
  }
  .hero-search-btn {
    width: 100%;
    min-width: 0;
    padding: 0.65rem;
  }
}

/* ========== Section title (shared) ========== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.section-title-accent {
  width: 60px;
  height: 3px;
  background: var(--gold-500);
  margin: 0 auto 2rem;
}

.section-title:not(.text-center) + .section-title-accent {
  margin-left: 0;
  margin-right: auto;
}

/* ========== Registration Hub ========== */
.registration-hub .hub-card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.registration-hub .hub-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hub-card-icon {
  color: var(--gold-600);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hub-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.hub-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.hub-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-card-actions .btn {
  font-weight: 500;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-gold:hover {
  background: var(--gold-600);
  color: var(--navy-900);
}

/* ========== News & Publications ========== */
.news-publications h2,
.news-publications .section-title{
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.news-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: .75rem;
}

.news-publications .subheading,
.news-publications h3,
.news-publications h4{
  font-weight: 700;
  margin-bottom: .75rem;
}

.news-publications .subheading:after,
.news-publications .news-subtitle:after,
.news-publications .magazine-title:after{
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: .5rem;
  border-radius: 3px;
  background: var(--gold-500, #caa34d);
  opacity: .9;
}

.news-list {
  margin-bottom: 0;
}

.news-list li {
  margin-bottom: 1rem;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--navy-900);
  text-decoration: none;
  transition: color 0.2s;
}

.news-item:hover {
  color: var(--navy-700);
  text-decoration: none;
}

.news-date-badge {
  flex-shrink: 0;
  display: inline-block;
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.news-headline {
  font-weight: 500;
  line-height: 1.4;
}

.news-publications .news-item{
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.news-publications .news-date{
  width: 48px;
  min-width: 48px;
  padding: .4rem 0;
  background: #0b2a4a;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.news-publications .news-day{
  display: block;
  font-size: .95rem;
}

.news-publications .news-month{
  display: block;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .9;
}

.news-publications .magazine-feature{
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.news-publications .magazine-cover-wrap{
  width: 280px;
  flex: 0 0 auto;
}

.news-publications .magazine-cover-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0,0,0,.30);
  transform: rotate(-10deg);
  transform-origin: center;
}

.news-publications .magazine-meta{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .6rem;
}

.news-publications .magazine-title{
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.news-publications .magazine-download{
  padding: .35rem .75rem;
  font-size: .8rem;
}

/* Scoped button polish for this section only */
.news-publications .btn{
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.news-publications .btn-gold{
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.news-publications .btn-gold:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
  filter: brightness(0.98);
}

.news-publications .btn-gold:focus-visible{
  outline: 3px solid rgba(202, 163, 77, .35);
  outline-offset: 2px;
}

@media (max-width: 992px){
  .news-publications .magazine-cover-wrap{
    width: 240px;
  }
}

@media (max-width: 768px){
  .news-publications .magazine-cover-wrap{
    width: 210px;
  }
}

@media (max-width: 576px){
  .news-publications .magazine-feature{
    gap: 1rem;
  }
  .news-publications .magazine-cover-wrap{
    width: 170px;
  }
  .news-publications .magazine-cover-img{
    transform: rotate(-7deg);
  }
}

.magazine-placeholder {
  background: linear-gradient(145deg, var(--navy-700) 0%, var(--navy-800) 100%);
  aspect-ratio: 3 / 4;
  max-width: 220px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: rotate(-2deg);
  overflow: hidden;
}

.magazine-cover{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.magazine-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-500);
  color: var(--navy-900);
  border: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, color 0.2s;
}

.magazine-download-btn:hover {
  background: var(--gold-600);
  color: var(--navy-900);
  text-decoration: none;
}

/* ========== Visual Document Spotlight ========== */
.doc-spotlight .doc-card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  color: var(--navy-900);
}

.doc-spotlight .doc-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: var(--navy-900);
}

.doc-card-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.doc-card-image-1 {
  background: linear-gradient(145deg, #2d5a7b 0%, #1a3d61 50%, #0d2137 100%);
}

.doc-card-image-2 {
  background: linear-gradient(145deg, #3d6b8c 0%, #2d5a7b 50%, #1a3d61 100%);
}

.doc-card-image-3 {
  background: linear-gradient(145deg, #4a7a9a 0%, #3d6b8c 50%, #2d5a7b 100%);
}

.doc-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.doc-card-download {
  font-size: 0.875rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.doc-card:hover .doc-card-download {
  color: var(--navy-700);
}

/* ========== CPD CTA strip ========== */
.cpd-cta {
  background: var(--gray-100);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.cpd-cta-text {
  font-size: 1rem;
  color: var(--navy-900);
}

.cpd-cta-link {
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cpd-cta-link:hover {
  border-bottom-color: var(--navy-900);
  color: var(--navy-900);
}

.cpd-cta-link .bi {
  margin-left: 0.2rem;
}

/* ========== Footer ========== */
.sacpcmp-footer {
  background: var(--brand-blue);
  color: var(--gold-500);
  padding-top: 2.5rem;
  padding-bottom: 0;
}

.sacpcmp-footer a {
  color: var(--gold-500);
  text-decoration: none;
}

.sacpcmp-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.sacpcmp-footer .footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.sacpcmp-footer .footer-col {
  padding-bottom: var(--footer-col-py);
}

.sacpcmp-footer .footer-col ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sacpcmp-footer .footer-col ul li {
  margin-bottom: 0.4rem;
}

.sacpcmp-footer .footer-col ul li::before {
  content: "\2022";
  color: var(--gold-500);
  margin-right: 0.5rem;
}

.sacpcmp-footer .footer-col.contact ul li::before {
  content: none;
  margin-right: 0;
}

.sacpcmp-footer .footer-col.contact .bi {
  margin-right: 0.35rem;
  vertical-align: middle;
}

.sacpcmp-footer .footer-col.contact address {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Legislative & Documents – no bullets */
.sacpcmp-footer .footer-col.legislative ul li::before {
  content: none;
  margin-right: 0;
}

/* Social icons */
.sacpcmp-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sacpcmp-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.sacpcmp-social a:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  text-decoration: none;
}

.sacpcmp-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 600;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sacpcmp-subscribe-btn:hover {
  background: var(--gold-600);
  color: var(--navy-900);
  text-decoration: none;
}

/* Bottom footer strip */
.sacpcmp-footer-bottom {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--gold-500);
}

.sacpcmp-footer-bottom a {
  color: var(--gold-500);
  text-decoration: underline;
}

.sacpcmp-footer-bottom .sep {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive footer columns */
@media (max-width: 767.98px) {
  .sacpcmp-footer .footer-col {
    padding-bottom: 1.5rem;
  }
}

/* ========== Hero maintenance notice (inside hero) ========== */
.hero-notice {
  display: inline-block;
  background: rgba(196, 163, 90, 0.92); /* --gold-500 with slight transparency */
  color: var(--navy-900);
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  margin-bottom: 1rem;
}

/* TEMP HOME OVERRIDES (.page-temphome) */
.page-temphome #site-notice {
  display: none !important;
}

/* Full-bleed shell (temphome only) */
.page-temphome .page-shell {
  width: 100%;
  max-width: none;
}

.page-temphome main,
.page-temphome header,
.page-temphome footer,
.page-temphome .sacpcmp-utility,
.page-temphome .hero,
.page-temphome .sacpcmp-footer {
  width: 100%;
  max-width: none;
}

.page-temphome .sacpcmp-portal-btns {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow-x: auto; /* last resort: allow scroll if extremely narrow */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.page-temphome .sacpcmp-portal-btns::-webkit-scrollbar { display: none; }

.page-temphome .sacpcmp-portal-btns a,
.page-temphome .sacpcmp-portal-btns button {
  flex: 0 0 auto;
  width: auto !important;
  display: inline-flex !important;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .page-temphome .sacpcmp-portal-btns {
    gap: 0.35rem;
  }
  .page-temphome .sacpcmp-portal-btn {
    padding: 0.35rem 0.5rem;
    gap: 0.4rem;
  }
  .page-temphome .sacpcmp-portal-btn .portal-label {
    font-size: 0.65rem;
  }
  .page-temphome .sacpcmp-portal-btn .portal-name {
    font-size: 0.85rem;
  }
  .page-temphome .sacpcmp-portal-btn .bi {
    font-size: 1.1rem;
  }
}

.page-temphome #sacpcmp-nav,
.page-temphome .navbar-toggler,
.page-temphome .sacpcmp-search-btn,
.page-temphome .hero-search-form {
  display: none !important;
}

.page-temphome .registration-hub,
.page-temphome .doc-spotlight,
.page-temphome .cpd-cta {
  display: none !important;
}

/* Temp home footer: force contact block left-aligned */
.page-temphome .sacpcmp-footer .footer-col.contact {
  text-align: left !important;
}

.page-temphome .sacpcmp-footer .footer-col.contact address,
.page-temphome .sacpcmp-footer .footer-col.contact ul,
.page-temphome .sacpcmp-footer .footer-col.contact li,
.page-temphome .sacpcmp-footer .footer-col.contact a {
  text-align: left !important;
}

.page-temphome .sacpcmp-footer .footer-col.contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.page-temphome .sacpcmp-footer .footer-col.contact ul li .bi {
  margin-right: 0; /* handled by flex gap */
  margin-top: 0.15rem;
}

/* Temphome layout & alignment overrides */
.page-temphome .page-shell,
.page-temphome header,
.page-temphome main,
.page-temphome footer{
  width: 100% !important;
  max-width: none !important;
}

body.page-temphome{
  overflow-x: hidden;
}

.page-temphome .sacpcmp-portal-btns{
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center !important;
  white-space: nowrap !important;
  gap: .4rem !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-temphome .sacpcmp-portal-btns::-webkit-scrollbar{
  display: none;
}

.page-temphome .sacpcmp-portal-btns > *{
  flex: 0 0 auto !important;
  width: auto !important;
}

.page-temphome .sacpcmp-portal-btns a,
.page-temphome .sacpcmp-portal-btns button{
  display: inline-flex !important;
  width: auto !important;
}

@media (max-width: 480px){
  .page-temphome .sacpcmp-portal-btns{
    gap: .35rem !important;
  }
  .page-temphome .sacpcmp-portal-btn{
    padding: .35rem .5rem !important;
  }
  .page-temphome .sacpcmp-portal-btn .portal-label{
    font-size: .65rem !important;
  }
  .page-temphome .sacpcmp-portal-btn .portal-name{
    font-size: .8rem !important;
  }
}

.page-temphome footer,
.page-temphome footer .footer-col.contact,
.page-temphome footer .footer-col.contact *{
  text-align: left !important;
}

.page-temphome footer .row.justify-content-center{
  justify-content: flex-start !important;
}
