nav {
  font-size: .9rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1em;
  margin: 0 0 1em 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: none;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-size: 1.75em;
  line-height: 1.5em;
}

h3 {
  font-size: 0.9em;
  line-height: 1.5em;
}

h4 {
  font-size: 0.9em;
  line-height: 1.5em;
}

h5 {
  font-size: 0.9em;
  line-height: 1.5em;
}

h6 {
  font-size: 0.7em;
  line-height: 1.5em;
}

#banner {
  position: relative; /* instead of absolute */
  overflow: hidden;
  min-height: 70vh;
}

.slideshow {
  position: absolute; /* instead of relative */
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* make sure slides sit behind content */
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.tt-content {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background-color: rgba(21, 27, 33, 0.2);
  padding: 1.75em 0 1em 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}


.tt-inner {
  display: flex;
  flex-direction: row; 
  align-items: center;
  justify-content: space-between;
  width: 60%;
  margin: 0 auto;
  padding: 5rem;
  border-radius: 2rem;
  gap: 2rem;
}

.tt-content header {
  position: relative;
  margin: 1rem;
  padding-right: 3rem;
  border-right: 3px solid white;
  height: 100%;
  flex-direction: column;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.tt-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  font-size: clamp(1.2rem, 5vw, 2.75rem);
  margin-bottom: .33em;
  margin-right: 0;
}

.tt-description {
  color: white;
}

.tt-content-right {
  width: 50%;
}

/* --- Search Bar Container --- */
.search-bar-container {
  width: 100%;
  display: flex;
  justify-content: center; 
  margin: 1rem 0;
  padding-left: 0;
}

/* --- Search Bar --- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;   
}

/* --- Input --- */
.search-input {
  flex: 1;                    
  padding: 0.6rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  min-width: 0;     
}    

.search-input input {
  background-color: white; 
}

.search-bar button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

/* --- Responsive Scaling --- */
@media (max-width: 768px) {
  .search-bar {
    max-width: 100%; 
  }
}


.button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; 
  gap: 1.5rem;
  margin: 2rem auto 0 auto;
  padding: 1rem;
}

/* --- Button --- */
.service-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 8rem;
  height: 8rem;
  color: #5f9dd2;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.service-btn i {
  font-size: 3rem;
  margin-bottom: 0.4rem;
  font-weight: bolder;
}

.service-btn span {
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 700;
}

.service-btn:hover {
  transform: translateY(-5px);
  color: #335370;
  font-size: 125%;
}

.service-btn:active {
  border: none;
}


/* --- Responsive Scaling --- */
@media (max-width: 768px) {
  .service-btn {
    flex-wrap: wrap;    
    justify-content: center;
    overflow-x: visible; 
    gap: 1.5rem;
  }

  .service-btn span {
    font-size: 0.75rem;
    flex-wrap: wrap;
  }

  .service-btn i { 
    justify-content: center; 
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    text-align: center;
    width: 100%;
  }

  .service-btn {
    text-align: center;
    width: 10rem;
    height: 10rem;
  }

  .service-btn:hover {
  transform: translateY(-5px);
  color: #335370;
  font-size: 125%;
  }

  .service-btn a {
    font-weight: 900;
  }

  .service-btn i {
    font-size: 3rem;
    padding: 0;
    margin: 0;
  }

  .service-btn span {
    font-size: 1rem;
  }
}


.feat-notices {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  height: auto;
  min-height: 12rem;
  width: 100%;
}

.feat-notices .card-body {
  background-color: #f1f7fc;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.feat-notices .card-body:hover {
  color: #335370;
}

.feat-notices .card-body:active {
  box-shadow: none;
}


@media (min-width: 769px) and (max-width: 1024px) {
  .feat-notices {
    font-size: 1.2rem;
    min-height: 13rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .feat-notices {
    font-size: 1.1rem;
    min-height: 12rem;
  }
}

@media (max-width: 576px) {
  .feat-notices {
    font-size: 1rem;   /* shrink font */
    min-height: 10rem;
  }
}

.custom-alert {
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  margin-bottom: 15px;
  font-family: Arial, sans-serif;
}

.custom-alert.success {
  background-color: #dff0d8;
  border-color: #d0e9c6;
  color: #3c763d;
}

.custom-alert.info {
  background-color: #d9edf7;
  border-color: #bce8f1;
  color: #31708f;
}

.custom-alert.warning {
  background-color: #fcf8e3;
  border-color: #faebcc;
  color: #8a6d3b;
}

.custom-alert.danger {
  background-color: #f2dede;
  border-color: #ebccd1;
  color: #a94442;
}

.news-title {
  margin-top: 3rem;
  margin-bottom: 0;
  padding-bottom: 0;
  font-style: none;
  text-align: center;
}


@media only screen and (max-width: 1024px) {

  .tt-inner {
    flex-direction: row; /* keep side by side */
    width: 80%;
    padding: 1rem;       /* slightly smaller padding */
    gap: 1.5rem;       
    border-radius: 0;
  }

  .tt-content header {
    padding-right: 1.5rem; 
    border-right: 2px solid white; /* thinner line for smaller screens */
  }

  .tt-title {
    font-size: 2.2em;  
  }

  .tt-description {
    font-size: 1.1em;    /* adjust description text */
  }

  .tt-content-right {
    width: 100%;
    margin: auto;
  }

  .button-container .button-blue {
    font-size: 0.85em;   /* shrink button text slightly */
    height: 3.25em;
  }
}

@media only screen and (max-width: 600px) {
  .tt-content {
    padding: 0;
  }

  .tt-title {
    margin: 0;
    font-size: 2em;
    padding: 0 0 0.5rem 0;
  }

  .tt-inner {
    flex-direction: column;
    text-align: left;
    width: 100%;
    align-items: start;
  }

  .tt-inner header {
    padding: 1rem;
    border: none;
    margin: auto;
  }

  #tt-button {
    width: 85vw;
  }

  .button-container .button-blue {
    width: 100%;
  }
}

.important-info {
  display: flex;
  width: 75vw;
  margin: 2rem auto;
}

.important-info .content {
  text-align: center;
  margin: 2rem auto;
}

.important-info .content .info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  row-gap: 2rem; 
  column-gap: 5rem;
  justify-items: center;
  margin-top: 2rem;
}

.important-info .content .info-boxes .info-box {
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  max-width: 20rem;
  height: auto;
  color: #5f9dd2;
  font-size: 1.5rem;
  border: 2px solid #5f9dd2;
  border-radius: 8px;
  text-align: center;
  background-color: #f9f9f9;
  transition: transform 0.2s;
  text-decoration: none;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}


.important-info .content .important-info-boxes .important-info-box .info-box i {
  font-size: 2rem;
  text-shadow: 1px 0 #5f9dd2, 0 1px #5f9dd2;
}

.important-info .info-box:hover {
  transform: translateY(-5px);
  border-color: #31708f;
  color: #31708f;
}

.important-info .info-box:active {
  box-shadow: none;
}


.calendar-info {
  display: flex;
  width: 75vw;
  margin: 2rem auto;
}

.calendar-info .content {
  text-align: center;
  margin: 2rem auto;
  width: 75vw;
}

.calendar-info .c-info-boxes {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
}

.calendar-info .c-info-boxes .c-info-box {
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 15rem;
  height: 10rem;
  color: #31708f;
  font-size: 1.5rem;
  font-weight: 900;
  border: 2px solid #31708f;
  border-top: 40px solid #31708f;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s;
  text-decoration: none;
  background-color: #f1f7fc;  
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.calendar-info .c-info-box:hover {
  transform: translateY(-5px);
  border-color: #335370;
  color: #335370;
}

.calendar-info .c-info-box:active {
  box-shadow: none;
}


/* Tablet landscape (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .important-info .info-boxes {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 2.5rem;
  }

  .calendar-info {
    width: 100%;
  }

  .calendar-info .c-info-boxes {
    grid-template-columns: repeat(2, 1fr); /* reduce from 5 to 3 */
    gap: 2rem;
  }
}

/* Tablet portrait (577px–768px) */
@media (min-width: 577px) and (max-width: 768px) {
  .important-info .info-boxes {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    column-gap: 2rem;
  }

  .calendar-info .c-info-boxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .important-info,
  .calendar-info {
    width: 90vw; /* give more breathing room */
  }
}

/* Mobile (≤576px) */
@media (max-width: 600px) {
  .important-info {
    width: 90vw; /* narrower container so it doesn't overflow */
  }

  .important-info .info-boxes {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;              /* tighter spacing for small screens */
  }

  .important-info .info-boxes .info-box {
    width: 100%;
    max-width: none;           /* let it expand full width of container */
    height: auto;
    font-size: 1rem;           /* readable size */
  }

  .calendar-info .c-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .calendar-info .c-info-boxes .c-info-box {
    all: unset;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #31708f;
    text-decoration: underline;
    cursor: pointer;
  }
}


.resource-btns-section {
  text-align: center;
  margin: 5rem auto;
}

.resource-btns-section h2 {
  text-align: center;
  margin: 0 0 2rem 0;
}

.resource-btns .resource-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 9rem;
  height: 9rem;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  color: #5f9dd2;
  border: 2px solid #5f9dd2;

  text-decoration: none;
  transition: all 0.2s ease-in-out;
  padding: 3rem;
  gap: 0.5rem;
  margin: 0 2rem;
}

.resource-btns .resource-btn i {
  font-size: 3rem;
  margin: 0; 
}

.resource-btns .resource-btn span {
  display: block;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.resource-btn:hover {
  transform: translateY(-5px);
  color: #335370;
  border: 2px solid #335370;
  font-size: 125%;
}

.resource-btn:active {
  box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .resource-btns .resource-btn {
    width: 8rem;
    height: 8rem;
    padding: 0.4rem;
    margin: 0 1rem;
  }

  .resource-btns .resource-btn i {
    font-size: 2rem;
  }

  .resource-btns .resource-btn span {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .resource-btns-section h2 {
    margin-bottom: 2rem;
  }

  .resource-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    text-align: center;
    width: 100%;
  }

  .resource-btns .resource-btn {
    text-align: center;
    width: 8rem;
    height: 8rem;
  }

  .resource-btns .resource-btn a {
    font-weight: 900;
    padding: 0.3rem;
  }

  .resource-btns .resource-btn i {
    font-size: 2rem;
  }

  .resource-btns .resource-btn span {
    font-size: 1rem;
  }
}
