/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: 90%;
  margin: auto;
  /* overflow: hidden; */
}


#typed-words {
      padding: 1rem;
      max-width: 1000px;
      margin: auto;
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      animation: fadeIn 1.5s ease;
      color: #000;
      font-weight: 100;
      border-left: 5px solid #00b8de; 
    }



/* === HERO SECTION === */

.flex-container {
  display: flex;
  flex-wrap: wrap;              /* ✅ Enables wrapping on small screens */
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;                    /* ✅ Adds space between items */
  padding: 20px;
  text-align: center;
}
 
.hero-items {
  flex: 1 1 48%;               
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #f9f9f9;   
  border-radius: 8px;         
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}


/* === RESPONSIVE OVERRIDE === */
@media (max-width: 1200px) {
  .hero-items {
    flex: 1 1 48%;             /* ✅ Full width on mobile */
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero h2 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .hero-items {
    flex: 1 1 100%;             /* ✅ Full width on mobile */
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero h2 {
    font-size: 20px;
  }
}




/* === BUTTON STYLE === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: #00b8de;       /* Primary brand color */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: #009ac2;       /* Slightly darker on hover */
  transform: translateY(-2px);     /* Subtle lift on hover */
}

.btn:active {
  background-color: #007ea3;       /* Even darker when clicked */
  transform: translateY(0);        /* Reset position */
}

.btn:focus {
  outline: 2px solid #00b8de;
  outline-offset: 3px;
}

@media (max-width: 780px) {
  #btn1 {
    width: 100%;                
    text-align: center;
    padding: 14px;
    font-size: 18px;
  }
  .btn {
    /* width: 100%;                */
    text-align: center;
    padding: 14px;
    font-size: 18px;
  }
}



/* === SECONDARY BUTTON === */
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #002e6e;
  background-color: #e6f7fb2f;            /* Light blue background */
  border: 2px solid #00b8de;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #d1f0f7;
  color: #009ac2;
}

.btn-secondary:focus {
  outline: 2px solid #00b8de;
  outline-offset: 3px;
}


/* === OUTLINE BUTTON === */
.btn-outline {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #00b8de;
  background-color: transparent;
  border: 2px solid #00b8de;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #00b8de;
  color: white;
}

.btn-outline:focus {
  outline: 2px solid #00b8de;
  outline-offset: 3px;
}





/* Products Section */
.products {
  padding: 50px 0;
  background: #f4f4f4;
}

.products h2 {
  text-align: center;
  margin-bottom: 40px;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content:  space-around;
}

.product-card {
  flex: 0 0 32%;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  margin-bottom: 20px;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card .status {
  position: relative;
  top: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.status.available {
  background-color: #00b8de;
  color: white;
}

.status.unavailable {
  background-color: #cc0000;
  color: white;
}

.product-card img {
  width: 100%;
  height: auto;
}

.product-card .btn {
  display: inline-block;
}

.product-card .price {
  color: #002e6e;
  font-weight: 700;
  font-size: 22px;
  margin: 10px 0;
}

.product-card .note {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}


/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

@media (max-width: 1000px){
  .product-card{
    flex: 0 0 48%;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .product-list {
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    width: 80%;
    margin-bottom: 20px;
  }
}

/* MODEL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close-btn {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
}



/* FORM MODEL  */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  padding: 30px 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  color: #002e6e;
  margin-bottom: 10px;
}

.modal-content p {
  margin-bottom: 20px;
  font-size: 14px;
  color: #444;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.modal-content button.btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #00b8de;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.modal-content button.btn:hover {
  background-color: #0099b0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}


.spinner {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.amount{
  color: #002e6e;
  font-size: larger;
}


/* EXAMS AND FEATURES, PAYMENT/DELIVERY SECTIONS */
.features-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.features-title {
  text-align: center;
  color: #002e6e;
  font-size: 28PX;
}

.features-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-box {
  flex: 1 1 300px;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-box h3 {
  color: #00b8de;
  margin-bottom: 10px;
  font-size: 20px;
  text-align: center;
}

.feature-box p {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

  
.feature-box ul {
  list-style: none;
  padding-left: 0;
}
.feature-box ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.feature-box ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  background: url('checkmark-blue.png') no-repeat center/cover;
}



/* ABOUT US  */
#about-us {
  background-color: #f9f9f9;
  padding: 60px 20px;
  scroll-margin-top: 80px;
  /* animation: fadeInUp 1s ease-out both; */
}

.about-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

#about-us h2 {
  color: #002e6e;
  font-size: 36px;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease-in-out;
}

#about-us .intro {
  font-size: 18px;
  color: #333;
  margin-bottom: 40px;
  animation: fadeInDown 0.9s ease-in-out;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  animation: fadeIn 1s ease-in;
}

.about-card {
  background: white;
  border-left: 5px solid #00b8de;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card h3 {
  color: #002e6e;
  font-size: 20px;
  margin-bottom: 10px;
}

.about-card p {
  color: #555;
  font-size: 16px;
}

.about-cta .btn {
  background-color: #00b8de;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.about-cta .btn:hover {
  background-color: #009ac3;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* CSS with sticky footer and fade-in animation */

/* Sticky footer basics */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > *:not(footer) {
  flex: 1 0 auto; /* Allow other content to grow */
}

footer {
  flex-shrink: 0; /* Prevent footer from shrinking */
  background-color: #002e6e;
  color: #ffffff;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Fade-in animation trigger */
footer.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-contact,
.footer-links,
.footer-about {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-contact h3,
.footer-links h3,
.footer-about h3 {
  color: #00b8de;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 18px;
}

.footer-contact p,
.footer-links ul,
.footer-about p {
  margin: 8px 0;
}

.footer-contact a,
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: #00b8de;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-icon {
  margin-right: 10px;
  color: #00b8de;
  min-width: 18px;
  font-size: 18px;
  vertical-align: middle;
}

.footer-about img {
  margin-top: 15px;
  filter: brightness(0) invert(1); /* white logo */
  max-width: 100px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 25px;
  }

  .footer-contact,
  .footer-links,
  .footer-about {
    min-width: 100%;
  }

  .footer-about img {
    max-width: 80px;
  }
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  display: inline-block;
  color: #00b8de;
  font-size: 22px;
  margin-right: 15px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: #ffffff;
}

/* Smaller spacing on mobile */
@media (max-width: 768px) {
  .footer-social a {
    font-size: 20px;
    margin-right: 12px;
  }
}


/* contact-form */
    .contact-form {
      background: #f0faff;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 0 12px rgba(0,0,0,0.05);
    }

    .contact-form h3 {
      margin-top: 0;
      margin-bottom: 20px;
      color: #002e6e;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 12px;
      margin-bottom: 15px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 16px;
    }

    .contact-form button {
      text-align: center;
      background: #00b8de;
      color: white;
      padding: 12px 25px;
      font-size: 16px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .contact-form .formBtn{
      text-align: center;
    }

    .contact-form button:hover {
      background: #0091b0;
    }

    .success {
      background: #d4edda;
      color: #155724;
      padding: 15px;
      border-radius: 6px;
      margin: 20px 0;
    }

    .error {
      background: #f8d7da;
      color: #721c24;
      padding: 15px;
      border-radius: 6px;
      margin: 20px 0;
    }

    .contact-item p{
      text-align: center;
      border-left: 5px solid #00b8de;
    }
    .contact-item a{
      text-decoration: none;
      margin: 20px;
    }