{box-sizing:border-box;}

body {
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  width: 100%;
  font-size: 16px; /* Reduced base font size for mobile */
  background-image: url(../images/pages/bgd.jpg);
  background-size: cover; /* Changed from contain to cover for better mobile bg */
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

@media screen and (min-width: 600px) {
  body {
    font-size: 18px;
  }
}

h1, h2 {
  text-align: center;
  font-family: georgia, times serif;
  margin: 0.5em 0;
}

h1 {
  font-weight: italic;
}

span {
  font-size: 1.4em; /* Using em for better scalability */
}

.magc {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1;
  opacity: 0.9;
}

.top-images {
  display: flex;
  background-color: #000066;
  width: 100%;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.top-images img {
  width: 120px; /* Reduced default size for mobile */
  height: auto;
}

@media screen and (min-width: 600px) {
  .top-images img {
    width: 170px;
  }
}

@media screen and (min-width: 992px) {
  .top-images img {
    width: 400px;
  }
}

.ryt {
  width: 40%;
}

.lft {
  display: flex;
  justify-content: flex-end;
  width: 60%;
}

.bodied {
  max-width: 100%;
  padding: 0 10px; /* Added padding for mobile */
}

.hdn {
  background-color: #eaeae1;
  max-width: 95%; /* Increased width for mobile */
  margin: auto;
  margin-top: 150px; /* Reduced margin for mobile */
}

@media screen and (min-width: 768px) {
  .hdn {
    max-width: 80%;
    margin-top: 190px;
  }
}

@media screen and (min-width: 992px) {
  .hdn {
    max-width: 60%;
  }
}

.boxy {
  background-color: #ffffff;
  max-width: 95%; /* Increased width for mobile */
  margin: auto;
  padding: 15px; /* Reduced padding for mobile */
}

@media screen and (min-width: 768px) {
  .boxy {
    max-width: 80%;
    padding: 20px;
  }
}

@media screen and (min-width: 992px) {
  .boxy {
    max-width: 60%;
  }
}

.contact-box2 {
  width: 95%; /* Increased width for mobile */
  background-color: #ffffff;
  height: auto; /* Changed to auto for better mobile */
  min-height: 150px;
  margin: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

@media screen and (min-width: 768px) {
  .contact-box2 {
    width: 80%;
  }
}

.social {
  width: 15%; /* Increased for better mobile touch targets */
  padding-top: 20px;
  min-width: 40px; /* Minimum size for touch targets */
}

.socialtext {
  width: 100%;
  font-size: 14px;
  text-align: center;
  border-radius: 15px;
  margin: 10px auto;
}

.social img {
  width: 70%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* forms */
.form {
  width: 100%;
  margin: 10px auto; /* Reduced margin for mobile */
  background-color: white;
}

input[type=text], input[type=email], select, textarea {
  width: 100%; /* Changed from 95% to 100% for mobile */
  padding: 10px; /* Reduced padding for mobile */
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box; /* Added for proper width calculation */
}

@media screen and (min-width: 600px) {
  input[type=text], input[type=email], select, textarea {
    padding: 13px;
  }
}

input[type=submit] {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px; /* Reduced padding for mobile */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%; /* Changed from 95% to 100% for mobile */
}

@media screen and (min-width: 600px) {
  input[type=submit] {
    padding: 12px 20px;
  }
}

input[type=submit]:hover {
  background-color: #45a049;
}

.boxyy {
  background-color: #45a049;
  color: white;
  max-width: 95%; /* Increased width for mobile */
  margin: auto;
  padding: 15px; /* Reduced padding for mobile */
  display: flex;
  margin-bottom: 10px;
  border-radius: 13px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

@media screen and (min-width: 768px) {
  .boxyy {
    max-width: 80%;
    padding: 20px;
    flex-wrap: nowrap;
  }
}

@media screen and (min-width: 992px) {
  .boxyy {
    max-width: 60%;
  }
}

.boxy1 {
  width: 100%; /* Full width on mobile */
  text-align: center; /* Center image on mobile */
  margin-bottom: 15px; /* Added space between image and text on mobile */
}

@media screen and (min-width: 768px) {
  .boxy1 {
    width: 20%;
    text-align: left;
    margin-bottom: 0;
  }
}

.boxy1 img {
  width: 30%; /* Reduced image size for mobile */
  margin: auto;
  display: block;
}

@media screen and (min-width: 768px) {
  .boxy1 img {
    width: 50%;
  }
}

.boxy2 {
  width: 100%; /* Full width on mobile */
  padding-left: 0; /* Removed padding for mobile */
  text-align: center; /* Center text on mobile */
}

@media screen and (min-width: 768px) {
  .boxy2 {
    width: 80%;
    padding-left: 20px;
    text-align: left;
  }
}

