﻿/* Base Typography and Layout */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #e6fffa;
  color: #2d3748;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6,
.navbar,
.fsrl-banner-title,
.card-title {
  font-family: 'Montserrat', sans-serif;
}

/* Links and Buttons */
a,
.btn-link {
  color: #116724;
  text-decoration: none;
}
a:hover,
.btn-link:hover {
  text-decoration: underline;
}

.btn-primary {
  background-color: #116724;
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #0f5a1f;
}

/* Navbar and Header */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.5rem;
}

.banner {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 4rem;
  max-height: 100px;
}

header {
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
}

/* Containers */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 2rem;
  border-left: none;
  border-right: none;
  background-color: #e6fffa !important;
}

.main .container {
  border-bottom: none;
  background-color: #e6fffa;
}

/* Search Area */


/* Breadcrumbs */
.breadcrumb {
  margin: 0 -2rem;
  padding: 0.75rem 2rem;
  background-color: #f0fff4;
  border-bottom: 1px solid #c6f6d5;
  border-radius: 0;
}
.breadcrumb > .active {
  color: #116724;
}

/* Page Content Padding */
#content {
  padding-top: 0;
}

/* Footer Enhancements */
footer {
  background-color: transparent; /* Removed gray background */
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #2d3748; /* Match main text color */
  font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-top: none; /* Remove top border line if any */
}

main {
  background-color: #ffffff;
}

.box, .panel, .result, .record, .account, .list-group-item, .well, .alert, .bg-light {
  background-color: #e6fffa !important;
  border: none !important;
  box-shadow: none !important;
}

.btn, .btn-primary, .btn-default, .btn-outline-secondary {
  background-color: #116724;
  color: #fff;
  border: none;
}

.btn:hover {
  background-color: #0f5a1f;
}

/* ===== Homepage Blocks Styling ===== */
section {
  margin-bottom: 3rem;
}

section h2 {
  color: #116724;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-left: 5px solid #116724;
  padding-left: 0.75rem;
}

/* Cards for News */
.card {
  border: none;
  border-radius: 0.5rem;
  background-color: #ffffff;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
}
.card-title {
  font-size: 1.25rem;
  color: #116724;
}
.card-text {
  font-size: 0.95rem;
}

/* Quick Access Buttons */
.btn-outline-success {
  border: 2px solid #116724 !important;
  background-color: transparent !important;
  color: #116724 !important;
  text-align: center;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  padding: 0.5rem 0.4rem;
  font-size: 0.82rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  section h2 {
    font-size: 1.25rem;
  }
  .card-title {
    font-size: 1.1rem;
  }
  .card-text {
    font-size: 0.9rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
  }

  /* Fix button overflow on mobile */
  .btn-outline-success {
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* Fix outline buttons being overridden */
.btn-outline-success:hover {
  background-color: #116724 !important;
  color: white !important;
}

/* ===== Title Banner Under Navbar ===== */

.fsrl-banner-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #116724;
  margin: 0;
  text-align: center;
}

@media (max-width: 576px) {
  .fsrl-banner-title {
    font-size: 1.1rem;
  }
}

/* ===== FSRL Custom Search Bar ===== */
.fsrl-search-form {
  max-width: 960px;
  margin: 0 auto;
}

.fsrl-search-input {
  border-radius: 0;
  border: 1px solid #ccc;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.fsrl-search-select {
  max-width: 200px;
  border-radius: 0;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.fsrl-search-button {
  border-radius: 0;
  background-color: #116724;
  color: white;
  transition: background-color 0.3s ease;
}

.fsrl-search-button:hover {
  background-color: #0f5a1f;
}

@media (max-width: 768px) {
  .fsrl-search-form .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .fsrl-search-select,
  .fsrl-search-input,
  .fsrl-search-button {
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .fsrl-search-button {
    padding: 0.75rem;
  }
}

/* Remove box-shadow from search bar container */
.input-group.shadow {
  box-shadow: none !important;
}

/* Make all the search bar components the same height and line up correctly */
.fsrl-search-form .input-group > * {
  height: 100%;
  border-radius: 0;
}

.fsrl-search-select,
.fsrl-search-input,
.fsrl-search-button {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fsrl-search-input {
  flex: 1 1 auto;
}

.fsrl-search-select {
  flex: 0 0 auto;
}

.fsrl-search-button {
  flex: 0 0 auto;
  padding: 0 1.25rem;
}

.input-group {
  align-items: stretch;
}

/* ===== Quick Links Card Grid ===== */
.quick-links .card {
  border: 2px solid #116724;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0.5rem;
}

.quick-links .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.quick-links .card .icon {
  font-size: 2rem;
  color: #116724;
}

.quick-links .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin-top: 0.5rem;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .quick-links .card .icon {
    font-size: 1.5rem;
  }

  .quick-links .card-title {
    font-size: 0.95rem;
  }
}
/* ===== Home Searchbar Section Background Banner ===== */

/* ===== Fix Home Banner Image Layout ===== */

/* ===== Full-width Top Banner with Background Image ===== */
.fsrl-banner {
  position: relative;
  width: 100%;
  background-image: url('../images/fsrl-banner4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: auto;
  min-height: 300px;
  margin: 0;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  max-width: none !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.fsrl-top-banner {
  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
  padding: 0.75rem 1rem;
  margin-bottom: 0;
}

.fsrl-top-banner + .fsrl-banner {
  margin-top: 0;
}

@media (max-width: 768px) {
  .fsrl-banner {
    flex-direction: column;
    padding: 1rem;
  }
}