/* ===========================
   General Styles and Resets
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden; /* Prevents horizontal scroll */
  font-family: "Roboto", Arial, sans-serif;
}

h2, p, h3 {
  font-family: "Roboto", sans-serif;
}

/* ===========================
   Header Styles
=========================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  padding: 20px 5%; /* Adjusted padding to prevent overflow */
  width: 100%;
  max-width: 100%; /* Ensures header does not exceed screen width */
}

.header-left .logo {
  font-size: 30px;
  font-weight: bold;
  color: white;
}

.header-right nav ul {
  list-style: none;
  display: flex;
}

.header-right nav ul li {
  margin-left: 20px;
}

.header-right nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.header-right nav ul li a:hover {
  color: #ff6347;
}

/* ===========================
   Footer Styles
=========================== */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  max-width: 100%;
}

/* ===========================
   Card Section Styles
=========================== */
.card-section {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 30px 5%; /* Adjusted padding to prevent overflow */
  background-color: #f4f4f4;
  flex-wrap: wrap;
  max-width: 100%;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 280px;
  width: 100%;
  padding: 20px;
  text-align: center;
  margin: 10px 0;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.card-title {
  font-size: 24px;
  color: #333;
  margin: 15px 0 10px;
}

.card-text {
  font-size: 16px;
  color: #666;
}

/* ===========================
   WhatsApp Section Styling
=========================== */
.whatsapp-section {
  background-color: #2c3e50; /* WhatsApp green */
  padding: 50px 20px;
  text-align: center;
  color: white;
}

.whatsapp-content {
  max-width: 600px;
  margin: 0 auto;
}

.whatsapp-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.whatsapp-section p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.whatsapp-btn {
  display: inline-block;
  background-color: white;
  color: #25d366;
  font-size: 1.2rem;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
  color: white;
  transform: scale(1.05);
}

/* ===========================
   Contact Section Styling
=========================== */
.contact-section {
  background-color: #f4f4f4; /* Light gray background */
  padding: 50px 20px;
  text-align: center;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #2c3e50;
}

.contact-section p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #333;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.info-item {
  text-align: left;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

.info-item h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #2c3e50;
}

.info-item p {
  font-size: 1.1rem;
  color: #666;
}

.info-item a {
  color: #ff6347; /* Link color */
  text-decoration: none;
}

.info-item a:hover {
  color: #128c7e;
  text-decoration: underline;
}

/* ===========================
   Query Form Styling
=========================== */
.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.query-form-container {
  background: white;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.query-form-title {
  margin-bottom: 1rem;
  color: #4a4a4a;
}

.query-form {
  display: flex;
  flex-direction: column;
}

.query-form-label {
  font-weight: bold;
  margin-top: 0.5rem;
  color: #4a4a4a;
}

.query-form-input {
  padding: 0.8rem;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.query-form-input:focus {
  outline: none;
  border-color: #6e8efb;
}

.query-form-button {
  padding: 0.8rem;
  background-color: #6e8efb;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.query-form-button:hover {
  background-color: #a777e3;
}

/* ===========================
   Alert Box Styling
=========================== */
.alert-box {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem;
  color: #fff;
  background-color: #ff4d4d;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* ===========================
   Media Queries
=========================== */
@media (max-width: 768px) {
  /* Header */
  header {
    flex-direction: column;
    text-align: center;
    padding: 20px 10px;
  }

  .header-right nav ul {
    flex-direction: column;
    align-items: center;
  }

  .header-right nav ul li {
    margin-left: 0;
    margin-top: 10px;
  }

  /* Card Section */
  .card-section {
    flex-direction: column;
    align-items: center;
  }

  .card {
    max-width: 100%;
    margin-bottom: 15px;
  }

  /* WhatsApp Section */
  .whatsapp-section h2 {
    font-size: 2rem;
  }

  .whatsapp-section p {
    font-size: 1rem;
  }

  .whatsapp-btn {
    font-size: 1rem;
    padding: 10px 20px;
  }

  /* Contact Section */
  .contact-section h2 {
    font-size: 2rem;
  }

  .contact-section p {
    font-size: 1rem;
  }

  .info-item h3 {
    font-size: 1.2rem;
  }

  .info-item p {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .query-form-container {
      padding: 1.5rem;
      width: 90%;
  }

  .query-form-input,
  .query-form-button {
      font-size: 0.9rem;
  }
}
