@import url('https://fonts.googleapis.com/css2?family=Lexend&family=Roboto:wght@400;500&display=swap');

html {
  overflow-y: scroll; /* always reserve vertical scrollbar space */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lexend', sans-serif;
  letter-spacing: 1px; /* optional: gives signage feel */
}

p {
  font-family: 'Roboto', sans-serif;
}

.navbar-dark .navbar-nav .nav-link {
    color: #aaa; /* Grey by default */
    transition: color 0.2s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff; /* White on hover */
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff; /* White when active */
}

.navbar {
    background-color: #111111; /* Adjust path as needed */
    background-repeat: repeat;
    background-size: auto;
}


.bg-dark {
  background-color: #17311a !important;
}

/* Dropdown background */
.dropdown-menu {
    background-color: #000;
    border: 1px solid #aaa;
}

/* Default text color (light grey) */
.dropdown-menu .dropdown-item {
    color: #aaa;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* Hover/focus state (white text, dark background for contrast) */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: #fff;
    background-color: #111; /* optional: subtle highlight on hover */
}

/* Active item (white text) */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    color: #fff;
    background-color: #000; /* or keep .active with no background change */
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Remove grey background and border from the button */
.navbar-dark .navbar-toggler {
  border-color: transparent;
  background-color: transparent;
  outline: none;
  box-shadow: none;
}
.navbar-dark .navbar-toggler:hover {
  background-color: #333333;
}
body {
    width: 100%;
    margin: 0 auto;
}

.hero-section {
  height: 50vh;
  background-image: url('Images/Promo4.png');
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
}

.text-box {
    width: 30vw;
  }

    .featured-apps {
    background-color: #4c654a; /* deep dark green */
    background-image: url('Images/BGGreen.jpg'); /* path to your image */
    background-repeat: repeat;  /* tiles the image both horizontally and vertically */
    background-size: 300px;      /* keeps the original size of the tile */
    color: #ffffff;
    padding: 4rem 0;
  }

  .featured-apps .card {
    background-color: #17311a; /* slightly lighter green for cards */
    color: #ffffff;
    border: none;
    margin: 0;
  }

  .featured-apps .card-title {
    color: #ffd700; /* gold accent for contrast */
  }

  .featured-apps .card-img-top {
    margin: 5px;      /* adds space around image */
    width: auto;       /* prevents stretching */
  }

  .latest-news .featured-apps .container {
  max-width: 100%;     /* prevents Bootstrap's fixed widths */
  padding-left: 10vw;  /* adjust as needed */
  padding-right: 10vw;
}

.featured-apps .row {
  --bs-gutter-x: 1vw; /* horizontal gap */
  --bs-gutter-y: 20px; /* vertical gap */
}

.section-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  text-transform: uppercase;
  color: #ffffff;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #ffffff; /* dark green line */
  margin: 0 1rem;
}
h2.section-divider {
  margin-top: 0;
}
.latest-news {
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #f5f3e7;
  }
  .latest-news h2 {
  color: #17311a; /* dark earthy green/charcoal */
}

.latest-news .section-divider::before,
.latest-news .section-divider::after {
  border-bottom: 2px solid #2f3e2c; /* dark earthy green/charcoal */
}

.text-truncate-multiline {
  display: -webkit-box;        /* Chrome, Safari, Edge */
  display: box;                /* Old spec fallback */
  -webkit-box-orient: vertical;
  box-orient: vertical;        /* Old spec fallback */

  -webkit-line-clamp: 6;       /* Chrome, Safari, Edge */
  line-clamp: 6;               /* Future standard */

  overflow: hidden;
}

.news-sidebar-card {
  cursor: pointer;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.news-sidebar-card:hover {
  background-color: #e0e0e0;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.news-sidebar-card.active {
  background-color: #ffd700; /* highlighted color for loaded news item */
  border-color: #b5a67a;
}


 .what-we-do {
    background-color: #4c654a; /* deep dark green */
    background-image: url('Images/BGGreen.jpg'); /* path to your image */
    background-repeat: repeat;  /* tiles the image both horizontally and vertically */
    background-size: 300px;      /* keeps the original size of the tile */
    color: #ffffff;
    padding: 4rem;  
  }
.what-we-do > .container {
  padding-bottom: 50px;
}

  .service-card {
    background-color: #17311a; /* slightly lighter green for cards */
    color: #ffffff;
    border: none;
    margin: 0;
  }

  .what-we-do .card-title {
    color: #ffd700; /* gold accent for contrast */
  }

  .what-we-do .card-img-top {
    margin: 5px;      /* adds space around image */
    width: auto;       /* prevents stretching */
  }

  .service-card h4 {
    color: #ffd700; /* gold accent for contrast */
  }

  .cta-btn {
  display: inline-block;
  background-color: #ffd700; /* golden yellow */
  color: #17311a; /* dark green text */
  font-weight: bold;
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
  border-radius: 50px; /* pill shape */
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* drop shadow */
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: #e6c200; /* darker yellow on hover */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px); /* subtle lift */
  text-decoration: none;
}

.cta-arrow {
  margin-left: 0.75rem;
  font-weight: bold;
  transition: margin-left 0.3s ease;
}

.cta-btn:hover .cta-arrow {
  margin-left: 1.25rem; /* arrow slides right on hover */
}

.app-hero {
  background-color: #4c654a; /* deep dark green */
    background-image: url('Images/BGGreen.jpg'); /* path to your image */
    background-repeat: repeat;  /* tiles the image both horizontally and vertically */
    background-size: 300px;      /* keeps the original size of the tile */
}

.img-fluid {
  max-height: 600px;
}
  
.feature-text {
  margin-top: 1.5rem;
}

.feature-text-divider {
  border: 0;
  border-top: 3px solid #2f3e2c;
  margin: 1.2rem 0 1.5rem 0;
  width: 100%;
}

.feature-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #333;
}

@media (max-width: 992px) { /* small + medium screens */
  .hero-section {
    height: 300px;
    background-position: left;
  }
  .text-box {
  width: 90%; /* default for mobile */
  margin-top: 300px;
}

  .feature-card {
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    flex-direction: column !important;
    text-align: left;
    padding: 1rem !important;
  }
  .feature-card > .col-md-6 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .feature-card .feature-text {
    order: 1;
    margin-top: 0.5rem;
  }
  .feature-card img {
    order: 2;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
  }
  .feature-card .feature-title {
    order: 0;
  }
  .feature-card .feature-subtitle {
    order: 1;
  }

 .featured-apps .container {
    margin-top: 300px;
  }

  #news-sidebar {
    display: flex;
    flex-direction: column;
  }

  .news-sidebar-card,
  .expanded-news-card {
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08); /* always add bottom border */
  }

  .expanded-news-card img {
    margin-top: 0.75rem; /* adjust as needed */
  }

  /* If desired, make the very last card a slightly thicker border */
  #news-sidebar > *:last-child {
    border-bottom: 2px solid rgba(0,0,0,0.1);
  }

  #main-news-container {
    display: none; /* hidden on mobile */
  }

  .expanded-news-card .btn {
    display: none;
  }

  .what-we-do {
    padding: 0;
  }

    .cta-btn {
    padding: 0.5rem 1rem;   /* smaller padding */
    font-size: 1rem;        /* smaller text */
    width: 80%;
  }

  .cta-arrow {
    margin-left: 0.25rem;   /* smaller spacing */
  }

  .app-hero {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .app-hero h1 {
    font-size: 2.5rem;
  }
  .app-hero .lead {
    font-size: 1rem;
  }
  .app-hero .cta-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  #message.form-control {
      min-height: 260px;
    }
  
}
