body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #000000;
}

.top-bar {
  background-color: #a8c1f8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #000000;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
}

.top-bar-item {
  display: flex;
  align-items: center;
  margin: 0.3rem 0.5rem;
  gap: 0.4rem;
}

.top-bar-item a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.top-bar-item img {
  width: 16px;
  height: 16px;
}

header {
  background: #0f172a;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === Mobile Menu Styles === */
.mobile-menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  padding: 15px;
}

.branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 0.8rem;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  font-size: 1rem;
  font-weight: bold;
}

nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
}

.hero {
  background: url('hero-image.jpg') no-repeat center/cover;
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.services, .about, .certificates, .contact {
  padding: 3rem 2rem;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}

.about h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.9;
  font-weight: 500;
  color: #222;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}

/* === start qual === */
.styled-about {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.styled-about .section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #2e7d32;
  margin-bottom: 1.2rem;
}

.styled-about .intro {
  font-size: 1.1rem;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  color: #555;
  line-height: 1.8;
}

.about-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.about-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  max-width: 320px;
  flex: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
}

.about-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 14px;
  margin-bottom: 2px;
  background-color: transparent;
}

.about-card h3 {
  font-size: 1.4rem;
  color: #1e40af;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .about-cards {
    flex-direction: column;
    align-items: center;
  }

  .about-card {
    max-width: 100%;
  }

  .styled-about p,
  .styled-about h3 {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* === Flip Card Grid 2x2 === */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
  padding: 2rem;
}

.flip-card {
  width: 100%;
  max-width: 400px;
  height: 320px;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
  position: relative;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  top: 0;
  left: 0;
}

.flip-front {
  background-color: #eee;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.flip-back {
  background-color: #0f172a;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.flip-back p {
  margin: 0;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  line-height: 1.4;
  max-width: 100%;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  z-index: 0;
}

.title {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.8rem;
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 1;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.card {
  background: #f1f5f9;
  padding: 1.5rem;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.cert-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cert-btn {
  background-color: #0f172a;
  color: white;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cert-btn:hover {
  background-color: #1e293b;
}

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 0.8rem;
  background: #0f172a;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

footer {
  background: #f1f5f9;
  padding: 1rem;
  text-align: center;
}

.export-info {
  padding: 60px 20px;
  background-color: #fdfdfd;
}

.info-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.info-text {
  max-width: 650px;
}

.info-text h2 {
  font-size: 28px;
  color: #002244;
  margin-bottom: 20px;
  font-weight: 700;
}

.info-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}


@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .grid-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .flip-inner {
    height: 220px;
  }

  .title {
    font-size: 1rem;
  }

    .main-nav {
    display: none;
    flex-direction: column;
    background-color: #0a1a2f;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 0;
  }

  .main-nav a {
    padding: 12px;
    display: block;
    text-align: center;
    color: white;
  }

  .mobile-menu-toggle {
  display: block;
  position: absolute;
  right: 15px;
  top: 18px;
  z-index: 1000;

  /* Button-specific styling for accessibility and appearance */
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  padding: 15px;
}

  header {
    position: relative;
  }

}
