html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ✅ Prevent navbar shrinking */
.navbar.navbar-inverse.navbar-static-top {
    flex: 0 0 auto;
    flex-shrink: 0;
}

/* ✅ Content area expands */
div.container {
    flex: 1 0 auto;
    min-height: 0;
}

/* ✅ Prevent footer shrinking */
footer {
    flex: 0 0 auto;
    flex-shrink: 0;
}

/* ✅ Fix float collapse if present */
div.containwr::after {
    content: "";
    display: block;
    clear: both;
}

/* Fix checkbox appearing above text (Power Pages / Foundation markup) */
.entity-form .checkbox label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  line-height: 1.2;
}

/* Ensure inner spans stay inline */
.entity-form .checkbox label > span {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2;
}

/* Remove extra spacing that pushes checkbox upward */
.entity-form .checkbox input[type="checkbox"] {
  margin: 0 !important;
  transform: translateY(3px);
}

/* Remove the separator line after each Profile row (table-based forms) */
.entity-form table tr,
.entity-form table tr td,
.entity-form table tr th {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Navigation Bar */

/* Remove external-link icon added via ::after */
.navbar-nav a::after {
    content: none !important;
}

.navbar {
  background-color: #0F2A3A !important;
  padding: 7px 0;
  border-bottom: 1px solid #0F2939;
}

.navbar a,
.navbar-brand,
.navbar-nav > li > a {
  color: #ffffff !important;
  
}

.navbar a:hover,
.navbar a:focus,
.navbar-nav > .active > a {
  color: #e5e7eb !important; /* soft white */
  background-color: transparent !important;
}

/*.navbar-toggle .icon-bar {
  background-color: #111;
}*/

.navbar .dropdown-menu {
  background-color: #0F2A3A !important;
  border: 1px solid #374151;
}

.navbar .dropdown-menu > li > a {
  color: #ffffff !important;
}

.navbar-nav > li > a.dropdown-toggle {
  position: relative;
}

.navbar-nav > li > a.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: #38bdf8;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.navbar-nav > li > a.dropdown-toggle:hover::after {
  transform: scaleX(1);
}

.custom-tile:hover{
  background-color:#f8fafc !important;
  box-shadow:0 14px 28px rgba(0,0,0,.12) !important;
  transform:translateY(-3px);
}
.custom-tile:hover a{
  color:#0b3d91 !important;
}

/* For Footer */
.site-footer {
  width: 100%;
  background-color: #0F2A3A;
  border-top: 1px solid #e5e7eb;
  font-family: Arial, sans-serif;
  color: #ffffff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columns */
  gap: 24px;
  align-items: start;
}

.footer-col {
  text-align: left;   /* force left alignment */
}

.footer-col h4,
.footer-col p {
  margin-top: 0;
}

.footer-col p {
  margin: 0 0 6px 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
}

.footer-col a::after {
    content: none !important;
}

.footer-col a:hover {
  color: #f5b400;
}

.footer-p-heading
{
  position: relative;
  font-weight: 500;
  margin: 0 0 6px 0;
  color: #f5b400 !important;           /* yellow text */
  font-size: 12px;
  line-height: 1.4;
}

.footer-p-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;              /* underline length */
  height: 2px;
  background-color: #f5b400;
}

/* Mobile: stack columns */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Authenticated users tiles */
.tile-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 22px;
  column-gap: 22px;
  max-width: 900px;
  margin: 30px auto;
}

.custom-tile {
  width: 250px;
  height: 175px;
  background-color: #ffffff;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative !important;
  overflow: visible;
  color:  #0F2A3A !important;
  padding-bottom: 44px !important;
}


.custom-tile h2 {
  margin: 0px 0 0 0;   /* normal flow, right below image */
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #0F2A3A !important;
}

/* Title link */
.custom-tile h2 a {
 color: #0F2A3A !important;
  text-decoration: none;
}

/* Description */
.custom-tile p {
  margin-top: auto;
  text-align: center;
  color: #0F2A3A !important;
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  margin: 0 !important;
  
}

.custom-tile img {
  width: 70px;          /* set size */
  display: block;
  margin: 0 auto 8px auto; /* center + space below */
}

/* Description link */
.custom-tile p a {
  color: #0F2A3A !important;
  text-decoration: none;
}

/* Hover effect */
.custom-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.custom-tile:hover h2,
.custom-tile:hover p,
.custom-tile:hover a {
  color: #0F2A3A !important; /* your hover color */
}

a:not([href*="mailto"])[href*="//"]:after {
    padding: .25em;
    display: inline-block;
    font-family: "FontAwesome";
    content: "\f08e";
}

/* ===== Page-specific tile layout (NEW) ===== */
.pg2-tile-grid{
  display: grid;
  grid-template-columns: repeat(1, minmax(350px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 30px auto;
  justify-content: center;
}

/* Tile card */
.pg2-tile{
  height: 175px;
  background-color: #ffffff;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  color: #0F2A3A !important;
  width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: center;       /* horizontal center */
  text-align: center;
}

/* Title */
.pg2-tile h2{
  margin: auto 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #0F2A3A !important;
}
.pg2-tile h2 a{
  color: #0F2A3A !important;
  text-decoration: none;
}

/* Description */
.pg2-tile p{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0;
  text-align: center;
  color: #0F2A3A !important;
}
.pg2-tile p a{
  color: #0078d4!important;   /* standard web / Microsoft blue */
    text-decoration: underline;
}

/* Hover */
.pg2-tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Mobile: 1 column */
@media (max-width: 600px){
  .pg2-tile-grid{
    grid-template-columns: 1fr;
  }
}
.pg2-tile-wrapper{
    min-height: calc(100vh - 180px); 
    display: flex;
    align-items: center;   /* vertical center */
    justify-content: center; /* horizontal center */
}

.pg2-tile h2{
  margin: 0;
  line-height: 1.3;
}

.pg2-tile p{
  margin: 6px 0 0 0;
  position: static; /* VERY IMPORTANT */
}