:root {
  --primary: #0b5fff;
  --dark: #0f1724;
  --muted: #6b7280;
  --card: #ffffff;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}



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

body {
  background: #f5f7fb;
  color: #333;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html {
  scroll-behavior: smooth;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--dark);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, transform 0.3s ease;
}

header a:hover {
  color: var(--primary);
  transform: scale(1.05);
}

header a:visited {
  color: inherit;
}

a, a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

header .logo {
  height: 60px;
  width: auto;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: fixed;
  top: 70px;
  right: -250px;
  width: 200px;
  background-color: var(--dark);
  padding: 20px;
  transition: right 0.3s ease;
  height: calc(100vh - 70px);
}

nav ul.open {
  right: 0;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  padding: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: var(--primary);
  transform: scale(1.05);
}

.hero {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #ffffff);
  color: #fff;
  border-radius: 0 0 40px 40px;
}

.hero button {
  margin-top: 20px;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease, transform 0.2s ease;
}

.hero button:hover {
  background: var(--dark);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General container style */
.container {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Center headings inside any container */
.container h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Full-width container for sections that should span the entire viewport */
.full-width-container {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
}

/* Optional: styling for headings in full-width sections */
.full-width-container h2 {
  margin-bottom: 20px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
  .container,
  .full-width-container {
    padding: 30px 15px;
  }
  
  .container h2,
  .full-width-container h2 {
    font-size: 1.5rem; /* smaller headings on mobile */
  }
}


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.home-page .hero {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #ffffff);
  color: #fff;
  border-radius: 0 0 40px 40px;
}

.home-page .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.home-page .hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.home-page .container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.home-page .container h1 {
  text-align: center;
  margin-bottom: 20px;
}
.home-page .container p {
  text-align: center;
  font-size: 1.1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.cards .card {
  background: #fff;
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards .card h3 {
  margin-bottom: 10px;
}

.cards .card p {
  margin: 0;
}

.cards .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}



footer {
  text-align: center;
  padding: 20px;
  background: var(--dark);
  color: #fff;
  margin-top: 40px;
  font-size: 14px;
}

.courses-page main,
.courses-page section {
  color: #000;
}

header, footer {
  background-color: #000000;
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

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

.contact-form,
#verifyForm {
  padding: 2rem;
  text-align: center;
}

.contact-form form,
#verifyForm {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form .form-row,
#verifyForm .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea,
#verifyForm input {
  flex: 1;
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

/* Contact Form Styles */
.contact-form select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  outline: none;
}


#verifyForm input {
  font-size: 1.1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
#verifyForm input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  outline: none;
}

.contact-form button,
#verifyForm button,
.hero button {
  padding: 0.9rem 2.2rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#verifyForm button {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.contact-form button:hover,
#verifyForm button:hover,
.hero button:hover {
  background-color: #004c99;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* Contact Section Styling */
.contact-section {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.contact-section .contact-info {
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section .contact-info h3 {
  margin-bottom: 15px;
  font-size: 1.5em;
}

.contact-section .contact-info p {
  margin: 5px 0;
}

.contact-section .contact-info a {
  color: #007BFF;
  text-decoration: none;
}

.contact-section .contact-info a:hover {
  text-decoration: underline;
}

/* Map Styling */
.contact-section .map-container {
  width: 100%;
  margin: 0;
}

.contact-section .map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
} 

/* Animations */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.animate.slide-up {
  opacity: 1;
  transform: translateY(0);
}

/* Trigger animation when in viewport */
.contact-section.visible .animate {
  opacity: 1;
  transform: translateY(0);
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.4s ease;
}

.hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Animations and Utility Classes */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  transform: translateY(0);
}

.slide-up {
  transform: translateY(20px);
}

.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

button {
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

/* Fade animations */
@keyframes fadeInSmooth {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOutSmooth {
  from { opacity: 1; }
  to { opacity: 0; }
}

.fade-in {
  animation: fadeInSmooth 1s forwards;
}

.fade-out {
  animation: fadeOutSmooth 0.5s forwards;
}

/* Testimonial Styles */
.testimonial-container {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-container blockquote {
  font-style: italic;
  color: #333;
  margin-bottom: 10px;
}

.testimonial-container footer {
  font-weight: bold;
  color: var(--primary);
}

/* Staggered animations for cards */
.cards .card {
  transition-delay: 0s !important;
}


/* Form Result Message */
#form-result {
  transition: opacity 0.5s ease;
}

/* Certificate Verification Form */
#verifyForm {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

#verifyForm .form-row {
  margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  /* Form adjustments */
  #verifyForm input {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }
  #verifyForm button {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }

  /* Cards adjustments */
  .cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .cards .card {
    width: 90%;
    max-width: 400px;
  }
}



@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-8px);
  }
  40%, 80% {
    transform: translateX(8px);
  }
}

.shake {
  animation: shake 0.3s;
}


.captcha-container label {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  animation: bounce 1.5s infinite;
}

.captcha-container input {
  padding: 0.8rem;
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-size: 1.1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.captcha-container input:focus {
  border-color: #ff6f61;
  box-shadow: 0 0 8px #ff6f61;
  outline: none;
}

.contact-us-section {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* .contact-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
} */
/* 
.contact-box h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--primary);
} */

.contact-box .contact-info p {
  margin: 8px 0;
  font-size: 1.1rem;
  color: #333;
}

.contact-box .contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-box .contact-info a:hover {
  text-decoration: underline;
}


.map-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px; /* optional space above the map */
}

.map-container iframe {
  width: 100%;
  max-width: 600px; /* prevents the map from becoming too wide on large screens */
  height: 300px; /* adjust height as needed */
  border: 0;
}

