
:root {
  --main-color: #acc8e5;
  --mainText-color: #112a46;
  --primary-color: #097d3a;
  --secondary-color: #028dea;
  --accent-color: rgb(255, 193, 7); 
  --fadeSecondaryColor: rgba(33, 150, 243, 0.8);
  --fadeAccent-color: rgba(255, 193, 7, 0.8);
  --text-color: #333;
  --light-text-color: #f4f4f4;
  --background-light: #f9f9f9;
  --background-dark: #2c3e50; 
  --card-background: rgb(255, 255, 255);
  --border-color: #ddd;
  --body-color: rgb(208, 229, 240);

  --font-family-primary: "poppins", sans-serif;
  --font-family-headings: "arial", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--body-color);
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3 {
  font-family: var(--font-family-headings);
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 100;
  letter-spacing: 1px;
}

h1 {
  font-size: 2.2em;
}
h2 {
  font-size: 1.8em;
}
h3 {
  font-size: 1.4em;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button {
  background: transparent;
  border: none;
  color: var(--mainText-color);
  font-size: 15px;
  cursor: pointer;
}

.btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
  transition: transform 0.3s ease-in-out;
}

.btn-primary:hover {
  background-color: #43a047;
  border-color: #43a047;
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  border: 2px solid var(--secondary-color);
  transition: transform 0.3s ease-in-out;
}

.btn-secondary:hover {
  background-color: #1976d2;
  border-color: #1976d2;
  transform: scale(1.05);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2.5px solid var(--primary-color);
  transition: transform 0.3s ease-in-out;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  transform: scale(1.05);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-color);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  font-weight: normal;
  font-size: 0.9em;
}

.btn-link i {
  margin-left: 5px;
  font-size: 0.9em;
}

.btn-app img {
  height: 50px;
  width: auto;
  max-width: 100%;
}

.btn-app {
  color: var(--light-text-color);
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out;
  gap: 15px;
}

.btn-app:hover {
  transform: scale(1.1);
}

/* Header & Navigation */
.main-header {
  background-color: var(--main-color);
  color: var(--mainText-color);
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 0.8em;
  padding-bottom: 5px;
  border-bottom: 1px solid whitesmoke;
  margin-bottom: 5px;
}

.top-bar a,
.top-bar span {
  color: var(--mainText-color);
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

.emergency-link,
.community-chat-link,
.donate {
  font-size: 14px;
}

.community-chat-link {
  text-shadow: 2px 2px 4px #dfecd4
}

.community-chat-link a {
  text-decoration: none;
}

.community-chat-link a:hover {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.community-chat-wrapper {
  text-align: center;
}

.emergency-link i {
  margin-right: 5px;
}

.main-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.logo {
  width: 5rem;
  border-radius: 50%;
  border: 1px solid white;
}

.logo2 {
  width: 12rem;
}

.donate {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 5px;
  border-radius: 5px;
  font-weight: 300;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}


/* Mobile Navigation (Hamburger & Menu) */
.main-nav {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--main-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.main-nav.active {
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  width: 100%;
  margin: 0;
}

.main-nav ul li {
  margin: 1px 0;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--light-text-color);
}

.main-nav ul li a {
  color: var(--mainText-color);
  text-decoration: none;
  padding: 10px 0;
  display: block;
  transition: all 0.3s ease, font-weight 0.3s ease, border-bottom 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--light-text-color);
}

.sub-menu {
  display: none;
}

.sub-menu.active {
  display: block;
  background-color: #82bdf8;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#resources-link-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arrow-down {
  font-size: 1rem;
}

.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease; 
}

.hamburger-menu {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--mainText-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/*FOOTER*/

footer {
  background: linear-gradient(rgba(150, 150, 150, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/footer/footerHero.jpeg") no-repeat center center/cover;
}

.footer-hero {
  color: var(--light-text-color);
  text-align: center;
  padding: 25px 15px; 
}

.footer-hero h1 {
  color: var(--light-text-color);
  font-size: 2.2em; 
  margin-bottom: 10px; 
}

.footer-hero p {
  font-size: 1em;
  font-weight: 600;
  max-width: 700px;
  margin: 0 auto;
  color: var(--secondary-color);
}

/* footer Info Section */
.footer-info-section {
  padding: 15px 0; 
  text-align: center;
  display: flex;
  flex-direction: column; 
  gap: 15px; 
}

.info-card {
  background-color: rgba(198, 198, 198, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 90%; 
  margin: 0 auto;
}

.info-card .icon-large {
  font-size: 2em; 
  color: var(--accent-color);
  margin-bottom: 10px; 
}

.info-card h2 {
  margin-bottom: 5px;
  color: var(--primary-color);
  font-size: 17px; 
  font-weight: 600;
}

.info-card p {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.info-card .contact-link {
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  display: block; 
  margin-bottom: 3px; 
}

.info-card .contact-link:hover {
  text-decoration: underline;
}

.info-card address {
  font-style: normal; 
  margin-top: 5px; 
  line-height: 1.4; 
  color: var(--secondary-color);
}

.info-card .hours {
  font-style: italic;
  color: #666;
  margin-top: 10px; 
}

/* Contact Form Section */
.contact-form-section {
  padding-top: 20px; 
  padding-bottom: 20px; 
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left; 
}

.contact-form-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px; 
}

.form-group {
  margin-bottom: 15px; 
}

.form-group label {
  display: block; 
  margin-bottom: 5px; 
  font-weight: bold;
  color: var(--text-color);
  font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px; 
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: var(--font-family-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); 
  outline: none;
}

.form-group textarea {
  resize: vertical; 
  min-height: 80px; 
}

.contact-form .btn-primary {
  width: 100%; 
  margin-top: 10px;
}

.footer-container {
  padding: 25px 0; 
}

.footer-links,
.social-links,
.copyright,
.disclaimer {
  text-align: center;
  margin: 20px 0; 
}

.footer-nav li {
  list-style: none;
}

.copyright,
.disclaimer {
  color: #fff;
  padding: 0 20px;
}

.links-title {
  color: var(--accent-color);
}

.social-links-container {
  display: flex;
  justify-content: space-between;
  font-size: 1.4rem;
  width: 90%;
  margin: 0 auto;
}

.copyright p,
.disclaimer p {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.8rem;
}
/* --- media queries --- */

@media (min-width: 576px) {
  .container {
    padding: 0 25px;
  }

  h1 {
    font-size: 3em;
  }
  h2 {
    font-size: 2.2em;
  }
  h3 {
    font-size: 1.6em;
  }

  /* Buttons */
  .btn {
    width: auto; 
    display: inline-block; /* Place side-by-side where used for multiple */
    margin: 0 10px 10px 0; /* Spacing between them and bottom */
  }
  .btn:last-child {
    margin-right: 0;
  }

  .footer-hero h1 {
    font-size: 2.5em;
  }

  /* footer Info: 2 columns */
  .footer-info-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Reduced gap from 30px */
    margin-top: 20px; /* Reduced margin */
  }
  .info-card {
    flex: 1 1 calc(50% - 20px); /* Two cards per row, adjusted for new gap */
    max-width: calc(50% - 20px); /* Adjusted max-width */
  }

  .footer-form .btn-primary {
    width: auto; /* Auto width on larger screens */
    padding: 12px 30px;
    float: right; /* Align to right */
  }

  /* Footer: 2 columns */
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
  .footer-nav {
    flex: 1 1 45%;
    margin-bottom: 0;
  }
  .footer-nav ul {
    margin-bottom: 0;
  }
  .footer-nav ul li {
    margin-bottom: 3px; /* Reduced margin */
  }
  .social-links {
    flex: 1 1 45%;
    text-align: right;
  }
  .copyright,
  .disclaimer {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 15px; /* Reduced margin */
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5em;
  }
  h2 {
    font-size: 2.5em;
  }
  h3 {
    font-size: 1.8em;
  }

  .main-header {
    padding: 20px 0;
  }

  .top-bar {
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 0.9em;
  }

  .logo {
    font-size: 2em;
  }

  section {
    padding: 60px 0;
  }

  .btn {
    margin-bottom: 0;
  }

  /*FOOTER*/
.footer-hero {
  padding-top: 10px; /* Further reduced padding */
}

.contact-form-section {
  padding-bottom: 0;
  padding-top: 10px; /* Adjusted padding */
}

  .form-container {
    width: 45rem;
  }

  .user-input-container {
    display: flex;
    justify-content: space-between;
    gap: 5px;
  }

  .user-input {
    width: 50%;
  }

  .info-card {
    flex: 1 1 calc(33.333% - 20px); /* Three cards per row, adjusted for new gap */
    max-width: calc(33.333% - 20px); /* Adjusted max-width */
    padding: 10px; /* Further reduced padding */
  }

  .links {
    display: flex;
    justify-content: space-between;
  }

  .social-links,
  .footer-links {
    width: 50%;
  }

  .social-links {
    text-align: center;
  }

  .social-links-container {
    width: 100%;
  }

  .copyright,
  .disclaimer {
    margin: 0;
  }
}

@media (min-width: 992px) {
  .container {
    padding: 0 30px;
  }

  h1 {
    font-size: 4em;
  }
  h2 {
    font-size: 2.8em;
  }
  h3 {
    font-size: 2em;
  }

  /* Revert navigation for desktop */
  .main-nav {
    position: static;
    display: block;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
  }

  .main-nav ul li {
    margin: 0 25px;
    width: auto;
    text-align: left;
  }

  .main-nav ul li a {
    padding: 0;
    display: inline-block;
  }

  .hamburger-menu {
    display: none;
  }

  .with-sub-menu {
    position: relative;
  }

  .nav-link .with-sub-menu #resources-link-title .arrow-down {
    display: none;
  }

  .sub-menu {
    display: block;
  }

  .sub-menu {
    position: absolute;
    z-index: 99;
    left: 50%;
    transform: translateX(-50%);
    top: 35px;
    min-width: 700px;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  .sub-menu ul {
    background-color: #82bdf8;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
  }

  .sub-menu ul:hover {
    transform: scale(1.1);
  }

  .sub-menu ul li {
    border: none;
  }

  .sub-menu ul li a {
    border: none;
    color: white;
    white-space: nowrap;
    font-size: 0.9rem;
    cursor: pointer;
  }

  section {
    padding: 0;
  }

  .logo {
    width: 5rem;
  }

  /*FOOTER*/

  .footer-container {
    padding: 15px 0; /* Reduced padding */
  }

  .form-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin: 30px 0; /* Reduced margin from 50px */
    justify-content: space-between;
    gap: 30px; /* Reduced gap from 40px */
  }

  .form-container {
    flex-basis: 50%;
    flex-grow: 1;
    min-width: 300px;
    max-width: 600px;
  }

  .links {
    display: flex;
    gap: 30px; /* Reduced gap from 45px */
  }

  .links-title {
    font-size: 1.4rem; /* Slightly reduced font size */
  }

  .footer-links,
  .social-links {
    text-align: left;
    margin: 0;
  }

  .footer-hero {
    padding-bottom: 0;
  }

  .footer-hero h1 {
    font-size: 3.5em;
  }

  .footer-info-section .info-card {
    padding: 8px; /* Further reduced padding for desktop */
  }
}

/* Extra Large Devices (e.g., min-width 1200px) */
@media (min-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

/*DONATE MODAL*/
/* Button to open modal */
#openModalBtn {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 300;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#openModalBtn:hover {
    background-color: var(--secondary-color);
}

/* Modal styling */
.modal {
    display: none; 
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; 
}

/* Modal Content/Box */
.modal-content {
    background-color: var(--card-background);
    color: var(--mainText-color);
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Headings inside the modal */
.modal-content h2 {
    font-family: var(--primary-color);
    color: var(--mainText-color);
    margin-top: 0;
}

/* Close Button */
.close-btn {
    color: var(--border-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--mainText-color);
    text-decoration: none;
    cursor: pointer;
}

/* Class to show the modal (used by JavaScript) */
.show-modal {
    display: block;
}

/* --- Desktop Styles --- */
/* Use a media query to adjust styles for larger screens */
@media (min-width: 768px) {
    .modal-content {
        margin: 100px auto;
    }
}

/*EMERGENCY MODAL*/
/* General Modal Styles - Mobile First */
.getHelpModal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.getHelpModal.show {
  display: flex; /* Display when the 'show' class is added */
}
.modal-content {
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 1.5rem; /* Reduced padding for mobile */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  width: 90vw; /* Fluid width for mobile */
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.emergencyModalCloseBtn {
  color: #aaa;
  position: absolute;
  top: 10px; /* Adjusted position for mobile */
  right: 15px; /* Adjusted position for mobile */
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}
.emergencyModalCloseBtn:hover,
.emergencyModalCloseBtn:focus {
  color: var(--text-color);
}

/* Specific Modal Content Styling */
.modal-content h2 {
  font-family: var(--font-family-headings);
  color: var(--primary-color);
  margin-top: 0;
}
/* Style for the title of the emergency modal */
.emergency-modal-content h2 {
    color: #e74c3c !important; /* The red color you requested */
}
.modal-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.modal-content ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}
.modal-content ul li {
  margin-bottom: 0.5rem;
}
.modal-content a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}
.modal-content a:hover {
  color: var(--primary-color);
}

/* Styles for the emergency modal's links */
.emergency-modal-content .emergency-link-section a {
  display: block;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--light-text-color);
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.emergency-modal-content .emergency-link-section a.call-link {
  background-color: #e74c3c; /* Red color for emergency */
  color: white;
}
.emergency-modal-content .emergency-link-section a.call-link:hover {
  background-color: #c0392b;
}
.emergency-modal-content .emergency-link-section a.professional-link {
  background-color: var(--primary-color);
}
.emergency-modal-content .emergency-link-section a.professional-link:hover {
  background-color: #219d53;
}
.emergency-modal-content .emergency-link-section a.map-link {
  background-color: var(--secondary-color);
}
.emergency-modal-content .emergency-link-section a.map-link:hover {
  background-color: #4994ca;
}
.emergency-modal-content .emergency-link-section a.whatsapp-btn {
  background-color: #25d366; /* WhatsApp green */
}
.emergency-modal-content .emergency-link-section a.whatsapp-btn:hover {
  background-color: #128c7e;
}

/* Desktop styles using a min-width media query */
@media screen and (min-width: 768px) {
  .modal-content {
    width: 500px;
    padding: 2.5rem;
  }
}

