
/* About us section */
.org-logo {
  height: 100px;
  width: auto;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
  object-fit: contain;
  cursor: pointer;
}

.org-logo:hover {
  transform: scale(1.1); /* expand on hover */
  filter: none; /* remove grayscale on hover */
}

.bg {
  background: #b30000;
}

.about-section {
  background-color: #fff6f6; /* red background */
  color: white; /* white text */
}

.about-section h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 40px;
  color: rgb(200, 0, 0);
}

.why-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.why-card:hover {
  background: #dc3545; /* Bootstrap red */
  color: white;
  transform: scale(1.05);
}

.why-icon {
  margin-bottom: 15px;
  font-size: 2rem;
  color: #dc3545;
  transition: color 0.3s ease;
}

.why-card:hover .why-icon {
  color: white;
}

.why-card p {
  font-size: 0.95rem;
}

.about-text {
  text-align: left;
  font-size: 1.0rem;
  line-height: 1.6;
  margin-top: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .about-text {
    text-align: justify;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* website.php */
@media (max-width: 768px) {
  /* Force horizontal layout */
  .navbar-brand img {
    max-height: 40px;
    width: auto;
  }

  .navbar-nav {
    flex-direction: row !important;
    justify-content: center;
    flex-wrap: wrap;
  }

  .navbar-nav .nav-item {
    margin: 0 10px;
  }

  /* Make dropdown full width below navbar brand */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    z-index: 999;
  }

  /* Ensure logo and toggle remain in top bar */
  .navbar {
    position: relative;
  }
}

.nav-icon svg {
  transition: transform 0.3s ease, fill 0.3s ease;
}

.nav-icon:hover svg {
  transform: scale(1.2);
}

/* Hover colors for each icon */
.facebook-icon:hover svg,
.email-icon:hover svg,
.phone-icon:hover svg {
  fill: #b30000;
}

.justify-text {
  text-align: justify;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #333;
}

h1, h2, h3, h4 {
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.3rem;
}

.navbar {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand img {
  height: 100px;
}

.nav-link {
  color: #b30000;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 16px;
}

.nav-link:hover {
  color: #800000;
}

.btn-red {
  background-color: #b30000;
  color: white;
  transition: background-color 0.3s ease;
  font-weight: 500;
  font-size: 16px;
}

.btn-red:hover {
  background-color: #800000;
  color: white;
}

.header-banner {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.header-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3vw;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  pointer-events: none;
}

.lead {
  font-size: 1.1rem;
  font-weight: 400;
}

.section2 {
  scroll-margin-top: 80px;
  background: linear-gradient(to right, #ffcccc, #ffe6e6);
}

section {
  scroll-margin-top: 80px;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Partners Section */
.partners-section {
  background-color: #fff6f6; /* red background */
  color: white; /* white text */
}

.partners-section h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 40px;
  color: rgb(200, 0, 0);
}

.partner-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-item {
  flex: 0 0 auto;
  padding: 10px;
  text-align: center;
}

.partner-item img {
  height: 80px;
  width: auto;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
  object-fit: contain;
}

.partner-item img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Clients Section */
.clients {
  background-color: rgb(250, 250, 250);
  text-align: center;
  padding: 60px 0;
}

.clients h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #1e1e1e;
  margin-bottom: 40px;
}

/* Horizontal logo slider container */
.logo-slider {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  overflow-x: auto;
  padding: 20px;
  scroll-behavior: smooth;
}

.logo-slider::-webkit-scrollbar {
  display: none;
}
.logo-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.logo-slider .item {
  flex: 0 0 auto;
  padding: 10px;
}

.logo-slider img {
  height: 120px;
  width: auto;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
  object-fit: contain;
}

.logo-slider img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Footer */
footer {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  font-size: 15px;
}

/* MOBILE IMPROVEMENTS */

/* About Us section - mobile adjustments */
@media (max-width: 768px) {
  .about-section {
    padding: 30px 15px;
    text-align: center;
  }

  .about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .org-logo {
    height: 100px;
    width: auto;
    margin-bottom: 20px;
  }

  .why-card {
    padding: 15px;
    margin-bottom: 20px;
  }

  .why-card p {
    font-size: 0.9rem;
  }
}

/* Contact Section */
.contact-container {
  background-color: #fff6f6;
  max-width: 900px;
  margin: 50px auto;
  padding: 40px;
  border-radius: 4px;
  text-align: center;
}
.contact-container h2 {
  color: #b30000;
  margin-bottom: 30px;
}
.contact-form {
  display: grid;
  grid-template-columns: 45% 55%; /* Wider message box */
  gap: 15px;
  align-items: stretch;
}
.left-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}
.left-side input {
  padding: 12px;
  border-radius: 10px;
  border: none;
  flex: 1;
}
.right-side {
  height: 100%;
}
.right-side textarea {
  height: 100%;
  width:100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  resize: none;
  display: block;
  box-sizing: border-box;
}
.btn-submit {
  grid-column: span 2;
  background-color: #b30000;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}
.btn-submit:hover {
  background-color: #800000;
}
.success {
  color: lightgreen;
  font-weight: bold;
}
.error {
  color: red;
  font-weight: bold;
}

/* Partners section - mobile adjustments (horizontal scroll with snap) */
@media (max-width: 768px) {
  .partners-section {
    padding: 30px 15px;
    text-align: center;
  }

  .partners-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .partner-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
  }

  .partner-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
  }

  .partner-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .partner-item img {
    height: 60px;
    width: auto;
  }
}
