/* ===== GLOBAL STYLES ===== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #F7FAFC;
  color: #1C2C54;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0 0 15px;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #1C2C54;
  color: white;
}

.logo {
  font-weight: bold;
  font-size: 1.5em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #D4AF37;
}

.cta {
  background: #D4AF37;
  color: #1C2C54;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* ===== HERO SECTION USING SERVICE IMAGE ===== */
.hero {
  position: relative;
  text-align: center;
  color: white;

  /* Full-width banner */
  width: 100%;
 /* margin-left: calc(-50vw + 50%); /* removes page container padding */
  aspect-ratio: 16 / 5;           /* banner-like proportional height */

  /* Service image as hero background */
  background-image: url('index.jpg'); /* your service/flyer image */
  background-size: cover;                /* scales width & height proportionally */
  background-position: top center;    /* keep image centered */
  background-repeat: no-repeat;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;               /* vertically center text */
  align-items: center;
  padding: 0 20px;                       /* small horizontal padding on small screens */
}

/* Optional overlay for text visibility 
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; margin: 0;  height: 100%;
  /*background: rgba(28,44,84,0.35); */      /* semi-transparent dark overlay */
background-image: url('ser.jpg'); /* your service/flyer image */
  z-index: 0;
}

/* Keep text above overlay */
.hero h1,
.hero p,
.hero .btn {
  position: relative;
  z-index: 1;
}

/* Hero text styling */
.hero h1 {
  font-size: 2.2em;
  margin-bottom: 5px;
}

.hero p {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 600px;   /* ensures text doesn't overflow on large screens */
}

.hero .btn {
  background: #D4AF37;
  color: #1C2C54;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

/* ===== PAGE BANNERS ===== */
.page-banner {
  width: 100vw;
  height: 300px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  margin-left: calc(-50vw + 50%);
}

/* Banner specific images */
.contact-banner { background-image: url('contact.jpg'); }
.about-banner   { background-image: url('about.jpg'); }
.portal-banner  { background-image: url('client.jpg'); }
.services-banner{ background-image: url('services.jpg'); }

/* ===== FLYER SECTION ===== */
.flyer {
  text-align: center;
  padding: 40px 20px;
}

.flyer img {
  width: 100%;
  height: auto;      /* maintains aspect ratio */
  max-width: 800px;
  border-radius: 8px;
  border: 2px solid #1C2C54;
  object-fit: contain;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 50px 20px;
  background: #FFFFFF;
}

.services h2 {
  text-align: center;
  margin-bottom: 25px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #2C7A7B;
  color: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

/* ===== ABOUT SECTION ===== */
.about {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: justify;
}

/* ===== CONTACT SECTION ===== */
.contact {
  max-width: 600px;
  margin: 50px auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin: 10px 0 5px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}

.contact-form button {
  padding: 12px;
  background: #2C7A7B;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #1C2C54;
}

.contact-info {
  text-align: center;
  margin-top: 20px;
}

/* ===== PORTAL SECTION ===== 
.portal {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);*/
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}

.login-form button {
  padding: 12px;
  background: #2C7A7B;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-form button:hover {
  background: #1C2C54;
}

.portal .note {
  margin-top: 15px;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background: #1C2C54;
  color: white;
  text-align: center;
  padding: 20px;
}

footer a {
  color: #D4AF37;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .menu-toggle { display: block; }

  nav { display: none; width: 100%; background: #1C2C54; }

  nav.active { display: block; }

  nav ul {
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
  }

  nav ul li { margin: 10px 0; }

  header { flex-wrap: wrap; }

  .cta { margin-top: 10px; }

  .hero { padding: 80px 15px 60px; }

  .flyer, .services, .about, .contact, .portal {
    padding: 30px 15px;
    margin: 30px 15px;
  }
}


/* ===== INDEX BANNER (Match About Page Exactly) ===== */
.index-banner {
  background: url('index.jpg') center center / contain no-repeat;
  background-color: #ffffff;
}

.page-banner {
  width: 100%;
  height: 300px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .index-banner {
    height: 220px;
  }
   .hero {
    height: 220px;     /* shorter height on mobile */
    padding-top: 20px; /* gives text space from top */
  }
}

