

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #f4f4f4;
  background-image: 
    url('texture.jpg'),
    linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
  background-repeat: repeat;
  background-size: auto, 40px 40px, 40px 40px;
  background-position: top left, 0 0, 0 0;
  background-attachment: scroll;
}



header {
  background-color: #001f4d;
  color: white;
  padding: 30px 0;
}

.hero {
  background: linear-gradient(to bottom, #001f4d, #003366);
  padding-top: 0;            /* Remove excess space above logo */
  padding-bottom: 20px;      /* Give breathing room below */
  text-align: center;
}

.hero-logo-block {
  margin-top: 0;             /* Eliminate extra top margin */
  padding-top: 0;
}

.hero-logo {
  width: 360px;              /* Increase logo size for impact */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 0;                /* Remove vertical padding */
}

.hero-tagline {
  font-size: 0.80rem;        /* Reduce size for balance */
  color: white;
  margin-top: 8px;
  margin-bottom: 2px; /* 👈 Prevent extra space below */
  font-weight: 300;
  font-style: italic;
  opacity: 0.9;
}




.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75em; 
  background-color: #001f4d;
  color: white;
  padding: 20px 40px;
}


.left-title {
  font-weight: bold;
}


.search-bar {
  display: flex;
  justify-content: center;
  padding: 20px 0; /* Optional: reduce or remove if spacing feels off */
  background-color: transparent; 
}




.search-container {
  display: flex;
  align-items: center;
  max-width: 600px;
  width: 100%;
  padding: 0 20px;
  box-shadow:
      0 2px 6px rgba(0, 0, 0, 0.08) /* base shadow */

}

#searchInput {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 0px;
  outline: none;
}

#searchInput:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

#searchButton {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
}

#searchButton:hover {
  background-color: #0056b3;
}

/* Responsive design */
@media (max-width: 600px) {
  .search-container {
    padding: 0 10px;
  }

  #searchInput {
    font-size: 14px;
  }

  #searchButton {
    padding: 10px;
  }
}



.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffcc00; /* Optional: highlight on hover */
}


nav a {
  color: white;
  text-decoration: none; /* optional: removes underline */
  margin-left: 1rem;      /* optional: adds spacing between links */
}

nav a:hover {
  color: #ffcc00; /* or any accent color for hover */
}


.tile-image {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tile-title {
  width: 100%;
  background-color: #001f4d;
  color: white;
  padding: 12px;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
}

.tile-img-wrapper {
  padding: 12px; /* 👈 Adds space around the image */
  box-sizing: border-box;
  flex-grow: 1;
}

.tile-img-wrapper img {
  object-fit: cover;
  object-position: top;
  height: 140px;
  width: 100%;
}




h1 {
  margin: 0;
  font-size: 2em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px 20px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  
 
}

.app-grid a {
  height: auto; /* Let content define height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch; /* 👈 Ensures children span full width */
  padding: 0; /* Remove internal padding so child elements control spacing */
  box-sizing: border-box;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  overflow: hidden;
}

.app-grid a:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Slight lift on hover */
}


.app-grid p {
  margin: 0;
  padding: 6px 0; /* Balanced top and bottom padding */
  font-weight: bold;
  font-size: 0.95rem;
  line-height: 1.2;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.hidden {
  display: none !important;
}


