/* Header Section */

body {
  font-family: 'Poppins', sans-serif;
}

.hero-section {
  background: linear-gradient(to right, #ecf4f8, #ffffff);
  padding: 80px 40px;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  color: #1f2937;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 30px;
}

.hero-btn {
  background-color: #338099;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background-color: #256073;
}

.hero-video {
  flex: 1;
  max-width: 500px;
}

.hero-video video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


body
{
background-color: #f9f9f9;
/* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");  */
font-family: 'Garamond', serif;
}


.video-section video {
  width: 100%; /* Make the video responsive */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Add subtle shadow */
}

/* Section Divider */
.section-divider {
border: 0;
height: 2px;
/* background: linear-gradient(to right, #338099, #4caf50);*/
/* background: #338099;  */
background:rgba(51,128,153,0.8) ; /*#338099*/
filter: blur(2px);
margin: 40px 0; 
width: 80%; 
margin-left: auto;
margin-right: auto; 
border-radius: 10px;

}


/* Navigation Bar */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 999;
  padding: 12px 0;
  transition: all 0.3s ease-in-out;
}

nav .menu {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

nav .logo a {
  color: #111827;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

nav .menu ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav .menu ul li a {
  position: relative;
  color: #1f2937;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 12px;
  transition: color 0.2s ease;
}

nav .menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #338099;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease-out;
}

nav .menu ul li a:hover::after {
  transform: scaleX(1);
}


.logo a {

  color: black;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-image {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 50%; /* Optional: circular logo */
}

nav .menu ul {
  display: flex;
  list-style: none;
}

nav .menu ul li {
  margin: 0 15px;
}

nav .menu ul li a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

nav .menu ul li a:hover {
  background: #fff;
  color: #1b1b1b;
}
nav .menu .logo {
  display: flex;
  align-items: center;
}


.section-title {
  font-size: 2.5rem;
  color: #338099;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: black;
  margin-bottom: 30px;
}


.courses-section {
  text-align: center;
  padding: 50px 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
  /* justify-items: center; */
}

.flip-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4; /* keeps all cards same height */
  perspective: 1000px;
}


.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}


.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
  z-index: 9999;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}



.flip-card-front {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}


.card-overlay {
  background: rgba(0, 0, 0, 0.55);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.course-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
}




.card-btn {
  margin-top: 15px;
  padding: 10px 24px;
  background: linear-gradient(to right, #ec4899, #8b5cf6);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.card-btn:hover {
  background: #9333ea;
}




/* Modern Footer */
.modern-footer {
  background-color: #f8fafc;
  color: #1f2937;
  padding: 50px 20px 20px;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid #e5e7eb;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #338099;
}

.footer-column p,
.footer-column a {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #4b5563;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #338099;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  justify-content: center;
  
}
.footer-column.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
 
}

.footer-social a {
  font-size: 1.5rem;
  color: #1f2937;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #338099;
}


.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #6b7280;
}













/* Responsive Design */

/* Tablets (landscape) and small desktops */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text, .hero-video {
    flex: unset;
    max-width: 100%;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flip-card {
    max-width: 90%;
    margin: auto;
  }

  nav .menu ul {
    gap: 16px;
  }
}

/* iPads and small tablets */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero-btn {
    padding: 10px 20px;
  }

  .course-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .flip-card {
    max-width: 100%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-column {
    text-align: center;
  }
}

/* Phones */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .flip-card {
    max-width: 100%;
  }

  nav .menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* On touch devices, ignore hover */
@media (hover: none) and (pointer: coarse) {
  .flip-card:hover .flip-card-inner {
    transform: none;
  }

  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
}




