/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #1a2a3a; /* Darker blue for better contrast */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  height: 81px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  margin-top: 2px;
  margin-bottom: 0px;
}

.logo img {
  height: 70px;
  transition: all 0.3s ease;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  margin: 0 15px;
}

.nav-link {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-link i {
  margin-left: 5px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: #ff6b6b; /* Brighter red for better visibility */
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 20px;
  color: #1a2a3a;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #ff6b6b;
  padding-left: 25px;
}

.dropdown-divider {
  height: 1px;
  background-color: #eaeaea;
  margin: 8px 0;
}

.dropdown-item.view-all {
  font-weight: 600;
  color: #ff6b6b;
  text-align: center;
}
.view-all{
  margin-left: 15px;
}
/* Mega Menu for Courses */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 260%;
  transform: translateX(-50%) translateY(10px);
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 700px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.course-card1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  /* background-color:#ddd; */
  border-radius: 10px;
  transition: all 0.3s ease;
}

.course-card:hover {
  background-color: #f0f0f0;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-icon {
  width: 150px;
  height: 100px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-icon img {
  /* max-width: 100%;
  max-height: 100%; */
  width:100px;
  height:80px;
}

.course-name {
  color: #0f172a;
  font-weight: 500;
  text-align: center;
  font-size: 0.9rem;
}

.mega-menu-footer {
  margin-top: 20px;
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #eaeaea;
}

.view-all-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #ff6b6b;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
  color: white;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
}

.quick-enquiry-btn {
  background-color: #ff6b6b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: -130px;
}

.quick-enquiry-btn:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  margin-left: 20px;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

/* ========== MOBILE RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 992px) {
  /* Header adjustments */
  .header-content {
    padding: 12px 20px;
  }

  /* Mobile menu toggle styling */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
  }

  /* Main navigation - slides in from right */
  .main-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 70px);
    background-color: #1a2a3a;
    flex-direction: column;
    padding: 25px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }

  .main-nav.active {
    right: 0;
  }

  /* Nav list adjustments */
  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    margin: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
  }

  /* Dropdown adjustments */
  .dropdown-menu, 
  .mega-menu {
    position: static;
    width: 100% !important;
    transform: none !important;
    background-color: rgba(0,0,0,0.2);
    box-shadow: none;
    display: none;
    margin-top: 10px;
    padding: 0;
    border-left: 2px solid #ff6b6b;
  }

  .nav-item.active .dropdown-menu,
  .nav-item.active .mega-menu {
    display: block;
  }

  .dropdown-item {
    padding: 10px 15px;
    color: #fff;
  }

  /* Mega menu grid adjustments */
  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .course-card {
    flex-direction: columnn;
    align-items: center;
    padding: 10px;
    background-color: var(--dark-bg);
  }

  .course-icon {
    width: 40px;
    height: 40px;
    margin: 0 15px 0 0;
  }

  .course-icon img {
    width: 100%;
    height: 100%;
  }

  .course-name {
    text-align: left;
  }

  /* Header actions moved to left on mobile */
  .header-actions {
    order: -1;
    margin-left: 0;
  }
}

/* ========== HAMBURGER MENU ANIMATION ========== */
.mobile-menu-toggle span:nth-child(1) {
  transform: none;
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  transform: none;
  top: 50%;
}

.mobile-menu-toggle span:nth-child(3) {
  transform: none;
  bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
  top: 50%;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
  bottom: 50%;
}

/* ========== CENTERED DROPDOWNS (DESKTOP) ========== */
@media (min-width: 993px) {
  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
  }

  .nav-item:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }

  .mega-menu {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
  }

  .nav-item:hover .mega-menu {
    transform: translateX(-50%) translateY(0);
  }
}

/* ========== SMALLER SCREENS ADJUSTMENT ========== */
@media (max-width: 576px) {
  .header-content {
    padding: 10px 15px;
  }

  .main-nav {
    width: 85%;
  }

  .quick-enquiry-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-right: 93px
  }
}
/* CTA Section */
.cta-section {
  font-family: 'Inter', sans-serif;
  padding: 50px 20px;
  background: linear-gradient(135deg, #1e2b3c, #243447);
  color: #ffffff;
  text-align: center;
  position: relative;
  /* clip-path: polygon(0 12%, 100% 0%, 100% 100%, 0 100%); */
  z-index: 1;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 15px;
}

.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.3;
}

.cta-content p {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 30px;
  line-height: 1.5;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-buttons a {
  padding: 10px 24px;
  background-color: #f76b6b;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.cta-buttons a:hover {
  background-color: #ff7d7d;
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 1.6rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .cta-buttons a {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}


/* Footer Styles */
.footer {
  background-color: #1a252f;
  color: #fff;
  position: relative;
}

.footer-top {
  padding: 0px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: -25px;
  margin-left: 100px;
}

.footer-logo img {
  height: 140px;
  /* width: 260px; */
  margin-top: -30px;
  margin-bottom: 17px;
  margin-left: -30px;
}

.footer-about {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  margin-right: -26px;
  margin-top: 20px;
  width: 330px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #0070f3;
  transform: translateY(-5px);
}

.footer-widget-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #0070f3;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a::before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  color: #0070f3;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.contact-info {
  margin-top: 20px;
}

.contact-item {
  display: flex;
  margin-bottom: 15px;
}

.contact-item i {
  color: #0070f3;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #0070f3;
}

/* Enquiry Form Popup */
/* Compact Horizontal Enquiry Form Popup */
.enquiry-popup-content {
  background-color: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  padding: 0;
  position: relative;
  display: flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 0;
  overflow: hidden;
}

.enquiry-header {
  background-color: #0f1f35;
  color: #fff;
  padding: 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.enquiry-header h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
  text-align: center;
}

.enquiry-header p {
  color: #ccc;
  font-size: 0.9rem;
  text-align: center;
  max-width: 240px;
}

.enquiry-header .enquiry-icon {
  background-color: #fff;
  color: #ff6b35;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.enquiry-form {
  flex: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 30px 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.btn-block {
  width: 100%;
  height: 45px;
  margin-top: 10px;
  background: linear-gradient(to right, #ff6b35, #d9480f);
  border: none;
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-block i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-block:hover i {
  transform: translateX(4px);
  color: white;
}
.btn-block:hover{
  color: white;
}

.enquiry-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  font-size: 16px;
  color: #333;
}

@media (min-width: 768px) {
  .enquiry-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-group.submit {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .enquiry-popup-content {
    flex-direction: column;
    max-width: 90%;
  }

  .enquiry-header {
    padding: 20px;
  }

  .enquiry-form {
    grid-template-columns: 1fr;
  }

  .form-group.submit {
    grid-column: span 1;
  }
}

.enquiry-logo {
  position: absolute;
  top: 20px;
  left: 20px;
}

.enquiry-logo img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}


/* Responsive Styles */
@media (max-width: 1200px) {
  .mega-menu {
    width: 700px;
  }

  .mega-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.active {
    left: 0;
  background-color: #1a2a3a; /* Darker blue for better contrast */

  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    margin: 10px 0;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
  }

  .dropdown-menu,
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
    padding-left: 20px;
    display: none;
  }
  .view-all{
  margin-left: 15px;
  color:white;
}

  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-item.active .dropdown-menu,
  .nav-item.active .mega-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .mega-menu-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .header-content {
    padding: 10px 0;
  }

  .logo img {
    height: 65px;
  }

  .enquiry-popup-content {
    padding: 20px;
    width: 90%;
  }
}

