/* ===== PROPER MOBILE RESPONSIVE FIXES - ORIGINAL COLORS ===== */
@media (max-width: 768px) {
  /* Fix banner - keep original styling */
  .home-video-container {
    height: 100vh !important;
    padding-top: 100px !important;
    padding-bottom: 50px !important;
    margin-top: 0 !important;
    /* Keep original background, don't change colors */
  }
  
  .home-video-title {
    font-size: 6.4rem !important; /* Reduced font size for 2 lines max */
    line-height: 1.6 !important;
    margin: 20px 0 0 20px !important;
    text-align: left !important;
    max-width: 80% !important;
    padding: 0 15px !important;
    white-space: normal !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    /* Keep original colors */
  }
  
  /* Force title to be left aligned */
  .home-video-container .home-video-title,
  .hero-content .home-video-title {
    text-align: left !important;
    margin-left: 20px !important;
    margin-right: auto !important;
  }
  
  .explore-courses-btn {
    font-size: 1rem !important;
    padding: 12px 25px !important;
    margin: 20px 0 0 20px !important;
    display: inline-block !important;
    width: auto !important;
    text-align: left !important;
    /* Keep original colors */
  }
  
  /* Fix training categories - one card per row */
  .tcats-grid .col-12,
  .tcats-grid .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px !important;
  }
  
  .tc-card {
    height: 160px !important;
    margin-bottom: 15px !important;
    /* Keep original styling */
  }
  
  .tc-card-title {
    font-size: 18px !important;
    padding: 10px !important;
    text-align: center !important;
    max-width: 100% !important;
    /* Keep original colors */
  }
  
  /* Fix services - one card per row */
  .services-grid .col-12,
  .services-grid .col-md-6,
  .services-grid .col-lg-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .service-card {
    padding: 20px 15px !important;
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    /* Keep original colors */
  }
  
  .service-title {
    font-size: 18px !important;
    /* Keep original colors */
  }
  
  .service-desc {
    font-size: 14px !important;
    /* Keep original colors */
  }
  
  /* ONLY hide arrows for free and newest courses - don't touch anything else */
  .my-swiper .swiper-button-prev,
  .my-swiper .swiper-button-next {
    display: none !important;
  }
  
  /* Force one card per view for free and newest courses */
  .my-swiper .swiper-slide {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  /* Hide pagination circles for logos sections */
  .logos-swiper .swiper-pagination,
  .clients-swiper .swiper-pagination,
  .approved-swiper .swiper-pagination,
  .accred-swiper .swiper-pagination {
    display: none !important;
  }
  
  /* Container padding */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Section spacing - keep original colors */
  .tcats-wrap,
  .services-wrap,
  .home-sections {
    display: block !important;
    width: 100% !important;
    padding: 20px 0 !important;
    /* Keep original colors */
  }
}

@media (max-width: 576px) {
  .home-video-title {
    font-size: 3rem !important;
    margin: 10px 10px 0 10px !important;
    padding: 0 10px !important;
  }
  
  .explore-courses-btn {
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
  }
  
  .tc-card {
    height: 140px !important;
  }
  
  .tc-card-title {
    font-size: 16px !important;
    padding: 8px !important;
  }
  
  .service-card {
    padding: 15px 12px !important;
  }
  
  .service-title {
    font-size: 16px !important;
  }
  
  .service-desc {
    font-size: 13px !important;
  }
}

/* ===== COMPREHENSIVE MOBILE & TABLET RESPONSIVE FIXES ===== */

.flagstrap-icon.flagstrap-sa {

  background-position: 0 -132px

}

.footer .footer-social {
display: flex;
justify-content: center;
gap: 15px;
padding-right: 150px;
width: 100%;
max-width: 100%;
}

/*.container-fluid, .home-video-container {*/

/*    margin: 0;*/
/*    padding: 0;*/
/*}*/

.home-video-container {
margin-top: -220px;
width: 100vw;
height: 100vh;
object-fit: cover;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}

#homeHeroVideoBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Mobile video fixes */
  -webkit-playsinline: true;
  playsinline: true;
  webkit-playsinline: true;
}

/* Mobile video enhancements */
@media (max-width: 768px) {
  #homeHeroVideoBackground {
    /* Ensure video covers full mobile screen */
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    /* Mobile video playback fixes */
    -webkit-playsinline: true !important;
    playsinline: true !important;
    webkit-playsinline: true !important;
    /* Force video to play on mobile */
    autoplay: true !important;
    muted: true !important;
    loop: true !important;
  }
  
  /* Ensure video container is properly sized for mobile */
  .home-video-container {
    position: relative !important;
    overflow: hidden !important;
  }
  
  /* Video overlay for better text readability on mobile */
  .home-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%) !important;
    z-index: 1 !important;
    pointer-events: none;
  }
}

/* Extra small mobile devices */
@media (max-width: 576px) {
  #homeHeroVideoBackground {
    /* Optimize for very small screens */
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* Hide the play button overlay */
.home-video-play-button {
  display: none !important;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.4); 
  z-index: 1;
  pointer-events: none;

}

.btn.explore-courses-btn {
 background-color: #febd22;
 color: #042148;
 font-weight: 700;
 font-size: 1.3rem;
 padding: 10px 35px;
 border-radius: 10px;
 text-decoration: none;
 transition: all 0.3s ease;
 border: none;
 box-shadow: 0 6px 20px rgba(254, 189, 34, 0.4);
 display: inline-block;
 z-index: 10;
 position: relative; 
 text-align: center;
}

.home-video-title {
  font-size: 6.4rem !important;
  line-height: 1.6 !important;
letter-spacing: 0.03em;
font-weight: normal;
color: #ffffff;
max-width: 80%;
margin: 60px 40px 0 0;  
text-align: left;      
}

/* RTL support for Arabic */
.rtl .home-video-title {
text-align: right;
margin: 60px 0 0 40px;
}

.rtl .hero-content {
margin-right: 60px !important;
margin-left: 0 !important;
}

@media (max-width: 768px) {

.home-video-title {
  font-size: 3.5rem;
  margin: 40px 60px 0 0;
  text-align: left;
}

.rtl .home-video-title {
  margin: 40px 0 0 60px;
  text-align: right;
}

}

.home-video-container {
padding-top: 194px;
padding-bottom: 94px;
background-repeat: no-repeat;
background-size: cover;
border-radius: 15px;
}

@media (max-width: 991px) {
.home-video-container {
  padding-top: 94px;
}
}
@media (max-width: 767px) {
.home-video-container {
  background-size: contain;
  border-radius: 0;
}
}
.home-video-container .home-video-play-button {
width: 147px;
height: 147px;
box-shadow: 0 20px 12px 0 rgba(0, 0, 0, 0.1);
background-color: #ffffff;
border-radius: 50%;
cursor: pointer;
z-index: 22;
}
.home-video-container .home-video-play-button:after, .home-video-container .home-video-play-button:before {
content: "";
position: absolute;
height: 100%;
width: 100%;
background-color: #ffffff;
opacity: 0.4;
z-index: -1;
border-radius: 50%;
}
.home-video-container .home-video-play-button:before {
animation: pluse 2s ease-out infinite;
}
.home-video-container .home-video-play-button:after {
animation: pluse 2s 1s ease-out infinite;
}

@media (max-width: 991px) {
.home-video-container .home-video-play-button {
  width: 75px;
  height: 75px;
}
.home-video-container .home-video-play-button .feather-play {
  width: 25px;
  height: 25px;
}
}

@media (max-width: 768px) {
.home-video-title {
  font-size: 3.5rem;
  margin: 40px 60px 0 0;
  text-align: left;
}
}

.home-video-container .home-video-hint {
font-size: 16px;
font-weight: normal;
line-height: 1.19;
color: #ffffff;
pointer-events: none;
}

/* Flagstrap Language Selector Override Styles */
.flagstrap .btn {
background-color: rgba(255, 255, 255, 0.9) !important;
color: #333 !important;
border: 1px solid rgba(255, 255, 255, 0.3) !important;
border-radius: 8px !important;
padding: 8px 15px !important;
font-size: 14px !important;
font-weight: 500 !important;
transition: all 0.3s ease !important;
backdrop-filter: blur(10px) !important;
box-shadow: none !important;
}

.flagstrap .btn:hover,
.flagstrap .btn:focus,
.flagstrap .btn:active {
background-color: rgba(255, 255, 255, 1) !important;
border-color: rgba(255, 255, 255, 0.5) !important;
transform: translateY(-1px) !important;
color: #333 !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.navbar.scrolled .flagstrap .btn {
background-color: #ffffff ;
color: #333 !important;
border: 1px solid #e0e0e0 !important;
}

.navbar.scrolled .flagstrap .btn:hover,
.navbar.scrolled .flagstrap .btn:focus,
.navbar.scrolled .flagstrap .btn:active {
background-color: #f8f9fa !important;
border-color: #d0d0d0 !important;
color: #333 !important;
}

.flagstrap .dropdown-menu {
border-radius: 8px !important;
border: 1px solid rgba(0, 0, 0, 0.1) !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
margin-top: 5px !important;
}

.flagstrap .dropdown-menu li a {
padding: 8px 15px !important;
color: #333 !important;
transition: all 0.2s ease !important;
}

.flagstrap .dropdown-menu li a:hover {
background-color: #f8f9fa !important;
color: #254c74 !important;
}

.flagstrap-icon {
margin-right: 8px !important;
}

.service-card {
  perspective: 1000px;
  position: relative;
  cursor: pointer;
  max-width: 330px; 
  width: 100%;
}

.card-face {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-front {
  color: #333;
  z-index: 2;
}

.card-back {
  background-color: #254c74;
  color: #fff;
  transform: rotateY(180deg);
}

.service-card:hover .card-front {
  transform: rotateY(180deg);
}

.service-card:hover .card-back {
  transform: rotateY(360deg);
}

.service-title {
  font-size: 24px;
  font-weight: bold;
  color:#ffffff;
}

.service-text {
  font-size: 16px;
  margin-top: 10px;
}

.service-title-front{
  font-size: 24px;
  font-weight: bold;
  color:#fdbe2c;
}

.service-text-front{
  font-size: 16px;
  margin-top: 10px;
  color:#fdbe2c;
}

.custom-gap {
gap: 60px;  
}

/* FIX SECTION SPACING - REDUCE GAPS BETWEEN SECTIONS */
.home-sections {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

.home-sections:first-child {
  margin-top: 40px !important;
}

/* Specifically target the gap between Our Clients and Accreditations */
.home-sections.home-sections-swiper.container {
  margin-bottom: 150px !important;
}

/* Target the container that comes after Our Clients section */
.home-sections + .container,
section + .container {
  margin-top: 150px !important;
}

/* Services section spacing */
.services-wrap {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* TCATS section spacing */
.tcats-wrap {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* Override any existing large margins */
.tcats-wrap {
  margin-bottom: 20px !important;
}

/* Ensure consistent spacing for all sections */
section + section,
section + .container,
.container + section {
  margin-top: 150px !important;
}

/* Force override for the specific gap between clients and accreditations */
.home-sections-swiper.container + .container {
  margin-top: 20px !important;
}

/* OVERRIDE THE NEGATIVE MARGIN RULE IN APP.CSS */
.home-sections + .home-sections {
  margin-top: 20px !important;
}

/* More specific overrides for the problematic rule */
.home-sections.home-sections-swiper.container + .container {
  margin-top: 150px !important;
}

/* Target the specific sections we want to fix */
section.home-sections.home-sections-swiper.container + div.container {
  margin-top: 20px !important;
}

/* Force override any negative margins */
.home-sections + * {
  margin-top: 20px !important;
}

/* Specific fix for the clients to accreditations gap */
.home-sections-swiper.container[style*="margin-bottom"] + .container {
  margin-top: 20px !important;
}

/* NUCLEAR OPTION - OVERRIDE ALL NEGATIVE MARGINS */
* {
  /*margin-top: 0px !important;*/
}

/* But then reset everything except what we want to fix */
body, html, div, section, article, aside, header, footer, nav, main {
  margin-top: initial !important;
}

/* Now specifically target the problematic sections */
.home-sections + .home-sections,
.home-sections + .container,
.home-sections + div,
section + .container,
section + div {
  margin-top: 20px !important;
}

/* Force override the specific problematic rule */
.home-sections + .home-sections {
  margin-top: 20px !important;
}

/* Target the exact structure we have */
.home-sections.home-sections-swiper.container + div.container {
  margin-top: 20px !important;
}

/* Override any inline styles */
.home-sections-swiper.container[style*="margin-bottom"] + .container {
  margin-top: 20px !important;
}

/* Last resort - use !important with maximum specificity */
body .home-sections + .home-sections,
body .home-sections + .container,
body section + .container {
  margin-top: 50px !important;
}

/* ===== HOME PAGE SPECIFIC STYLES ===== */

/* CSS Variables */
:root{
  --neft-blue-dark:#042148;
  --neft-blue-light:#0e3568;
  --neft-yellow:#febd22;
  --tcats-bg:#f2f4f7;           
}

/* ===== TRAINING CATEGORIES SECTION ===== */
.tcats-wrap{
  position:relative; 
  overflow:hidden;
  padding:70px 0 70px;
  background:var(--tcats-bg);
  margin-bottom:30px !important;
}

.tcats-wrap::before{
  content:"\f013";
  font-family:"Font Awesome 5 Free"; 
  font-weight:900;
  position:absolute; 
  z-index:0;
  top:-52%; 
  left:10%;
  transform:translateX(-50%) rotate(20deg);
  font-size:620px; 
  line-height:1;
  color:var(--neft-blue-dark);            
  pointer-events:none;
}

.tcats-wrap::after{
  content:"\f013";
  font-family:"Font Awesome 5 Free"; 
  font-weight:900;
  position:absolute; 
  z-index:0;
  top: 30%;
  right: -40%;  
  transform:translateX(-50%) rotate(20deg);
  font-size:620px; 
  line-height:1;
  color:var(--neft-blue-dark);            
  pointer-events:none;
}

.tc-card{

  display:flex; 
  align-items:center; 
  justify-content:center;
  position:relative; 
  height:220px;
  background-size:cover; 
  background-position:center;
  border-radius:16px; 
  overflow:hidden;
  box-shadow:0 10px 22px rgba(0,0,0,.12);
  transition:transform .22s ease, box-shadow .22s ease;
  text-decoration:none;
  padding:18px 18px 20px; 
}

.tc-card::before{ 
  content:""; 
  position:absolute; 
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.55) 100%);
}

.tc-card-title{
    
  display: flex;
  justify-content: center;   
  align-items: center;   
  position: relative;
  z-index: 1;
  color:#fff;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: left;
  max-width: 90%;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  /*display: inline-block;      */
  padding-left: 16px;        
  padding-top: 0;             
    margin: 0;                 
}

.tc-card-title::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;                 
  height: 60px;           
  background: #fff;
  border-radius: 2px;
  opacity: .95;
  transform: translateY(-50%);
}

.tc-card:hover{ 
  transform:translateY(-4px); 
  box-shadow:0 14px 28px rgba(0,0,0,.2);
}

.tcats-head{
  position:relative; 
  z-index:1;
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  gap:12px;
  margin:0 auto 30px; 
  text-align:center;
}

.tcats-title{
  margin:0; 
  font-size:35px; 
  font-weight:800; 
  letter-spacing:.6px;
  color:var(--neft-blue-dark); 
  text-transform:uppercase;
  margin-left: 8px;
}

.tcats-line{
  width:200px; 
  height:3px; 
  background:var(--neft-yellow);
  border-radius:2px; 
  position:relative; 
  overflow:hidden;
}

.tcats-line::before{
  content:""; 
  position:absolute; 
  inset:0; 
  background:#fff;
  transform:translateX(-100%); 
  animation:tcLine 1.8s linear infinite; 
  opacity:.45;
}

.tcats-line1{
  width:200px; 
  height:3px; 
  background:var(--neft-yellow);
  border-radius:2px; 
  position:relative; 
  overflow:hidden;
}

.tcats-line1::before{
  content:""; 
  position:absolute; 
  inset:0; 
  background:#fff;
  transform:translateX(-100%); 
  animation:tcLine 1.8s linear infinite; 
  opacity:.45;
}


@keyframes tcLine{
  0%{transform:translateX(-100%)} 
  50%{transform:translateX(100%)} 
  100%{transform:translateX(-100%)}
}

.tcats-grid{ 
  position:relative; 
  z-index:1; 
}

/* ===== SERVICES SECTION ===== */
.services-wrap{
  margin-bottom:30px !important;
  position:relative; 
  overflow:hidden;
  padding:50px 0 50px;                   
  background: var(--neft-blue-dark);
}

.services-wrap::before {
  content: "\f013";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  z-index: 0;
  top: -52%;
  left: 10%;
  transform: translateX(-50%) rotate(20deg);
  font-size: 820px;
  line-height: 1;
  color: var(--tcats-bg);
  pointer-events: none;
}

.services-wrap::after {
  content: "\f013";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  z-index: 0;
  top: 60%;
  right: -30%;
  transform: translateX(-50%) rotate(20deg);
  font-size: 520px;
  line-height: 1;
  color: var(--tcats-bg);
  pointer-events: none;
}

.services-head{   
  position:relative; 
  z-index:1;
  display:flex; 
  flex-direction:column;
  align-items:center; 
  justify-content:center;
  gap:12px;
  margin:0 auto 32px;                   
  text-align:center;
  max-width:100%;
}

.services-head .arrow{
  width:20px; 
  height:20px;
}

.services-grid{ 
  position:relative; 
  z-index:1; 
  row-gap:22px;
}

.service-card{
  position:relative; 
  height:100%;
  border-radius:22px; 
  padding:26px 22px;
  background:linear-gradient(180deg, rgba(12,58,110,.95), rgba(4,33,72,.9));
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 12px 30px rgba(4,33,72,.18);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  backdrop-filter:blur(2px);
}

.service-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 40px rgba(4,33,72,.28);
  border-color:rgba(255,255,255,.16);
  background:#256971;
}

.services-title{
  font-size:45px;
  color:#ffff;
}

.services-line{
  width:200px; 
  height:3px;
  background:var(--neft-yellow);
  border-radius:2px;
  position:relative; 
  overflow:hidden;
}

.service-icon{
  width:48px; 
  height:48px; 
  border-radius:14px;
  display:grid; 
  place-items:center;
  background:rgba(255,255,255,.08);
  margin-bottom:12px;
  color:#ffffff;
  transition:opacity .18s ease, transform .18s ease;
}

.service-icon i{ 
  font-size:22px; 
}

.service-card:hover .service-icon{ 
  opacity:0; 
  transform:translateY(-6px) scale(.82); 
}

.service-title{ 
  color:#fff; 
  font-weight:800; 
  font-size:20px; 
  margin:0 0 6px; 
  letter-spacing:.2px; 
}

.service-desc{ 
  color:#c9d3e3; 
  font-size:14.5px; 
  line-height:1.6; 
  margin:0; 
}

.btn-learn{
  display:inline-flex; 
  align-items:center; 
  gap:8px;
  background:var(--neft-yellow); 
  color:var(--neft-blue-dark);
  font-weight:800; 
  font-size:14px; 
  border-radius:12px; 
  border:0;
  padding:10px 16px; 
  text-decoration:none;
  box-shadow:0 8px 20px rgba(254,189,34,.35);
  opacity:0; 
  pointer-events:none; 
  margin-top:14px;
  transition:opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-learn i{
  font-size:14px; 
}

.service-card:hover .btn-learn{ 
  opacity:1; 
  pointer-events:auto; 
  transform:translateY(0); 
}

.btn-learn:hover{ 
  transform:translateY(-2px); 
  box-shadow:0 12px 28px rgba(254,189,34,.48); 
}

/* ===== SECTION TITLES STYLING ===== */
.section-title {
  text-align: center;
  font-size: 35px;
  margin-bottom: 40px;
}

.section-title h1 {
  text-align: center;
  font-size: 35px;
  font-weight: 700;
  color: #0b2b52; 
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ===== LOGOS SECTIONS STYLING ===== */
.logos-swiper,
.clients-swiper,
.approved-swiper,
.accred-swiper { 
  margin-top: 0 !important; 
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Ensure logo sections have the same container padding as course sections */
.home-sections .logos-swiper,
.home-sections .clients-swiper,
.home-sections .approved-swiper,
.home-sections .accred-swiper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 1140px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Apply consistent padding to all logo swiper wrappers */
.home-sections .logos-swiper .swiper-wrapper,
.home-sections .clients-swiper .swiper-wrapper,
.home-sections .approved-swiper .swiper-wrapper,
.home-sections .accred-swiper .swiper-wrapper {
  padding-left: 180px !important;
  padding-right: 150px !important;
}

/* Override Bootstrap row negative margins that are breaking the padding */
.home-sections .logos-swiper .row.g-3,
.home-sections .clients-swiper .row.g-3,
.home-sections .approved-swiper .row.g-3,
.home-sections .accred-swiper .row.g-3 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Ensure the swiper slides respect the padding */
.home-sections .logos-swiper .swiper-slide,
.home-sections .clients-swiper .swiper-slide,
.home-sections .approved-swiper .swiper-slide,
.home-sections .accred-swiper .swiper-slide {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Remove vertical padding from swiper wrappers */
.clients-swiper .swiper-wrapper,
.approved-swiper .swiper-wrapper,
.accred-swiper .swiper-wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Hide all swiper pagination dots */
.swiper-pagination {
  display: none !important;
}

.swiper-pagination-bullet {
  display: none !important;
}

.swiper-pagination-bullet-active {
  display: none !important;
}

/* ===== NAVBAR TRANSPARENCY FIX ===== */
/* Force navbar transparency on page load */
body .navbar:not(.scrolled),
body .navbar.navbar-light:not(.scrolled),
body #navbar:not(.scrolled),
body #navbar.navbar-light:not(.scrolled),
html body .navbar:not(.scrolled),
html body .navbar.navbar-light:not(.scrolled),
html body #navbar:not(.scrolled),
html body #navbar.navbar-light:not(.scrolled),
.navbar.navbar-light:not(.scrolled),
#navbar.navbar-light:not(.scrolled),
nav#navbar.navbar-light:not(.scrolled),
.navbar:not(.scrolled),
#navbar:not(.scrolled),
nav#navbar:not(.scrolled) {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Mobile navbar improvements */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
  }
  
  .navbar-nav {
    padding: 20px !important;
  }
  
  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
  
  .navbar-nav .nav-item:last-child {
    border-bottom: none !important;
  }
  
  .navbar-nav .nav-link {
    color: #333 !important;
    padding: 15px 0 !important;
    font-weight: 600 !important;
  }
  
  .navbar-nav .nav-link:hover {
    color: #254c74 !important;
    background-color: rgba(37, 76, 116, 0.05) !important;
  }
}

/* Nuclear option - override ALL navbar backgrounds */
.navbar.navbar-light {
  background-color: transparent !important;
  background: transparent !important;
}

.navbar.navbar-light.scrolled {
  background-color: #ffffff !important;
  background: #ffffff !important;
  box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1) !important;
}

.row.g-3 { 
  --bs-gutter-y: .5rem; 
}

/* ===== TITLE ALIGNMENT STYLES ===== */
/* Center-aligned titles for Training Categories and Our Services */
.tcats-wrap .tcats-head {
  text-align: center;
  position: relative;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-wrap .services-head {
  text-align: center;
  position: relative;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Left-aligned titles for logos sections (Our Clients, Approved By, Our Accreditations) */
.home-sections .tcats-head {
  text-align: left;
  position: relative;
  margin: 0 0 15px 15px;
  display: inline-block;
}

.tcats-head{
  text-align: left;
  position: relative;
  margin: 0 0 15px 0;       
}

.logos-grid img { 
  display:block; 
}

/* Center-aligned underline for Training Categories and Our Services */
.tcats-wrap .tcats-head .tcats-line,
.services-wrap .services-head .services-line {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 200px;
  height: 3px;
  background: #febd22;
  transform: translateX(-50%);
}

/* Left-aligned underline for logos sections */
.home-sections .tcats-head .tcats-line {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 200px;
  height: 3px;
  background: #febd22;
}

.tcats-head .tcats-line{
  position:absolute; 
  left:0; 
  bottom:-8px; 
  width:200px; 
  height:3px; 
  background:#febd22;
}

.tcats-head .tcats-line1{
  position:absolute; 
  bottom:-8px; 
  width:200px; 
  height:3px; 
  background:#febd22;
}
.home-sections{ 
  padding: 0px 0; 
}

@media (max-width: 767.98px){
  .logos-grid .col-6{ 
    margin-bottom:.5rem; 
  }
}

@media (min-width: 768px){
  .logos-grid .col-md-3{ 
    margin-bottom:0; 
  }
}

/* ===== FIX SECTION SPACING - INCREASE GAPS BETWEEN SECTIONS ===== */
.home-sections {
  margin-top: 0px !important;
  margin-bottom: 20px !important;
}

.home-sections:first-child {
  margin-top: 30px !important;
}

/* Specifically target the gap between sections */
.home-sections.home-sections-swiper.container {
  margin-bottom: 20px !important;
}

/* Target the container that comes after sections */
.home-sections + .container,
section + .container {
  margin-top: 20px !important;
}

/* Services section spacing */
.services-wrap {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* TCATS section spacing */
.tcats-wrap {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* Override any existing large margins */
.tcats-wrap {
  margin-bottom: 20px !important;
}

/* Ensure consistent spacing for all sections */
section + section,
section + .container,
.container + section {
  margin-top: 150px !important;
}

/* Force override for the specific gap between sections */
.home-sections-swiper.container + .container {
  margin-top: 20px !important;
}

/* OVERRIDE THE NEGATIVE MARGIN RULE IN APP.CSS */
.home-sections + .home-sections {
  margin-top: 20px !important;
}

/* More specific overrides for the problematic rule */
.home-sections.home-sections-swiper.container + .container {
  margin-top: 150px !important;
}

/* Target the specific sections we want to fix */
section.home-sections.home-sections-swiper.container + div.container {
  margin-top: 20px !important;
}

/* Force override any negative margins */
.home-sections + * {
  margin-top: 10px !important;
}

/* Specific fix for the clients to accreditations gap */
.home-sections-swiper.container[style*="margin-bottom"] + .container {
  margin-top: 10px !important;
}

/* But then reset everything except what we want to fix */
body, html, div, section, article, aside, header, footer, nav, main {
  margin-top: initial !important;
}

/* Now specifically target the problematic sections */
.home-sections + .home-sections,
.home-sections + .container,
.home-sections + div,
section + .container,
section + div {
  margin-top: 20px !important;
}

/* Force override the specific problematic rule */
.home-sections + .home-sections {
  margin-top: 20px !important;
}

/* Target the exact structure we have */
.home-sections.home-sections-swiper.container + div.container {
  margin-top: 20px !important;
}

/* Override any inline styles */
.home-sections-swiper.container[style*="margin-bottom"] + .container {
  margin-top: 20px !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width:1199.98px){ 
  .services-wrap::before{ 
    font-size:620px; 
    left:-20%; 
    top:-25%; 
  } 
}

@media (max-width:991.98px){ 
  .services-wrap::before{ 
    font-size:520px; 
    left:-28%; 
    top:-30%; 
  } 
  
  .tc-card{ 
    height:200px; 
  }
}

@media (max-width:575.98px){
  .tc-card{ 
    height:190px; 
  }
}


.home-video-title {
  animation: fadeInUp 1s ease-out;
  white-space: nowrap;
  line-height: 1.1;
}

/* Video overlay for better readability */
.home-video-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 75%);
  pointer-events: none;
  z-index: 2;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .home-video-title {
    font-size: 3rem !important;
    text-align: left !important;
    padding-left: 40px !important;
    padding-right: 20px !important;
  }
  
  .explore-courses-btn {
    font-size: 1.1rem !important;
    padding: 15px 30px !important;
  }
}

@media (max-width: 576px) {
  .home-video-title {
    font-size: 3.5rem !important;
    text-align: left !important;
    padding-left: 30px !important;
    padding-right: 15px !important;
  }
  
  .explore-courses-btn {
    font-size: 1rem !important;
    padding: 12px 25px !important;
  }
}

/* ===== CLIENTS SWIPER PAGINATION FIX ===== */
.clients-swiper .swiper-pagination { 
  margin-top: 8px !important; 
}

/* ===== MAC BROWSER SPECIFIC FIXES ===== */
/* Fix for Mac browsers - Courses page padding issues */

/* Force proper banner positioning on Mac */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Reset and force banner positioning */
  .site-top-banner {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden !important;
  }
  
  /* Force banner image positioning */
  .site-top-banner img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
  }
  
  /* Force banner container positioning */
  .site-top-banner .container {
    position: relative !important;
    z-index: 2 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* Force proper spacing after banner */
  .container.mt-30 {
    margin-top: 30px !important;
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
  }
  
  /* Force search banner height */
  .search-top-banner {
    min-height: 300px !important;
    height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Force banner content positioning */
  .top-search-categories-form {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
  }
  
  /* Force opacity overlay */
  .opacity-04 {
    position: relative !important;
    background: rgba(0, 0, 0, 0.4) !important;
  }
  
  /* Remove any conflicting pseudo-elements */
  .opacity-04::before,
  .opacity-04::after {
    display: none !important;
  }
  
  /* Force all banner content above overlay */
  .opacity-04 > * {
    position: relative !important;
    z-index: 2 !important;
  }
  
  /* Force navbar to stay above banner */
  .navbar {
    z-index: 1000 !important;
  }
  
  /* Force main content below banner */
  .container.mt-30 {
    margin-top: 30px !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  /* Force section spacing */
  .mt-lg-50 {
    margin-top: 50px !important;
  }
  
  .pt-lg-20 {
    padding-top: 20px !important;
  }
}

/* Additional Mac-specific fixes for Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
  .site-top-banner {
    min-height: 250px !important;
    height: 250px !important;
  }
  
  .search-top-banner {
    min-height: 250px !important;
    height: 250px !important;
  }
  
  .container.mt-30 {
    margin-top: 20px !important;
  }
  
  .mt-lg-50 {
    margin-top: 30px !important;
  }
  
  .pt-lg-20 {
    padding-top: 15px !important;
  }
}

/* Nuclear option for Mac browsers */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Force all banner elements to proper positioning */
  .site-top-banner,
  .search-top-banner {
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    will-change: transform !important;
    -webkit-transform-style: preserve-3d !important;
  }
  
  /* Force proper stacking context */
  .site-top-banner {
    isolation: isolate !important;
  }
  
  /* Force content below banner */
  .container.mt-30,
  .mt-lg-50,
  .pt-lg-20 {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 30px !important;
  }
  
  /* Force banner content above background */
  .site-top-banner .container,
  .top-search-categories-form {
    position: relative !important;
    z-index: 10 !important;
  }
}

/* ===== ANIMATIONS ===== */

/* Custom animation for service cards */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(4,33,72,.3);
}

/* Custom animation for training category cards */
.tc-card {
  transition: all 0.3s ease;
}

.tc-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

/* Custom animation for course cards */
.webinar-card,
.feature-slider {
  transition: all 0.3s ease;
}

.webinar-card:hover,
.feature-slider:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/* Custom animation for logo items */
.logos-grid img {
  transition: all 0.3s ease;
}

.logos-grid img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Custom animation for buttons */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,.2);
}

/* Custom animation for explore courses button */
.explore-courses-btn {
  transition: all 0.3s ease;
}

.explore-courses-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(254, 189, 34, 0.6);
}

/* Pulse animation for service icons */
.service-icon {
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Floating animation for hero elements */
.hero-content {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

/* Hero Section Mobile Responsive */
@media (max-width: 768px) {
  .home-video-container {
    height: 100vh !important;
    padding-top: 120px !important;
    padding-bottom: 60px !important;
  }
  
  .home-video-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin: 20px 0 0 0 !important;
    text-align: left !important;
    max-width: 100% !important;
    padding: 0 !important;
    white-space: normal !important;
  }
  
  .explore-courses-btn {
    font-size: 1rem !important;
    padding: 12px 25px !important;
    margin: 20px 0 20px 0 !important;
    display: inline-block !important;
    width: auto !important;
  }
  
  /* Hero content positioning for mobile */
  .hero-content {
    margin-top: 60px !important;
    padding-top: 20px !important;
    padding-left: 35px !important;
    padding-right: 35px !important;
    text-align: left !important;
    margin-left: 0 !important;     
    margin-right: 0 !important; 
    z-index: 3;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .hero-content .home-video-title,
  .hero-content .hero-button-container {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .hero-button-container {
    text-align: left !important;
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* RTL (Arabic) alignment for hero section on mobile */
  body.rtl .home-video-title,
  body.rtl p.home-video-title,
  body.rtl .hero-content .home-video-title,
  body.rtl .hero-content p.home-video-title {
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin: 20px 0 0 0 !important;
    direction: rtl !important;
  }
  
  body.rtl .hero-content,
  body.rtl div.hero-content,
  body.rtl .home-video-container .hero-content,
  body.rtl .mt-100.pt-10.position-relative.hero-content {
    align-items: flex-end !important;
    text-align: right !important;
    padding-left: 35px !important;
    padding-right: 35px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    direction: rtl !important;
  }
  
  body.rtl .hero-content .home-video-title,
  body.rtl .hero-content .hero-button-container,
  body.rtl .hero-content div.hero-button-container {
    text-align: right !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    direction: rtl !important;
  }
  
  body.rtl .hero-button-container,
  body.rtl div.hero-button-container,
  body.rtl .hero-content .hero-button-container,
  body.rtl .hero-content div.hero-button-container {
    text-align: right !important;
    justify-content: flex-end !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    direction: rtl !important;
  }
  
  body.rtl .explore-courses-btn,
  body.rtl a.explore-courses-btn,
  body.rtl .hero-button-container .explore-courses-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 576px) {
  .home-video-title {
    font-size: 2rem !important;
    margin: 15px 15px 0 15px !important;
    padding: 0 10px !important;
  }
  
  .explore-courses-btn {
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
  }
  
  .home-video-container {
    padding-top: 100px !important;
  }
}

/* Training Categories Mobile Responsive */
@media (max-width: 768px) {
  .tcats-wrap {
    padding: 40px 0 !important;
  }
  
  .tcats-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }
  
  .tc-card {
    height: 160px !important;
    margin-bottom: 15px !important;
  }
  
  .tc-card-title {
    font-size: 18px !important;
    padding: 10px !important;
    text-align: center !important;
  }
  
  .tc-card-title::before {
    height: 40px !important;
    width: 3px !important;
  }
  
  /* Hide background icons on mobile */
  .tcats-wrap::before,
  .tcats-wrap::after {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .tcats-title {
    font-size: 24px !important;
  }
  
  .tc-card {
    height: 140px !important;
  }
  
  .tc-card-title {
    font-size: 16px !important;
    padding: 8px !important;
  }
}

/* Services Section Mobile Responsive */
@media (max-width: 768px) {
  .services-wrap {
    padding: 40px 0 !important;
  }
  
  .services-title {
    font-size: 32px !important;
    margin-bottom: 20px !important;
  }
  
  .service-card {
    margin-bottom: 20px !important;
    padding: 20px 15px !important;
  }
  
  .service-title {
    font-size: 18px !important;
  }
  
  .service-desc {
    font-size: 14px !important;
  }
  
  .service-icon {
    width: 40px !important;
    height: 40px !important;
  }
  
  .service-icon i {
    font-size: 18px !important;
  }
  
  /* Hide background icons on mobile */
  .services-wrap::before,
  .services-wrap::after {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .services-title {
    font-size: 28px !important;
  }
  
  .service-card {
    padding: 15px 12px !important;
  }
  
  .service-title {
    font-size: 16px !important;
  }
  
  .service-desc {
    font-size: 13px !important;
  }
}

/* Course Sections Mobile Responsive */
@media (max-width: 768px) {
  .home-sections {
    padding: 20px 0 !important;
  }
  
  .section-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
  }
  
  .tcats-head {
    text-align: center !important;
    margin: 0 auto 20px !important;
  }
  
  .tcats-head .tcats-title {
    font-size: 28px !important;
    margin-bottom: 15px !important;
  }
  
  /* Course cards responsive */
  .feature-slider,
  .webinar-card {
    margin-bottom: 15px !important;
  }
  
  /* Swiper navigation buttons */
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
  
  /* Swiper pagination */
  .swiper-pagination {
    display: block !important;
    position: relative !important;
    margin-top: 20px !important;
  }
  
  .swiper-pagination-bullet {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background: #ccc !important;
    border-radius: 50% !important;
    margin: 0 4px !important;
  }
  
  .swiper-pagination-bullet-active {
    background: #254c74 !important;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 24px !important;
  }
  
  .tcats-head .tcats-title {
    font-size: 24px !important;
  }
  
  .home-sections {
    padding: 15px 0 !important;
  }
}

/* Logos Sections Mobile Responsive */
@media (max-width: 768px) {
  .logos-swiper .swiper-wrapper,
  .clients-swiper .swiper-wrapper,
  .approved-swiper .swiper-wrapper,
  .accred-swiper .swiper-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .logos-grid img {
    max-width: 80px !important;
    max-height: 80px !important;
  }
  
  .logos-grid .col-6 {
    margin-bottom: 15px !important;
  }
  
  /* Show pagination on mobile */
  .logos-swiper .swiper-pagination,
  .clients-swiper .swiper-pagination,
  .approved-swiper .swiper-pagination,
  .accred-swiper .swiper-pagination {
    display: block !important;
    margin-top: 15px !important;
  }
}

@media (max-width: 576px) {
  .logos-grid img {
    max-width: 60px !important;
    max-height: 60px !important;
  }
  
  .logos-swiper .swiper-wrapper,
  .clients-swiper .swiper-wrapper,
  .approved-swiper .swiper-wrapper,
  .accred-swiper .swiper-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Statistics Section Mobile Responsive */
@media (max-width: 768px) {
  .statistics-card {
    margin-bottom: 20px !important;
    text-align: center !important;
  }
  
  .statistics-card .statistics-number {
    font-size: 32px !important;
  }
  
  .statistics-card .statistics-title {
    font-size: 16px !important;
  }
}

/* Testimonials Mobile Responsive */
@media (max-width: 768px) {
  .testimonials-card {
    padding: 20px 15px !important;
    margin-bottom: 20px !important;
  }
  
  .testimonials-user-avatar {
    width: 60px !important;
    height: 60px !important;
  }
}

/* Subscribe Plans Mobile Responsive */
@media (max-width: 768px) {
  .subscribe-plan {
    margin-bottom: 20px !important;
    padding: 30px 15px !important;
  }
  
  .subscribe-plan h3 {
    font-size: 24px !important;
  }
  
  .subscribe-plan .font-36 {
    font-size: 28px !important;
  }
}

/* General Mobile Improvements */
@media (max-width: 768px) {
  /* Container padding */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Button improvements */
  .btn {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
  
  .btn-border-white {
    font-size: 13px !important;
    padding: 6px 14px !important;
  }
  
  /* Spacing improvements */
  .mt-30 {
    margin-top: 20px !important;
  }
  
  .mt-35 {
    margin-top: 25px !important;
  }
  
  .py-15 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  
  .py-30 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  
  /* Text improvements */
  .font-36 {
    font-size: 28px !important;
  }
  
  .font-30 {
    font-size: 24px !important;
  }
  
  .font-16 {
    font-size: 14px !important;
  }
  
  .font-14 {
    font-size: 13px !important;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .btn {
    font-size: 13px !important;
    padding: 7px 14px !important;
  }
  
  .btn-border-white {
    font-size: 12px !important;
    padding: 5px 12px !important;
  }
  
  .font-36 {
    font-size: 24px !important;
  }
  
  .font-30 {
    font-size: 20px !important;
  }
  
  .font-16 {
    font-size: 13px !important;
  }
  
  .font-14 {
    font-size: 12px !important;
  }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
  /* Increase touch targets */
  .nav-link,
  .btn,
  .tc-card,
  .service-card {
    min-height: 44px !important;
  }
  
  /* Improve button spacing */
  .btn + .btn {
    margin-left: 10px !important;
  }
  
  /* Better spacing for mobile */
  .row > [class*="col-"] {
    margin-bottom: 15px !important;
  }
  
  /* Improve readability */
  p, .service-desc, .section-hint {
    line-height: 1.6 !important;
  }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
  .home-video-container {
    height: 100vh !important;
    padding-top: 80px !important;
  }
  
  .home-video-title {
    font-size: 2rem !important;
    margin: 10px 20px 0 20px !important;
  }
  
  .explore-courses-btn {
    font-size: 0.9rem !important;
    padding: 8px 20px !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .navbar-brand img,
  .logos-grid img,
  .service-icon i {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility improvements */
@media (max-width: 768px) {
  /* Better focus indicators */
  .btn:focus,
  .nav-link:focus,
  .tc-card:focus,
  .service-card:focus {
    outline: 2px solid #254c74 !important;
    outline-offset: 2px !important;
  }
  
  /* Improve color contrast */
  .text-gray {
    color: #555 !important;
  }
  
  /* Better text sizing */
  .font-12 {
    font-size: 13px !important;
  }
  
  /* Reduce animations on mobile for better performance */
  .service-card:hover,
  .tc-card:hover,
  .webinar-card:hover,
  .feature-slider:hover {
    transform: translateY(-3px) !important;
  }
  
  .explore-courses-btn:hover {
    transform: translateY(-2px) !important;
  }
  
  .logos-grid img:hover {
    transform: scale(1.05) !important;
  }
  
  /* Disable floating animation on mobile */
  .hero-content {
    animation: none !important;
  }
  
  /* Reduce pulse animation on mobile */
  .service-card:hover .service-icon {
    animation: pulse 1.5s infinite !important;
  }
}

/* Mac-specific banner centering fixes for all pages */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .site-top-banner {
    position: relative !important;
    z-index: 1 !important;
    min-height: 300px !important;
    height: 300px !important;
    overflow: hidden !important;
  }
  
  .search-top-banner {
    min-height: 300px !important;
    height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .site-top-banner .container {
    position: relative !important;
    z-index: 2 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .site-top-banner .row {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .site-top-banner .col-12,
  .site-top-banner .col-md-9,
  .site-top-banner .col-lg-7 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .top-search-categories-form {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  .top-search-categories-form h1 {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}

/* ===== COMPREHENSIVE MOBILE & TABLET RESPONSIVE FIXES ===== */

/* ===== HERO/BANNER SECTION RESPONSIVE FIXES ===== */
/* Default: Show video on desktop, hide mobile image */
.hero-video-desktop {
  display: block !important;
}

.hero-image-mobile {
  display: none !important;
}

/* Desktop hero content positioning */
.hero-content {
  margin-left: 60px;
}

/* Desktop RTL positioning */
body.rtl .hero-content,
html.rtl .hero-content,
.rtl .hero-content {
  margin-left: auto;
  margin-right: 60px;
}

@media (max-width: 768px) {
  /* Hero section mobile fixes */
  .home-video-container {
    height: 100vh !important;
    padding-top: 100px !important;
    padding-bottom: 50px !important;
    margin-top: 0 !important;
  }
  
  .home-video-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin: 20px 0 0 0 !important;
    text-align: left !important;
    max-width: 100% !important;
    padding: 0 !important;
    white-space: normal !important;
  }
  
  .hero-content {
    margin-top: 40px !important;
    padding-top: 20px !important;
    padding-left: 35px !important;
    padding-right: 35px !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 3 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }
  
  /* Force hero content to be left-aligned on mobile */
  .home-video-container .hero-content,
  .hero-content,
  .mt-100.pt-10.position-relative.hero-content {
    text-align: left !important;
    padding-left: 35px !important;
    padding-right: 35px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }
  
  .hero-content .home-video-title,
  .hero-content .hero-button-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .hero-button-container {
    text-align: left !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .explore-courses-btn {
    font-size: 1rem !important;
    padding: 12px 25px !important;
    margin: 20px 0 20px 0 !important;
    display: inline-block !important;
    width: auto !important;
    text-align: center !important;
  }
  
  /* Video overlay for mobile */
  .home-video-container::before {
    background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.1) 100%) !important;
  }
  
  /* Hide video and show image on mobile */
  .hero-video-desktop {
    display: none !important;
  }
  
  .hero-image-mobile {
    display: block !important;
  }
  
  /* RTL (Arabic) alignment for hero section on mobile */
  body.rtl .home-video-title,
  body.rtl p.home-video-title,
  body.rtl .hero-content .home-video-title,
  body.rtl .hero-content p.home-video-title {
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin: 20px 0 0 0 !important;
    direction: rtl !important;
  }
  
  body.rtl .hero-content,
  body.rtl div.hero-content,
  body.rtl .home-video-container .hero-content,
  body.rtl .mt-100.pt-10.position-relative.hero-content {
    align-items: flex-end !important;
    text-align: right !important;
    padding-left: 35px !important;
    padding-right: 35px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    direction: rtl !important;
  }
  
  body.rtl .hero-content .home-video-title,
  body.rtl .hero-content .hero-button-container,
  body.rtl .hero-content div.hero-button-container {
    text-align: right !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    direction: rtl !important;
  }
  
  body.rtl .hero-button-container,
  body.rtl div.hero-button-container,
  body.rtl .hero-content .hero-button-container,
  body.rtl .hero-content div.hero-button-container {
    text-align: right !important;
    justify-content: flex-end !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    direction: rtl !important;
  }
  
  body.rtl .explore-courses-btn,
  body.rtl a.explore-courses-btn,
  body.rtl .hero-button-container .explore-courses-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 576px) {
  .home-video-title {
    font-size: 2rem !important;
    margin: 15px 15px 0 15px !important;
    padding: 0 10px !important;
  }
  
  .explore-courses-btn {
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
  }
  
  .hero-content {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}

/* ===== NAVBAR/MENU DROPDOWN RESPONSIVE FIXES ===== */
@media (max-width: 991px) {
  /* Mobile navbar improvements */
  .navbar-collapse,
  .navbar-collapse.show,
  .navbar-collapse.collapsing,
  .collapse.show,
  .navbar-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--neft-blue-light) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important; /* Increased z-index */
    max-height: 80vh !important;
    overflow-y: auto !important;
    display: block !important;
    margin-top: 0 !important; /* Remove any top margin */
    transform: none !important; /* Remove any transforms */
  }
  
  .navbar-nav {
    padding: 15px 20px !important;
    background: var(--neft-blue-light) !important;
    margin: 0 !important;
  }
  
  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important; /* Changed to white separator */
    margin: 0 !important;
  }
  
  .navbar-nav .nav-item:last-child {
    border-bottom: none !important;
  }
  
  .navbar-nav .nav-link {
    color: white !important; /* Changed to white */
    padding: 12px 0 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
  }
  
  .navbar-nav .nav-link:hover {
    color: var(--neft-yellow) !important; /* Changed to yellow on hover */
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Dropdown menu improvements */
  .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.1) !important; /* Changed to white with transparency */
    border: none !important;
    border-radius: 0px !important;
    margin-top: 5px !important;
    box-shadow: none !important;
  }
  
  .dropdown-item {
    padding: 8px 15px !important;
    font-size: 14px !important;
    color: white !important; /* Changed to white */
  }
  
  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2) !important; /* Changed to white with transparency */
    color: var(--neft-yellow) !important; /* Changed to yellow on hover */
  }
}

@media (max-width: 576px) {
  .navbar-nav {
    padding: 10px 15px !important;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0 !important;
    font-size: 15px !important;
  }
}

/* ===== TRAINING CATEGORIES RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .tcats-wrap {
    padding: 40px 0 !important;
  }
  
  .tcats-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }
  
  /* Force one card per row on mobile */
  .tcats-grid .col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px !important;
  }
  
  .tc-card {
    height: 160px !important;
    margin-bottom: 15px !important;
  }
  
  .tc-card-title {
    font-size: 18px !important;
    padding: 10px !important;
    text-align: center !important;
    max-width: 100% !important;
  }
  
  .tc-card-title::before {
    height: 40px !important;
    width: 3px !important;
  }
  
  /* Hide background icons on mobile */
  .tcats-wrap::before,
  .tcats-wrap::after {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .tcats-title {
    font-size: 24px !important;
  }
  
  .tc-card {
    height: 140px !important;
  }
  
  .tc-card-title {
    font-size: 16px !important;
    padding: 8px !important;
  }
}

/* ===== FREE COURSES & NEWEST COURSES RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  /* Hide navigation arrows on mobile */
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
  
  /* Show pagination on mobile */
  .swiper-pagination {
    display: block !important;
    position: relative !important;
    margin-top: 20px !important;
  }
  
  .swiper-pagination-bullet {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    background: #ccc !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
    opacity: 1 !important;
  }
  
  .swiper-pagination-bullet-active {
    background: #254c74 !important;
    transform: scale(1.2) !important;
  }
  
  /* Course cards responsive */
  .feature-slider,
  .webinar-card {
    margin-bottom: 15px !important;
  }
  
  /* Adjust swiper container padding */
  .my-swiper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* ===== OUR SERVICES SECTION RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .services-wrap {
    padding: 40px 0 !important;
  }
  
  .services-title {
    font-size: 32px !important;
    margin-bottom: 20px !important;
  }
  
  /* Force services to show properly on mobile */
  .services-grid {
    display: block !important;
  }
  
  .services-grid .col-12,
  .services-grid .col-md-6,
  .services-grid .col-lg-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .service-card {
    margin-bottom: 20px !important;
    padding: 20px 15px !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }
  
  .service-title {
    font-size: 18px !important;
    color: #fff !important;
  }
  
  .service-desc {
    font-size: 14px !important;
    color: #c9d3e3 !important;
  }
  
  .service-icon {
    width: 40px !important;
    height: 40px !important;
  }
  
  .service-icon i {
    font-size: 18px !important;
  }
  
  /* Show learn more button on mobile */
  .btn-learn {
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-top: 15px !important;
  }
  
  /* Hide background icons on mobile */
  .services-wrap::before,
  .services-wrap::after {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .services-title {
    font-size: 28px !important;
  }
  
  .service-card {
    padding: 15px 12px !important;
  }
  
  .service-title {
    font-size: 16px !important;
  }
  
  .service-desc {
    font-size: 13px !important;
  }
}

/* ===== CLIENTS, APPROVED BY, ACCREDITATIONS RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  /* Adjust title positioning for mobile */
  .home-sections .tcats-head {
    text-align: center !important;
    margin: 0 auto 20px !important;
  }
  
  .home-sections .tcats-head .tcats-line {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  /* Adjust swiper padding for mobile */
  .logos-swiper .swiper-wrapper,
  .clients-swiper .swiper-wrapper,
  .approved-swiper .swiper-wrapper,
  .accred-swiper .swiper-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Adjust logo sizes for mobile */
  .logos-grid img {
    max-width: 80px !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
  }
  
  .logos-grid .col-6 {
    margin-bottom: 15px !important;
  }
  
  /* Hide pagination on mobile for logos swipers */
  .logos-swiper .swiper-pagination,
  .clients-swiper .swiper-pagination,
  .approved-swiper .swiper-pagination,
  .accred-swiper .swiper-pagination {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Hide pagination circles on mobile for logos swipers */
  .logos-swiper .swiper-pagination-bullet,
  .clients-swiper .swiper-pagination-bullet,
  .approved-swiper .swiper-pagination-bullet,
  .accred-swiper .swiper-pagination-bullet {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .logos-swiper .swiper-pagination-bullet-active,
  .clients-swiper .swiper-pagination-bullet-active,
  .approved-swiper .swiper-pagination-bullet-active,
  .accred-swiper .swiper-pagination-bullet-active {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
  }
}

@media (max-width: 576px) {
  .logos-grid img {
    max-width: 60px !important;
    max-height: 60px !important;
  }
  
  .logos-swiper .swiper-wrapper,
  .clients-swiper .swiper-wrapper,
  .approved-swiper .swiper-wrapper,
  .accred-swiper .swiper-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* ===== FOOTER RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px !important;
  }
  
  /* Contact Us section - left alignment */
  .footer .col-md-3,
  .footer .col-md-4,
  .footer .col-md-6 {
    margin-bottom: 30px !important;
    text-align: left !important;
  }
  
  .footer h5 {
    font-size: 18px !important;
    margin-bottom: 15px !important;
    text-align: left !important;
  }
  
  .footer p,
  .footer li,
  .footer a {
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    color: white !important;
  }
  
  /* Force all contact information to be white */
  .footer .contact-info,
  .footer .contact-details,
  .footer .phone-numbers,
  .footer .email-address,
  .footer span,
  .footer div {
    color: white !important;
  }
  
  /* Social media - center alignment */
  .footer .footer-social {
    padding-right: 0 !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 20px !important;
    text-align: center !important;
  }
  
  .footer .footer-social a {
    display: inline-block !important;
    margin: 0 10px !important;
  }
  
  /* Copyright section - better layout */
  .footer .copyright,
  .footer .footer-bottom {
    text-align: center !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .footer .copyright p,
  .footer .footer-bottom p {
    margin-bottom: 10px !important;
    font-size: 13px !important;
  }
  
  /* Vision 2030 logo - center on mobile */
  .footer .vision-2030 {
    text-align: center !important;
    margin: 20px 0 !important;
  }
  
  .footer .vision-2030 img {
    max-width: 160px !important;
    height: auto !important;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 30px 0 15px !important;
  }
  
  .footer h5 {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }
  
  .footer p,
  .footer li,
  .footer a {
    font-size: 13px !important;
    color: white !important;
  }
  
  /* Force all contact information to be white on small screens too */
  .footer .contact-info,
  .footer .contact-details,
  .footer .phone-numbers,
  .footer .email-address,
  .footer span,
  .footer div {
    color: white !important;
  }
  
  .footer .footer-social {
    gap: 15px !important;
  }
  
  .footer .footer-social a {
    margin: 0 8px !important;
  }
  
  .footer .copyright p,
  .footer .footer-bottom p {
    font-size: 12px !important;
  }
  
  .footer .vision-2030 img {
    max-width: 130px !important;
  }
}

/* ===== MAP RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  /* Map container responsive */
  .map-container,
  .google-map,
  iframe[src*="google.com/maps"],
  .contact-map {
    height: 300px !important;
    width: 100% !important;
    border-radius: 10px !important;
    margin: 20px 0 !important;
  }
  
  /* Map wrapper responsive */
  .map-wrapper,
  .contact-map-wrapper {
    padding: 0 15px !important;
    margin: 20px 0 !important;
  }
  
  /* Map section container */
  .map-section,
  .contact-map-section {
    padding: 20px 0 !important;
  }
}

@media (max-width: 576px) {
  .map-container,
  .google-map,
  iframe[src*="google.com/maps"],
  .contact-map {
    height: 250px !important;
  }
  
  .map-wrapper,
  .contact-map-wrapper {
    padding: 0 10px !important;
  }
}

/* ===== FOOTER LOGO AND SPACING FIXES ===== */
@media (max-width: 768px) {
  /* Add more right padding to footer sections */
  .footer .container {
    padding-right: 25px !important;
  }
  
  .footer .col-md-3,
  .footer .col-md-4,
  .footer .col-md-6 {
    padding-right: 20px !important;
  }
  
  /* Make Vision 2030 logo smaller and shift right */
  .footer .vision-2030 {
    text-align: right !important;
    margin: 20px 0 !important;
  }
  
  .footer .vision-2030 img {
    max-width: 180px !important; /* INCREASED FROM 120px */
    height: auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  
  /* Make the two smaller logos smaller and shift right */
  .footer .logos-grid img,
  .footer .approved-logos img,
  .footer .accreditation-logos img {
    max-width: 100px !important; /* INCREASED FROM 60px */
    max-height: 100px !important; /* INCREASED FROM 60px */
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  
  /* Specific fix for the two small logos in approved/accreditation sections */
  .footer .col-6 img {
    max-width: 140px !important; /* INCREASED FROM 50px */
    max-height: 90px !important; /* INCREASED FROM 50px */
    margin-left: auto !important;
    margin-right: 10px !important;
  }
  
  /* Add more space to the right for all footer content */
  .footer .row {
    margin-right: -10px !important;
  }
  
  .footer .col-6 {
    padding-right: 15px !important;
  }
}

@media (max-width: 576px) {
  /* Even smaller logos on very small screens */
  .footer .vision-2030 img {
    max-width: 210px !important; /* INCREASED FROM 100px */
  }
  
  .footer .logos-grid img,
  .footer .approved-logos img,
  .footer .accreditation-logos img {
    max-width: 80px !important; /* INCREASED FROM 50px */
    max-height: 80px !important; /* INCREASED FROM 50px */
  }
  
  .footer .col-6 img {
    max-width: 120px !important; /* INCREASED FROM 40px */
    max-height: 80px !important; /* INCREASED FROM 40px */
    margin-right: 5px !important;
  }
  
  /* More right padding on small screens */
  .footer .container {
    padding-right: 20px !important;
  }
  
  .footer .col-md-3,
  .footer .col-md-4,
  .footer .col-md-6 {
    padding-right: 15px !important;
  }
}

/* ===== HIDE USELESS SEARCH BAR AND CLOSE BUTTON ===== */
@media (max-width: 768px) {
  /* Hide useless search bar */
  .search-bar,
  .search-container,
  .search-form,
  .search-input,
  .search-wrapper {
    display: none !important;
  }
  
  /* Hide close button */
  .close-btn,
  .close-button,
  .btn-close,
  .search-close,
  .modal-close {
    display: none !important;
  }
  
  /* Hide any search-related elements */
  [class*="search"],
  [id*="search"] {
    display: none !important;
  }
  
  /* Specific hide for common search elements */
  .top-search-categories-form,
  .slider-search,
  .search-top-banner {
    display: none !important;
  }
}

/* ===== AGGRESSIVE NAVBAR FIXES ===== */
@media (max-width: 991px) {
  /* Force navbar to work properly */
  .navbar,
  .navbar-light,
  .navbar-expand-lg {
    background: transparent !important;
  }
  
  /* Hide menu by default */
  .navbar-collapse,
  .navbar-collapse.collapsing,
  .collapse {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Force menu to show ONLY when toggled */
  .navbar-collapse.show,
  .collapse.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Force all navbar elements to be visible ONLY when menu is open */
  .navbar-collapse.show .navbar-nav,
  .navbar-collapse.show .navbar-nav .nav-item,
  .navbar-collapse.show .navbar-nav .nav-link {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Hide navbar elements by default */
  .navbar-nav,
  .navbar-nav .nav-item,
  .navbar-nav .nav-link {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Ensure dropdowns work */
  .dropdown-menu.show {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
  }
  
  /* Force hamburger button to work */
  .navbar-toggler,
  .navbar-toggler:focus,
  .navbar-toggler:active {
    display: block !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
}

/* ===== FORCE WHITE TEXT IN NAVBAR MENU ===== */
@media (max-width: 991px) {
  /* Force white text for all menu items */
  .navbar-nav .nav-link,
  .navbar-nav .nav-item .nav-link,
  .navbar-collapse .nav-link,
  .navbar-collapse.show .nav-link,
  .collapse .nav-link,
  .collapse.show .nav-link {
    color: white !important;
    font-weight: 600 !important;
    font-size: 16px !important;
  }
  
  /* Force white text for dropdown items */
  .dropdown-menu .dropdown-item,
  .navbar-nav .dropdown-menu .dropdown-item,
  .navbar-collapse .dropdown-menu .dropdown-item {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Force white text for all text elements in navbar */
  .navbar-collapse *,
  .navbar-nav *,
  .dropdown-menu *,
  .navbar-nav .nav-link,
  .navbar-nav .dropdown-toggle,
  .navbar-nav .dropdown-item,
  .navbar-nav a,
  .navbar-nav span,
  .navbar-nav div {
    color: white !important;
  }
  
  /* Override any other color styles */
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus,
  .navbar-nav .nav-link:active,
  .dropdown-item:hover,
  .dropdown-item:focus,
  .dropdown-item:active {
    color: var(--neft-yellow) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
  }
}

/* ===== ADDITIONAL DROPDOWN FIXES ===== */
@media (max-width: 991px) {
  /* Force proper dropdown positioning */
  .navbar-collapse.show,
  .collapse.show {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    margin-top: 0 !important;
    padding: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  }
  
  /* Ensure navbar doesn't interfere */
  .navbar {
    position: relative !important;
    z-index: 9998 !important;
  }
  
  /* Force all text in dropdown to be white */
  .navbar-collapse.show *,
  .collapse.show * {
    color: white !important;
  }
  
  /* Specific fixes for dropdown items */
  .navbar-collapse.show .nav-link,
  .collapse.show .nav-link {
    color: white !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 12px 0 !important;
    border-bottom: none !important;
  }
  
  .navbar-collapse.show .nav-link:last-child,
  .collapse.show .nav-link:last-child {
    border-bottom: none !important;
  }
  
  /* Remove all borders from mobile menu items */
  .navbar-collapse.show .navbar-nav .nav-item,
  .collapse.show .navbar-nav .nav-item {
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border: none !important;
  }
  
  .navbar-collapse.show .navbar-nav .nav-item .nav-link,
  .collapse.show .navbar-nav .nav-item .nav-link {
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border: none !important;
  }
  
  /* Additional specific overrides */
  .navbar-collapse.show ul.navbar-nav li.nav-item,
  .collapse.show ul.navbar-nav li.nav-item {
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border: none !important;
  }
  
  .navbar-collapse.show ul.navbar-nav li.nav-item a.nav-link,
  .collapse.show ul.navbar-nav li.nav-item a.nav-link {
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border: none !important;
  }
}

/* ===== MOBILE MENU DROPDOWN AND LOGO FIXES ===== */
@media (max-width: 991px) {
  /* Fix mobile menu dropdown height - make it auto so all elements show */
  .navbar-collapse,
  .navbar-collapse.show,
  .navbar-collapse.collapsing,
  .collapse.show,
  .navbar-nav {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overflow-y: visible !important;
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--neft-blue-light) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
    margin-top: 0 !important;
    transform: none !important;
  }
  
  /* Ensure dropdown menu shows all items */
  .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 0px !important;
    margin-top: 5px !important;
    box-shadow: none !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  /* Center the logo in mobile view */
  /*.navbar-brand {*/
  /*  position: absolute !important;*/
  /*  left: 50% !important;*/
  /*  transform: translateX(-50%) !important;*/
  /*  margin: 0 !important;*/
  /*  padding: 0 !important;*/
  /*}*/
  
  /* Ensure logo image is centered */
  /*.navbar-brand img {*/
  /*  display: block !important;*/
  /*  margin: 0 auto !important;*/
  /*}*/
  
  /* Adjust navbar container to accommodate centered logo */
  .navbar > .container,
  .navbar > .container-fluid {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  /* Ensure hamburger menu stays on the right */
  .navbar-toggler {
    position: relative !important;
    z-index: 10000 !important;
    margin-left: auto !important;
  }
  
  /* Position logo on the left */
  .navbar-brand {
    right: auto !important;
    left: auto !important;
    transform: none !important;
    position: relative !important;
  }
}

@media (max-width: 576px) {
  /* Additional mobile fixes for very small screens */
  .navbar-brand {
    left: auto !important;
    transform: none !important;
    max-width: 60% !important;
    position: relative !important;
  }
  
  .navbar-brand img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure menu items are properly spaced */
  .navbar-nav .nav-link {
    padding: 15px 0 !important;
    font-size: 16px !important;
  }
  
  /* Ensure dropdown items are visible */
  .dropdown-item {
    padding: 12px 20px !important;
    font-size: 15px !important;
  }
}

/* ===== MOBILE NAVBAR - ONLY 3 ELEMENTS ===== */
@media (max-width: 991px) {
  /* Fixed navbar */
  .navbar,
  .navbar-light,
  .navbar-dark,
  .navbar.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }
  
  body {
    padding-top: 70px !important;
  }
  
  /* SHOW THE NAVBAR CONTAINER */
  .navbar > .container,
  .navbar > .container-fluid {
    display: flex !important;
  }
  
  /* SHOW NAVBAR CONTAINER */
  .navbar > .container,
  .navbar > .container-fluid {
    display: flex !important;
  }
  
  /* SHOW THE 3 ELEMENTS WE WANT */
  .navbar-brand {
    display: block !important;
  }
  
  .navbar-toggler {
    display: block !important;
  }
  
  /* Show only the FIRST button */
  .navbar .btn:first-child,
  .navbar .btn-primary:first-child,
  .navbar .btn-outline-primary:first-child {
    display: block !important;
  }
  
  /* Hide ONLY the duplicate button (second one) */
  .navbar .btn:nth-child(2),
  .navbar .btn:nth-child(3),
  .navbar .btn:nth-child(4) {
    display: none !important;
  }
  
  /* Hide ONLY the duplicate logo (second one) */
  .navbar-brand:nth-child(2),
  .navbar-brand:nth-child(3) {
    display: none !important;
  }
  
  /* Hide any logo that appears outside navbar */
  .home-video-container .logo,
  .hero-content .logo,
  .home-video-container .navbar-brand,
  .hero-content .navbar-brand,
  .navbar + .logo,
  .navbar + .navbar-brand {
    display: none !important;
  }
  
  /* Navbar container */
  .navbar > .container,
  .navbar > .container-fluid {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
  
  /* 1. Start Learning Button - LEFT */
  .navbar .btn,
  .navbar .btn-primary,
  .navbar .btn-outline-primary,
  .navbar .btn-start-learning {
    order: 1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    display: block !important;
    margin-bottom: 5px !important;
  }
  
  /* 2. Logo - CENTER */
  .navbar-brand {
    order: 2 !important;
    position: absolute !important;
    left: 40% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    padding: 0.3375rem 0 !important;
    margin-bottom: 35px !important;
  }
  
  /* 3. Menu Icon - RIGHT */
  .navbar-toggler {
    order: 3 !important;
    margin-left: auto !important;
    margin-right: 0px !important;
    z-index: 10000 !important;
    display: block !important;
    margin-bottom: 5px !important;
  }
  
  /* HIDE ALL OTHER ELEMENTS */
  .flagstrap,
  .language-selector,
  .navbar-nav,
  .navbar-collapse,
  .navbar .flagstrap,
  .navbar .language-selector,
  .navbar .navbar-nav {
    display: none !important;
  }
  
  /* Dropdown menu (only when opened) */
  .navbar-collapse.show,
  .collapse.show {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--neft-blue-light) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 20px !important;
    display: block !important;
  }
  
  /* Show navbar nav when dropdown is open */
  .navbar-collapse.show .navbar-nav,
  .collapse.show .navbar-nav {
    display: block !important;
  }
  
  /* Language selector in dropdown */
  .navbar-collapse.show .flagstrap,
  .collapse.show .flagstrap {
    display: block !important;
    margin-bottom: 15px !important;
    padding: 10px 0 !important;
    border-bottom: none !important;
  }
  
  /* Dropdown styling */
  .navbar-nav .nav-link {
    color: white !important;
    padding: 12px 0 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
  }
  
  .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 0px !important;
    margin-top: 5px !important;
    box-shadow: none !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .dropdown-item {
    color: white !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
  }
  
  /* Hide any duplicate logos */
  .home-video-container .logo,
  .hero-content .logo,
  .home-video-container .navbar-brand,
  .hero-content .navbar-brand {
    display: none !important;
  }
}

/* ===== FINAL OVERRIDE FOR MOBILE MENU BORDERS ===== */
/* This rule should override any other border styles */
@media (max-width: 991px) {
  #navbarContent .navbar-nav .nav-item,
  #navbarContent .navbar-nav .nav-item .nav-link,
  .navbar-collapse.show .navbar-nav .nav-item,
  .navbar-collapse.show .navbar-nav .nav-item .nav-link,
  .collapse.show .navbar-nav .nav-item,
  .collapse.show .navbar-nav .nav-item .nav-link {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
  }
}

/* ===== CRITICAL FINAL RTL OVERRIDE - FORCE RIGHT ALIGNMENT FOR ARABIC ===== */
@media (max-width: 768px) {
  body.rtl .home-sections .home-video-container .hero-content,
  body.rtl .home-sections .home-video-container div.hero-content,
  body.rtl .home-video-container .hero-content,
  body.rtl .home-video-container div.hero-content,
  body.rtl section .home-video-container .hero-content {
    align-items: flex-end !important;
    text-align: right !important;
    direction: rtl !important;
  }
  
  body.rtl .home-sections .hero-content .home-video-title,
  body.rtl .hero-content p.home-video-title,
  body.rtl section .hero-content .home-video-title {
    text-align: right !important;
    direction: rtl !important;
    width: 100% !important;
    display: block !important;
  }
  
  body.rtl .home-sections .hero-content .hero-button-container,
  body.rtl .hero-content div.hero-button-container,
  body.rtl section .hero-content .hero-button-container {
    justify-content: flex-end !important;
    text-align: right !important;
    display: flex !important;
    width: 100% !important;
    direction: rtl !important;
  }
  
  body.rtl .home-sections .hero-button-container .explore-courses-btn,
  body.rtl .hero-button-container a.explore-courses-btn,
  body.rtl section .hero-button-container .explore-courses-btn {
    float: right !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

/* ===== MOBILE MENU DROPDOWN - REMOVE BORDER RADIUS ===== */
@media (max-width: 991px) {
  .navbar .navbar-toggle-content,
  #navbarContent,
  .navbar-collapse,
  .navbar-toggle-content,
  .navbar .navbar-nav,
  .navbar .navbar-nav > li,
  .navbar .navbar-nav > li > a,
  .navbar .navbar-nav .nav-item,
  .navbar .navbar-nav .nav-link,
  .navbar .navbar-nav .dropdown-menu,
  .dropdown-menu,
  .dropdown-item {
    border-radius: 0 !important;
  }
  
  /* Mobile Header: Show only logo and menu icon */
  .navbar .d-flex.w-100 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  /* English (LTR): Logo left, Menu right */
  .navbar .navbar-toggler {
    order: 2 !important;
    margin-right: 0 !important;
    margin-left: auto !important;
  }
  
  .navbar .navbar-brand {
    order: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
  }
  
  /* Hide desktop buttons on mobile */
  .nav-icons-or-start-live.d-lg-flex {
    display: none !important;
  }
  
  /* Arabic (RTL): Menu right, Logo left */
  body.rtl .navbar .navbar-toggler {
    order: 2 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  body.rtl .navbar .navbar-brand {
    order: 1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }
  
  /* Style mobile menu extra items */
  .mobile-menu-extra-items {
    border-top: 1px solid #e5e5e5;
    margin-top: 15px;
    padding-top: 15px;
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
  }
  
  .mobile-menu-extra-items .nav-item {
    width: 100%;
    position: relative !important;
  }
  
  .mobile-menu-extra-items .nav-link {
    padding: 10px 0 !important;
    display: block !important;
  }
  
  /* Main navbar items should be above */
  .navbar-nav:not(.mobile-menu-extra-items) {
    position: relative !important;
    z-index: 2 !important;
  }
  
  /* Mobile language toggle - only show flag */
  .mobile-language-toggle {
    display: flex !important;
    align-items: center !important;
  }
  
  body.rtl .mobile-language-toggle {
    text-align: right !important;
    justify-content: flex-end !important;
  }
  
  /* Ensure proper spacing and flow */
  .navbar-toggle-content {
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Fix logo visibility on mobile */
  .navbar .navbar-brand {
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    height: 70px !important;
    flex-shrink: 0 !important;
  }
  
  .navbar .navbar-brand img {
    max-height: 65px !important;
    height: auto !important;
    width: auto !important;
    max-width: 150px !important;
    display: block !important;
    object-fit: contain !important;
  }
  
  /* Always show the scrolled logo on mobile */
  .navbar .navbar-brand .logo-scrolled {
    display: block !important;
    max-height: 65px !important;
  }
  
  /* Hide the default logo on mobile, only show scrolled logo */
  .navbar .navbar-brand img:not(.logo-scrolled) {
    display: none !important;
  }
  
  /* Ensure logo is visible */
  .navbar .navbar-brand img.logo-scrolled {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Navbar toggler positioning */
  .navbar .navbar-toggler {
    padding: 8px 10px !important;
    flex-shrink: 0 !important;
  }
}

/* ===== LOGOS SWIPER STYLING ===== */
.logos-swiper,
.clients-swiper,
.approved-swiper,
.accred-swiper {
  width: 100% !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  position: relative !important;
}

/* Hide pagination for logos swipers on all screen sizes by default */
.logos-swiper .swiper-pagination,
.clients-swiper .swiper-pagination,
.approved-swiper .swiper-pagination,
.accred-swiper .swiper-pagination {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.logos-swiper .swiper-pagination-bullet,
.clients-swiper .swiper-pagination-bullet,
.approved-swiper .swiper-pagination-bullet,
.accred-swiper .swiper-pagination-bullet {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.logos-swiper .swiper-pagination-bullet-active,
.clients-swiper .swiper-pagination-bullet-active,
.approved-swiper .swiper-pagination-bullet-active,
.accred-swiper .swiper-pagination-bullet-active {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.logos-swiper .swiper-wrapper,
.clients-swiper .swiper-wrapper,
.approved-swiper .swiper-wrapper,
.accred-swiper .swiper-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.logos-swiper .swiper-slide,
.clients-swiper .swiper-slide,
.approved-swiper .swiper-slide,
.accred-swiper .swiper-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 10px !important;
  width: auto !important;
  flex-shrink: 0 !important;
  margin: 0 auto !important;
}

.logos-swiper .swiper-slide img,
.clients-swiper .swiper-slide img,
.approved-swiper .swiper-slide img,
.accred-swiper .swiper-slide img {
  margin: 0 auto !important;
  display: block !important;
}

@media (max-width: 767px) {
  .logos-swiper,
  .clients-swiper,
  .approved-swiper,
  .accred-swiper {
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .logos-swiper .swiper-wrapper,
  .clients-swiper .swiper-wrapper,
  .approved-swiper .swiper-wrapper,
  .accred-swiper .swiper-wrapper {
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  
  .logos-swiper .swiper-slide,
  .clients-swiper .swiper-slide,
  .approved-swiper .swiper-slide,
  .accred-swiper .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    width: calc(50% - 7.5px) !important;
  }
  
  .logos-swiper .swiper-slide img,
  .clients-swiper .swiper-slide img,
  .approved-swiper .swiper-slide img,
  .accred-swiper .swiper-slide img {
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Hide pagination circles on mobile for logos swipers */
  .logos-swiper .swiper-pagination,
  .clients-swiper .swiper-pagination,
  .approved-swiper .swiper-pagination,
  .accred-swiper .swiper-pagination {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .logos-swiper .swiper-pagination-bullet,
  .clients-swiper .swiper-pagination-bullet,
  .approved-swiper .swiper-pagination-bullet,
  .accred-swiper .swiper-pagination-bullet {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}