* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#first_section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 100px;
  background-color: #fff;
  height: 200px;
}

/* --- Base heading layout --- */
#first_section h1 {
  font-size: 2rem;
  color: #222;
  line-height: 1.2;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  position: relative;
  left: -30px;
}

/* Right heading/paragraph */
#first_section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 45%;                 /* keep it narrower for readability */
  margin: 0;
  line-height: 1.4;
  text-align: justify;             /* straight column like justification */
  font-family: 'Times New Roman', Times, serif
}


/* General Section Styles */
#second_section {
  display: flex;
  flex-wrap: wrap;
  font-family: "Times New Roman", serif;
  padding: 40px 20px;
}

#second_section .container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* LEFT COLUMN */
.left-col {
  flex: 1; /* adjustable */
  padding: 10px; /* adjustable */
}

.left-col img.left-image {
  width: 450px; /* adjustable */
  height: 700px; /* adjustable */
  display: block;
  border-radius: 30px;
}

/* Right Column */
.right-col {
  flex: 1; /* adjustable */
  padding: 10px; /* adjustable */
  font-family: "Times New Roman", serif;
}

/* Heading */
.right-col h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #03368e;
  margin-left: 150px;
}

/* Contact Rows */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* adjustable */
  margin-bottom: 20px; /* adjustable */
}

.contact-row.first-row {
  display: flex;
  flex-wrap: nowrap;        /* all 3 stay in one line */
  gap: 15px;                /* space between items */
  align-items: flex-start;  /* align all divs at the top */
  margin-bottom: 20px;
  margin-top: 10px;
}

.contact-row.first-row .contact-item {
  flex: 1;                  /* or use flex: 0 0 32%; for fixed width */
  min-width: 150px;         /* adjustable */
  height: 250px;            /* adjustable */
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;   /* keep content stacked vertically */
  padding-top: 30px;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Keep icons and headings as before */
.contact-item i {
  font-size: 30px;
  color: #0d21fd;
  margin-bottom: 10px;
}

.contact-item h4 {
  font-size: 1.2em;
  margin-bottom: 15px;
}

.contact-item p {
  font-size: 1em;
  line-height: 1.4;
  margin: 2px 0;
}

.contact-item p a {
  color: #000;
  text-decoration: none;
}

.contact-item p a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

/* Second Row: Follow Us */
.contact-row.second-row .contact-item.follow-us {
  flex: 1;
  min-width: 300px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-top: 0;
}

/* Social Icons */
.contact-item .social-icons {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}

.contact-item .social-icons a {
  margin: 0 10px;
  color: #000;
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item .social-icons a:hover {
  color: #0d6efd;
  transform: translateY(-5px);
}

/* Bottom Image */
.right-col .bottom-image {
  margin-top: 20px;
}

.right-col .bottom-image img {
  width: 700px; /* adjustable */
  height: 350px;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-row {
    flex-direction: column;
  }
}

#third_section {
  padding: 60px 20px;
  background-color: #f8f9fa;
  font-family: "Times New Roman", serif;
}

#third_section .container {
  max-width: 600px;
  margin: 0 auto;
}

#third_section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #03368e;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: "Times New Roman", serif;
  font-size: 1em;
}

.contact-form textarea {
  resize: vertical;
}

.send-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #0d6efd;
  color: white;
  font-size: 1.1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Times New Roman', Times, serif;
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: #0056b3;
}

/* Responsive */
@media (max-width: 600px) {
  #third_section .container {
    padding: 0 10px;
  }
}

#fourth_section {
  padding: 40px 20px;
  font-family: "Times New Roman", serif;
}

#fourth_section .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

#fourth_section h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #03368e;
  padding-top: 0;
  margin-top: 0;
}

/* Map container to make it responsive */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ===== Footer ===== */
#site_footer {
  background-color: #012f7e;   /* deep navy to match headings */
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  margin-top: 40px;  /* space above footer */
  height: 70px;
  padding-top: 30px;
}

#site_footer p {
  margin: 0;
}





/* Scroll Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  background: linear-gradient(135deg, #5e0eea, #2600ff);
  color: #fff;
  border-radius: 30px;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: none; /* hidden by default */
  transition: all 0.4s ease;
}

/* Hover Effect */
#scrollTopBtn:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 8px 25px rgba(0, 150, 255, 0.7);
}

/* ================= RESPONSIVENESS ENHANCER FOR CONTACT PAGE ================= */

/* Tablets & medium screens */
@media (max-width: 1024px) {
  #first_section {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    height: auto;
  }
  #first_section h1 {
    font-size: 1.8rem;
    left: 0;
  }
  #first_section p {
    max-width: 100%;
    margin-top: 20px;
  }

  #second_section {
    flex-direction: column;
    padding: 30px 20px;
  }
  .left-col, .right-col {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }
  .left-col img.left-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
  .right-col h2 {
    font-size: 1.8rem;
    margin-left: 0;
  }
  .contact-row.first-row {
    flex-direction: column;
    align-items: center;
  }
  .contact-item {
    width: 80%;
    margin: 15px 0;
  }
  .right-col .bottom-image img {
    width: 90%;
    height: auto;
  }

  #third_section h2 {
    font-size: 1.8rem;
  }
  .contact-form input, .contact-form textarea {
    font-size: 0.95rem;
  }
  .send-btn {
    font-size: 1rem;
    padding: 10px;
  }

  #fourth_section h2 {
    font-size: 1.8rem;
  }
  .map-container {
    padding-bottom: 60%;
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 15px 10px;
  }
  .logo img {
    margin-left: 0;
    height: 80px;
    width: 80px;
  }
  .nav-links {
    margin: 10px 0;
  }
  .social-icons {
    margin: 10px 0;
  }
  .join-btn {
    margin: 10px 0;
  }

  #first_section {
    padding: 30px 20px;
  }

  #second_section {
    padding: 20px 15px;
  }
  .contact-item {
    width: 90%;
  }

  .right-col .bottom-image img {
    width: 100%;
  }

  #third_section {
    padding: 40px 15px;
  }
  .contact-form input, .contact-form textarea {
    font-size: 0.9rem;
  }
  .send-btn {
    font-size: 0.95rem;
    padding: 10px;
  }

  #fourth_section {
    padding: 30px 15px;
  }
  .map-container {
    padding-bottom: 55%;
  }

  #site_footer {
    font-size: 0.9rem;
    padding: 20px 10px;
    height: auto;
  }
}

/* Mobile screens */
@media (max-width: 600px) {
  #first_section h1 {
    font-size: 1.5rem;
  }
  #first_section p {
    font-size: 1rem;
  }

  #second_section {
    padding: 15px 10px;
  }
  .contact-item {
    width: 100%;
    margin: 10px 0;
    height: auto;
    padding: 15px;
  }

  .right-col .bottom-image img {
    width: 100%;
    height: auto;
  }

  #third_section {
    padding: 30px 10px;
  }
  #third_section h2 {
    font-size: 1.5rem;
  }
  .contact-form input, .contact-form textarea {
    font-size: 0.9rem;
  }
  .send-btn {
    font-size: 0.9rem;
    padding: 8px;
  }

  #fourth_section {
    padding: 20px 10px;
  }
  #fourth_section h2 {
    font-size: 1.5rem;
  }
  .map-container {
    padding-bottom: 50%;
  }

}

/* Footer adjustments */
@media (max-width: 768px) {
  #site_footer {
    font-size: 0.9rem;
    height: auto;
    padding: 20px 10px;
  }
}

/* Hamburger Menu for Contact page */
.hamburger-menu {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  margin-right: 20px;
}

@media (max-width: 768px) {
  .nav-links, .social-icons, .join-btn {
    display: none;
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
  .hamburger-menu {
    display: block;
  }
  .navbar.active .nav-links,
  .navbar.active .social-icons,
  .navbar.active .join-btn {
    display: block;
  }
  .nav-links a {
    display: block;
    margin: 8px 0;
  }
  .social-icons {
    justify-content: center;
    margin: 10px 0;
  }
  .join-btn {
    margin: 15px 0;
  }
}
