* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.6; }

/* Header */
/* Header */
header {
    background: #004080;
    color: #fff;
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1100;
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .branding {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo {
    height: 50px;
  }
  
  header nav {
    display: flex;
    gap: 1rem;
  }
  
  header nav a {
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background 0.3s;
    border-radius: 4px;
  }
  
  header nav a:hover {
    background: #0066cc;
  }
  
  /* Hamburger button (hidden on desktop) */
  .menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
  
/* Slider */
.slider {
  position: relative;
  max-width: 100%;
  height: 80vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide.active { opacity: 1; z-index: 1; }
.caption {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 1rem 2rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}
.slide.active .caption { opacity: 1; transform: translateY(0); }
.caption h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.caption p { font-size: 1.2rem; }
.caption .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  background: #0066cc;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.caption .btn:hover { background: #004080; transform: scale(1.05); }

/* Arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1002;
}
.prev { left: 10px; }
.next { right: 10px; }

/* Dots */
.dots { text-align: center; position: absolute; bottom: 10px; width: 100%; z-index: 1003; }
.dots span {
  display: inline-block;
  height: 10px; width: 10px;
  margin: 0 5px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}
.dots .active { background: #0066cc; }

/* Row structure */
.row {
    display: flex;
    align-items: stretch;   /* make both sides equal height */
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1rem;
  }
  
  .col-image,
  .col-text {
    flex: 1;
  }
  
  .col-image {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .col-image img {
    width: 100%;
    height: 100%;          /* fill full height of cards */
    object-fit: cover;     /* keep image proportional */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  /* Cards for services */
  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    height: 100%;
  }
  
  .card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .card h3 {
    color: #004080;
    margin-bottom: 0.5rem;
  }
  
  .card p {
    font-size: 0.9rem;
    color: #555;
  }

 /* About Section */
#about .row {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  
  #about .col-image,
  #about .col-text {
    flex: 1;
  }
  
  #about .col-image {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #about .col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  #about .col-text p {
    margin-bottom: 0rem;
    font-size: 1rem;
    color: #555;
  }
  
  #about .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  #about .card {
    background: #f9f9f9;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s;
  }
  
  #about .card:hover {
    transform: translateY(-5px);
  }
  
  #about .card h3 {
    color: #004080;
    margin-bottom: 0.5rem;
  }
  
  #about .card p {
    font-size: 0.9rem;
    color: #444;
  }
  

/* FAQ Section */
#faq {
    max-width: 900px;
    margin: auto;
    padding: 3rem 1.5rem;
  }
  
  #faq h2 {
    color: #004080;
    margin-bottom: 1.5rem;
    text-align: center;
    border-left: none;
  }
  
  .accordion {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .accordion-item {
    border-bottom: 1px solid #ddd;
  }
  
  .accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1rem;
    background: #f1f1f1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .accordion-header .icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s;
  }
  
  .accordion-item.active .icon {
    transform: rotate(180deg); /* optional animation */
    content: "−";
  }

  .accordion-body {
    display: none;
    padding: 1rem;
    background: #fff;
    font-size: 0.95rem;
    color: #444;
  }
  
  .accordion-body p {
    margin: 0;
  }

.accordion-item.active .accordion-body {
  max-height: 200px;  /* adjust depending on content */
  padding: 1rem;
  border-left: 3px solid #0066cc;
  background: #f9f9f9;
}
  
  
  /* Active state */
  .accordion-item.active .accordion-body {
    display: block;
  }
  .accordion-item.active .accordion-header {
    background: #0066cc;
    color: #fff;
  }
  
  #testimonials {
    padding: 3rem 1.5rem;
    background: #f8fafc;
    text-align: center;
  }
  
  #testimonials h2 {
    color: #004080;
    margin-bottom: 2rem;
    font-size: 2rem;
  }
  
  .testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
  }
  
  .testimonial-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
  }
  
  .testimonial-card {
    min-width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
  }
  
  .testimonial-card .quote {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
  }
  
  .client {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .client img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0066cc;
  }
  
  .client h4 {
    margin: 0;
    color: #004080;
    font-size: 1rem;
  }
  
  .client p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
  }
  
  /* Controls */
.testimonial-prev, .testimonial-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    margin: 0;        /* remove any spacing */
  }
  
  .testimonial-prev { left: 0; }   /* stick to the left edge */
  .testimonial-next { right: 0; }  /* stick to the right edge */
  
  
  /* Dots */
  .testimonial-dots {
    text-align: center;
    margin-top: 1rem;
  }
  .testimonial-dots span {
    display: inline-block;
    height: 10px; width: 10px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
  }
  .testimonial-dots .active { background: #0066cc; }
  
  
/* Gallery grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
  }
  .gallery-item { position: relative; cursor: pointer; }
  .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform .3s;
  }
  .gallery-item:hover img { transform: scale(1.03); }
  .gallery-title {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: .5rem .75rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    border-radius: 0 0 8px 8px;
    font-size: .95rem;
    text-align: center;
  }
  
  /* Modal overlay */
  .gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.9);
  
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  
    transition: opacity .25s ease, visibility .25s ease;
    padding: 20px;
  }

  /* Modal footer bar (caption + counter) */
.gallery-modal .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  
    background: rgba(0,0,0,0.7);
    padding: 12px 20px;
    border-radius: 0 0 10px 10px;
    max-width: 90vw;
    margin-top: 12px;
  }
  
  .gallery-modal .modal-caption {
    color: #fff;
    text-align: left;
    flex: 1;
  }
  
  .gallery-modal .modal-caption h3 {
    margin-bottom: 4px;
    font-size: 1.1rem;
  }
  
  .gallery-modal .modal-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
  }
  
  .gallery-modal .modal-counter {
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  /* Image counter */
 .gallery-modal .modal-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 5px 12px;
    border-radius: 20px;
  }

  /* Show modal when open */
 .gallery-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .gallery-modal .modal-img {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
  }
  .gallery-modal .modal-caption {
    color: #fff;
    margin-top: 18px;
    max-width: 700px;
    text-align: center;
    line-height: 1.5;
  }
  .gallery-modal .close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
  }
  body.modal-open { overflow: hidden; }
  
  /* Modal navigation arrows */
.gallery-modal .modal-prev,
.gallery-modal .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}

.gallery-modal .modal-prev:hover,
.gallery-modal .modal-next:hover {
  background: rgba(0,0,0,0.8);
}

.gallery-modal .modal-prev { left: 20px; }
.gallery-modal .modal-next { right: 20px; }


/* Sections */
section { padding: 3rem 1.5rem; max-width: 1100px; margin: auto; }
h2 { color: #004080; margin-bottom: 1rem; border-left: 4px solid #0066cc; padding-left: 10px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.gallery img { width: 100%; border-radius: 8px; height: 200px; object-fit: cover; }

/* FAQ */
.faq-item { margin-bottom: 1rem; }
.faq-item h3 { cursor: pointer; color: #0066cc; }

/* Footer */
.footer {
  background: #0c1120;
  color: #ccc;
  padding: 3rem 1.5rem;
  font-size: 0.95rem;
}
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1200px; margin: auto; gap: 2rem; }
.footer-brand { flex: 1 1 250px; }
.footer-brand h2.logo { color: #ffffff; font-size: 1.5rem; margin: 0.5rem 0; }
.footer-brand h2.logo span { color: #8b5cf6; }
.footer-links { display: flex; flex: 3 1 600px; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-links .column ul { list-style: none; padding: 0; }
.footer-links .column ul li { margin-bottom: 0.5rem; }
.footer-links .column ul li a { color: #9ca3af; text-decoration: none; transition: color 0.3s; }
.footer-links .column ul li a:hover { color: #fff; }
.social-icons img { width: 20px; height: 20px; margin-right: 10px; }

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#backToTop:hover { background: #004080; transform: scale(1.1); }

/* Responsive */
@media (max-width: 768px) {
  .caption h1 { font-size: 1.5rem; }
  .caption p { font-size: 1rem; }
  nav { top: 60px; }
  .footer-container { flex-direction: column; }
  .footer-links { flex-direction: column; }
}

/* Responsive styles */
@media (max-width: 768px) {
    header nav {
      display: none;
      flex-direction: column;
      background: #004080;
      position: absolute;
      top: 70px; /* height of header */
      right: 0;
      width: 200px;
      padding: 1rem;
      border-radius: 0 0 8px 8px;
    }
  
    header nav.show {
      display: flex;
    }
  
    .menu-toggle {
      display: block;
    }

    .row {
        flex-direction: column;
      }
      .col-image img {
        max-width: 100%;
      }

      #about .row {
        flex-direction: column;
      }
      #about .card-grid {
        grid-template-columns: 1fr;
      }
  }
