/* Only affect menu fonts color  with class suffix */
.mainmenu-yellow a {
  color: #FFD700 !important;
}
.mainmenu-yellow a:hover {
  color: #ffeb3b !important;
}

/* Limit logo height in the header/menu */
.container-header .navbar-brand img,
.mod-menu img {
  max-height: 40px; 
  height: auto;
  width: auto;
}

/* ===== Custom Cassiopeia Color Scheme ===== */
:root {
  /* Primary brand color (accent) */
  --cassiopeia-color-primary: #F97316; /* Orange */
  --cassiopeia-color-hover: #ea580c;   /* Darker orange for hover states */
  --cassiopeia-color-link: #F97316;

  /* Secondary brand color */
  --cassiopeia-color-secondary: #10B981; /* Teal */

  /* Backgrounds */
  --template-bg-dark: #111827; /* Darkest background */
  --template-bg-light: #1F2937; /* Slightly lighter dark */

  /* Text colors */
  --template-text-dark: #F9FAFB; /* Light text for dark backgrounds */
  --template-text-light: #ffffff;
}



/* Banner container */
/* Banner container with desktop background */
.banner {
  position: relative;
  width: 100%;
  min-height: 520px;                 /* desktop banner height */
  display: grid;
  place-items: center;               /* center overlay content */
  text-align: center;
  color: #fff;

  /* Desktop background image */
  background-image: url("/images/treasuryapps-background2.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Centered overlay content */
.banner-content {
  padding: 12px 16px;
  max-width: 900px;
  box-sizing: border-box;
  z-index: 2;
}

.banner-content h2 {
  margin: 0;
  line-height: 1.2;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: #fff;                       /* ensure white text */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Mobile: swap background and reduce height ~30% */
@media (max-width: 768px) {
  .banner {
    min-height: 360px;               /* shorter mobile banner */
    background-image: url("/images/treasuryapps-background2-mobile.png");
  }

  .banner-content {
    padding: 10px 12px;
    max-width: 90%;
  }

  .banner-content h2 {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }
}





/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
/* Body text */
/* Base styles for all headings and paragraphs */
h1, h2, h3, h4, h5, h6 {
  font-size: 1.4rem; 
  margin: 10px 0;
  word-wrap: break-word;
  line-height: 1.3; 
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
}
body, p, li, span {
  font-size: 1.3rem; 
  margin: 10px 0;
  word-wrap: break-word;
  line-height: 1.2; 
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6, p {
    font-size: 1.2rem;
    text-align: left;
    padding: 0 10px;
  }
}


/* Make header layout horizontal */
.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Style the logo */
.brand-logo {
  width: 40px;
  height: 30px;
  object-fit: contain;
  margin-right: 15px;
}

/* Optional: Adjust site title next to logo */
.brand-site-title {
  font-size: 1.2em;
  margin-left: 5px;
}

/* Ensure menu aligns properly */
.navbar {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}


/* Container for multiple boxes stacking horizontally */
.custom-boxes {
  display: flex;
  flex-wrap: wrap; /* Allows boxes to stack on smaller screens */
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}


/* Individual box styling stacking horizontally*/
.custom-box {
  flex: 1 1 300px; /* Responsive width */
  display: flex;
  flex-direction: row; /* Default: horizontal layout for desktop */
  align-items: center;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  gap: 20px;  
  overflow-wrap: break-word;
}

/* Responsive stacking for mobile */
@media (max-width: 768px) {
  .custom-box {
    flex-direction: column; /* Stack vertically on smaller screens */
    align-items: flex-start;
    overflow-wrap: break-word;
  }
}

/* Image inside the box stacking horizontally*/
.custom-box img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

/* Mobile override */
@media (max-width: 768px) {
  .custom-box img {
    width: 100%;
    height: auto;
  }
}



/* Container for multiple boxes stacking vertically*/
.custom-boxesvert {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 20px; /* space between boxes */
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Individual box styling stacking vertically*/
.custom-boxvert {
  display: flex;
  flex-direction: column; 
  align-items: flex-start; /* Optional: aligns text to the left */
  gap: 20px; /* space between boxes */
  max-width: 1000px;
  margin: 0 auto;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow-wrap: break-word;
}
.custom-boxvert p {
  text-align: left;
  width: 100%; /* Ensures paragraph spans full width for left alignment */
}
/* Image inside the box stacking vertically*/
.custom-boxvert img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}
/* Mobile override */
@media (max-width: 768px) {
  .custom-boxvert img {
    width: 100%;
    height: auto;
  }
}

/* Center the image stacking vertically*/
.custom-boxvert .image-wrapper {
  display: flex;
  justify-content: center;
}


/* 📱 Responsive adjustments */
@media (max-width: 768px) {
  .box {
    flex-direction: column;
    align-items: flex-start;
  }

  .box img {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 15px;
  }
}



