@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Open+Sans&display=swap');

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

body {
  font-family: 'Open Sans', sans-serif;
  background: #f5f6fa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- HERO SECTION --- */
.hero2 {
  position: relative;
  background: url('assets/images/about.jpg') no-repeat center center/cover;
  height: 50vh; /* Adjusted for better balance on all screens */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero2 .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 35, 66, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero2 h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: 2px;
  animation: fadeIn 1.5s ease;
  font-style: italic;
}

.hero2 p {
  font-size: 1.2rem;
  font-style: italic;
  color: #fff;
  animation: fadeIn 1.9s ease;
}

/* --- CONTACT SECTION --- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 70px 10%;
  max-width: 1400px; /* Added max-width for very large screens */
  margin: 0 auto;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #0a2342;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #000000;
  text-align: center;
}

.contact-info ul {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.contact-info ul li {
  margin: 15px 0;
  font-size: 1rem;
  display: flex; /* Added for better icon alignment */
  align-items: center;
}

.contact-info ul li i {
  margin-right: 15px;
  color: #d4af37;
  width: 20px; /* Ensures consistent alignment */
  text-align: center;
  transition: 0.3s;
}

.contact-info ul li:hover i {
  transform: scale(1.2);
}

/* --- RESPONSIVE GOOGLE MAP --- */
.contact-info iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  margin-top: 20px;
}

/* --- CONTACT FORM --- */
.contact-form {
  background: #fff;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(10,35,66,0.15);
  animation: slideUp 1.2s ease;
  border-top: 4px solid #d4af37;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 0.9rem;
  color: #0a2342;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0a2342;
  box-shadow: 0 0 6px rgba(10, 35, 66, 0.3);
  outline: none;
}

.contact-form button {
  background: linear-gradient(135deg, #0a2342, #142850);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.contact-form button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #142850, #0a2342);
}

/* --- SOCIALS --- */
.socials {
  margin-top: 25px;
  text-align: center;
  margin-left: 20px;
}

.socials a {
  margin-right: 18px;
  text-decoration: none;
  color: #0a2342;
  font-size: 1.3rem;
  transition: all 0.3s;
}

.socials a:hover {
  color: #d4af37;
  transform: translateY(-3px);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =================================== */
/* --- RESPONSIVE MEDIA QUERIES --- */
/* =================================== */

/* --- TABLET VIEW --- */
@media(max-width: 992px) {
  .contact-section {
    grid-template-columns: 1fr;
    padding: 60px 8%;
    gap: 50px; /* Increased gap for stacked layout */
  }

  .hero2 h1 {
    font-size: 3rem;
  }
  
  .hero2 p {
    font-size: 1.1rem;
    text-align: center;
  }
}

/* --- MOBILE VIEW --- */
@media(max-width: 576px) {
  .contact-section {
    padding: 50px 5%;
  }

  .hero2 {
    height: 40vh;
  }

  .hero2 h1 {
    font-size: 2.5rem;
  }

  .contact-form {
    padding: 25px;
  }

  .contact-info h2 {
    font-size: 1.8rem;
  }
}