/* css/trucalm.css */

/* Background image + fallback color (replace path with your file location) */
body {
  background-image: url("../img/trucalm-bg.jpg");
  background-color: #FFCBA4;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
  color: #1a3ba0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: black;
}

/* Optional: subtle overlay to keep text readable over the photo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,203,164,0.25), rgba(255,255,255,0.15));
  pointer-events: none;
  z-index: 0;
}

/* Ensure page content sits above overlay */
:root > * , .app, #root, main, .container {
  position: relative;
  z-index: 1;
}

/* Optional: style headings so they match the color + background */
h1 {
  background-color: transparent;
  color: #1A3BA0;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
}



#searchResults {
    
  overflow-y: auto;
  scrollbar-width: thin;
  max-height: 500px;
    
}





/* Mobile-friendly tweak: remove fixed attachment on small screens */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-position: top center;
  }
  body::before {
    background: rgba(255,255,255,0.25);
  }
}

#root, .app, .container, main {
  position: relative;
  z-index: 1;
}

/* Basic layout and small styling for content */
header {
  padding: 20px;
  text-align: center;
}
.intro {
  max-width: 900px;
  margin: 16px auto;
  padding: 12px 18px;
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.45;
}
.searchbar-container {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 12px auto;
  padding: 0 12px;
}
.searchbar {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #cfd8e6;
}
.search-btn {
  padding: 10px 14px;
  background: #1A3BA0;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.results-list {
  list-style: none;
  padding: 0;
  margin: 8px auto 24px;
  max-width: 640px;
}
.result-item {
  background: rgba(255,255,255,0.85);
  margin: 8px 0;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(26,59,160,0.08);
}
.result-item:hover {
  box-shadow: 0 4px 14px rgba(26,59,160,0.06);
}

/* Modal overlay and content */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background: #fff;
  color: #1A3BA0;
  width: 100%;
  max-width: 640px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Modal body */
.modal-body {
  padding: 28px 24px;
}

.modal-title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
}

.item-image {
  max-width: 120px;
  display: block;
  margin: 8px 0 12px 0;
}

.item-details {
  line-height: 1.45;
  font-size: 0.95rem;
  color: #333;
}

/* Responsive tweak */
@media (max-width: 480px) {
  .modal-content {
    max-width: 100%;
    padding: 0;
    border-radius: 6px;
  }
  .modal-body {
    padding: 18px;
  }
}

 footer {
    background: rgba(255, 255, 255, 0.85); 
    color: #333;
    text-align: center;
    padding: 15px 20px 10px;  
    border-top: 1px solid #cfd8e6;
    margin-top: 30px;  
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;  
    display: flex; 
    justify-content: center; 
    gap: 20px;  
}

.footer-nav a {
    text-decoration: none;  
    color: #1A3BA0; 
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #0d2870;  
    text-decoration: underline;
}

 

.contact-form {
    background: rgba(248, 248, 248,.6);
    opacity: .6;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #cfd8e6;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #1A3BA0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfd8e6;
    border-radius: 4px;
    box-sizing: border-box; /* Important for padding/width */
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-details p {
    margin: 8px 0;
}

.contact-details a {
    color: #1A3BA0;
    text-decoration: underline;
}

.disclaimer {
    color: #cc0000;
    font-weight: bold;
    margin-top: 15px;
}



/* Add to trucalm.css */

.about-page {
    /* Uses the same background styling as .page-content from the previous step */
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px 30px;
}

.mission-statement {
    padding: 15px;
    background: #FFCBA4; /* Light background color */
    border-radius: 6px;
    font-style: italic;
    color: #1A3BA0; /* Use brand color for emphasis */
    margin-bottom: 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.bio {
    display: flex; /* Makes the image and text side-by-side */
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bio-img {
    width: 100px; 
    height: 100px;
    object-fit: cover;
    border-radius: 50%; 
    flex-shrink: 0;  
}

.bio-text h4 {
    margin-top: 0;
    color: #1A3BA0;
    font-size: 1.1rem;
}

.bio-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}
 
@media (max-width: 600px) {
    .bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}



/* Responsive adjustment for small screens */
@media (max-width: 480px) {
    .footer-nav ul {
        flex-direction: column; /* Stack links vertically on small screens */
        gap: 5px; /* Less space when stacked */
    }
}