/* Custom styles with Bootstrap integration */

/* Import fonts */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/Ubuntu.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-color: #F54E02;
  --dark-grey: #000000;
  --grey: #717171;
  --light-grey: #F7F7F7;
  --bs-primary: #F54E02;
  /* Override Bootstrap primary color */
}

/* Base and Typography */
body {
  font-family: 'Ubuntu', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-fredoka {
  font-family: 'Fredoka', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Brand colors and utility classes */
.text-brand {
  color: var(--brand-color) !important;
}

.bg-brand {
  background-color: var(--brand-color) !important;
}

.border-brand {
  border-color: var(--brand-color) !important;
}

.bg-darkgrey {
  background-color: var(--dark-grey);
}

.bg-grey {
  background-color: var(--grey);
}

.bg-lightgrey {
  background-color: var(--light-grey);
}

.text-grey {
  color: var(--grey);
}

.list-style-none {
  list-style-type: none;
  padding-left: 0;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button styles */
.btn-brand {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  color: white;
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: #d94500;
  border-color: #d94500;
  color: white;
}

/* Interactive elements */
a,
.btn {
  transition: all 0.3s ease;
}

a:hover:not(.btn),
button:hover:not(.btn) {
  transform: translateY(-2px);
}

/* Hover utilities */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Background utilities */
.bg-gradient-to-t {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
}

.banner {
  background-color: #000;
}

.approval-badges {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border-left: 3px solid var(--brand-color);
}

@media (max-width: 767.98px) {
  .approval-badges .col-6:nth-child(3) {
    margin-top: 0.5rem;
  }
}

/* ===== NAVBAR STYLES ===== */
/* Base navbar */
#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background-color: #000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Desktop navbar styles */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0.8rem !important;
}

.nav-link:hover {
  color: #F54E02 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #F54E02;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Button styling */
.btn-brand {
  background-color: #F54E02;
  border-color: #F54E02;
  transition: all 0.3s ease;
}

.btn-brand:hover {
  background-color: #d94500;
  border-color: #d94500;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(245, 78, 2, 0.3);
}

/* Improved dropdown styles */
.dropdown-menu {
  background-color: #363636 !important;
  border: none !important;
  border-radius: 0.375rem !important;
  margin-top: 0.5rem !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
  padding: 0.5rem 0 !important;
  min-width: 220px !important;
  display: none;
  transition: none !important;
}

/* Remove dropdown arrow in desktop mode */
@media (min-width: 768px) {
  .dropdown-toggle::after {
    display: none !important;
  }

  /* Improved hover behavior to prevent dropdown from disappearing */
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  /* Add an invisible area to prevent gaps between nav item and dropdown */
  .dropdown {
    position: relative;
  }

  .dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
  }

  /* Keep dropdown visible when hovering over dropdown menu */
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
  }
}

.dropdown-item {
  color: white !important;
  padding: 0.6rem 1.2rem !important;
  transition: all 0.3s ease !important;
  font-size: 0.9rem !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(245, 78, 2, 0.2) !important;
  color: #F54E02 !important;
  padding-left: 1.5rem !important;
}

/* ===== MOBILE SIDEBAR STYLES ===== */
.mobile-sidebar-overlay {
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
}

.mobile-sidebar {
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  background-color: #363636;
}

/* Mobile navigation links */
.mobile-nav-link {
  display: block;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link.active {
  color: #F54E02;
}

.mobile-nav-link:hover {
  color: #F54E02;
  text-decoration: none;
  transform: translateX(5px);
}

.mobile-nav-sublink {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mobile-nav-sublink:hover {
  color: #F54E02;
  text-decoration: none;
  transform: translateX(3px);
}

/* Style for the mobile dropdown menu */
.mobile-nav-dropdown .bi-chevron-down {
  transition: transform 0.3s ease;
}

.mobile-nav-dropdown [aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

/* Animated hamburger icon */
#mobileMenuBtn {
  width: 30px;
  height: 20px;
  position: relative;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#mobileMenuBtn span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

#mobileMenuBtn span:nth-child(1) {
  top: 0px;
}

#mobileMenuBtn span:nth-child(2),
#mobileMenuBtn span:nth-child(3) {
  top: 8px;
}

#mobileMenuBtn span:nth-child(4) {
  top: 16px;
}

#mobileMenuBtn.open span:nth-child(1),
#mobileMenuBtn.open span:nth-child(4) {
  top: 8px;
  width: 0%;
  left: 50%;
}

#mobileMenuBtn.open span:nth-child(2) {
  transform: rotate(45deg);
}

#mobileMenuBtn.open span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile dropdown */
.collapse:not(.show) {
  display: none;
}

.collapse.show {
  display: block;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

/* Fix for sidebar elements */
.mobile-sidebar ul {
  list-style: none;
  padding-left: 0;
}

.mobile-sidebar .space-y-5>*+* {
  margin-top: 1.25rem;
}

.mobile-sidebar .space-y-4>*+* {
  margin-top: 1rem;
}

.mobile-sidebar .space-x-4>*+* {
  margin-left: 1rem;
}

/* Fix for Bootstrap-Tailwind conflicts */
.hidden {
  display: none !important;
}

.md\:hidden {
  display: block;
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none !important;
  }

  .hidden.md\:flex {
    display: flex !important;
  }
}

.transform {
  transform: translateX(0);
}

.translate-x-full {
  transform: translateX(100%);
}

.ms-2 {
  margin-left: 0.5rem;
}

.ps-4 {
  padding-left: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.border-start {
  border-left-width: 1px;
  border-left-style: solid;
}

.border-2 {
  border-width: 2px;
}

.border-brand {
  border-color: #F54E02;
}

.border-start.border-brand.border-2 {
  border-left: 2px solid #F54E02;
}

/* Ensure dropdown appears properly in all browsers */
.dropdown-menu.show {
  display: block;
}

/* Mobile sidebar specific fixes */
.mobile-sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: 100vh;
}

.mobile-sidebar .p-5 {
  padding: 1.25rem;
}

.mobile-sidebar .mb-8 {
  margin-bottom: 2rem;
}

.mobile-sidebar .mt-8 {
  margin-top: 2rem;
}

.mobile-sidebar .justify-between {
  justify-content: space-between;
}

.mobile-sidebar .justify-center {
  justify-content: center;
}

.mobile-sidebar .items-center {
  align-items: center;
}

/* Fixes for small screens */
@media (max-height: 600px) {
  .mobile-sidebar {
    overflow-y: auto;
  }
}

/* About section */
.about-section {
  background-color: var(--brand-color);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.about-content {
  width: 50%;
  color: white;
  padding-right: 40px;
}

.about-visual {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.quote-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.quote-line {
  width: 40px;
  height: 3px;
  background-color: #fff;
  display: inline-block;
  margin-right: 15px;
}

.quote-text {
  font-style: italic;
  font-size: 16px;
  opacity: 0.9;
}

.about-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: 'Fredoka', sans-serif;
  line-height: 1.1;
}

.about-subtitle {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 25px;
  font-family: 'Fredoka', sans-serif;
  line-height: 1.1;
}

.about-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 35px;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  margin-bottom: 30px;
  height: 300px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.partners-container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
}

.partners-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-left: 15px;
  color: white;
}

.partners-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 5px;
  background-color: white;
  border-radius: 10px;
}

.partners-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.partner-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.partner-logo {
  height: 60px;
  width: 60px;
  object-fit: contain;
  margin-right: 15px;
}

.partner-name {
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.learn-more-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: white;
  color: var(--brand-color);
}

.learn-more-btn:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Course cards */
.course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.price-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--brand-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 10;
}

.duration-tag {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 10;
}

/* Service cards */
.service-card {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  color: white;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(245, 78, 2, 0.2);
}

h5.card-title.font-fredoka.mb-3 {
  color: var(--brand-color) !important;
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(245, 78, 2, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 20px;
}

/* Course slider */
#course-slider {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

#course-slider::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}

/* Font Awesome icon styling */
.fas.fa-check-circle.text-brand,
.fas.fa-check.text-brand {
  color: var(--brand-color);
}

#tagline span {
  font-size: 1.8rem;
}

#statistics {
  margin-right: 14rem;
  margin-top: 1rem;
}

/* Background images - Mobile */
.bg-banner-mobile {
  background-image: url('../images/Mobile/banner-mb-left-bg.svg'), url('../images/Mobile/banner-mb-right-bg.svg');
  background-position: left -100px top -50px, right bottom;
  background-repeat: no-repeat;
  background-size: contain;
}

.bg-aboutus-mobile {
  background-image: url('../images/Mobile/aboutus-mb-section1-right-bg.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.bg-aboutus-top-mobile {
  background-image: url('../images/Mobile/aboutus-mb-section4-top-bg.svg');
  background-repeat: no-repeat;
}

.bg-landing3-mobile {
  background-image: url('../images/Mobile/landing3-mb-right-bg.svg');
  background-position: right bottom;
  background-repeat: no-repeat;
}


/* Footer Styles */
footer {
  background-color: #141414;
  padding: 70px 0 40px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--brand-color), transparent);
}

.footer-links li {
  margin-bottom: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand-color);
  transform: translateX(5px);
}

.footer-contact .icon {
  color: var(--brand-color);
  min-width: 20px;
  display: flex;
  align-items: center;
}

.footer-contact li {
  margin-bottom: 15px;
}

.footer-contact a {
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: var(--brand-color) !important;
}

/* Social Media Icons */
footer .social-icons {
  display: flex;
  gap: 12px;
}

footer .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

footer .social-icons a:hover {
  background-color: var(--brand-color);
  color: white;
  transform: translateY(-3px);
}

/* Certification Badges */
.cert-badge {
  transition: all 0.3s ease;
}

.cert-badge:hover {
  transform: translateY(-3px);
}

.cert-badge .bg-white {
  transition: all 0.3s ease;
}

.cert-badge:hover .bg-white {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-color);
  color: white;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #d94500;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* General hover effect */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
}

/* Footer Responsive Styles */
@media (max-width: 991px) {
  .footer-contact li {
    margin-bottom: 10px;
  }
}

@media (max-width: 767px) {
  footer {
    padding: 50px 0 30px;
  }

  .footer-links h5,
  .footer-contact h5 {
    margin-top: 20px;
  }
}

/* Media Queries */
@media (max-width: 991px) {

  .about-content,
  .about-visual {
    width: 100%;
    padding-right: 0;
  }

  .about-content {
    margin-bottom: 40px;
  }

  .about-title,
  .about-subtitle {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 50px 0;
  }

  .about-image {
    height: 250px;
  }

  /* Team member cards for mobile */
  .team-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .team-carousel::-webkit-scrollbar {
    display: none;
  }

  .team-carousel .team-card {
    flex: 0 0 auto;
    width: 80%;
    scroll-snap-align: center;
    margin-right: 1rem;
  }
}

@media (max-width: 480px) {
  .partner-card {
    flex-direction: column;
    text-align: center;
  }


  p.text-white-50.text-start.mb-4 {
    margin-left: 10px;
  }

  .partner-logo {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (min-width: 768px) {
  .bg-banner-desktop {
    background-image: url('../images/banner-left-bg.svg'), url('../images/banner-right-bg.svg');
    background-position: left -400px top -100px, right -150px bottom -400px;
  }

  .lg-bg-landing4 {
    background-image: url('../images/landing4-left-bg.svg');
    background-position: left top -150px;
  }

  .lg-bg-landing5 {
    background-image: url('../images/landing5-right-bg.svg');
    background-position: right top 19px;
  }

  .lg-bg-landing6 {
    background-image: url('../images/landing6-left-bg.svg');
    background-position: left 80px top 50px;
  }

  .lg-bg-landing7 {
    background-image: url('../images/landing7-right-bg.svg');
    background-position: right -400px top;
  }

  .lg-bg-landing7-left {
    background-image: url('../images/landing7-left-bg.svg');
  }
}