/* Global Variables & Reset */
:root {
  --primary-color: #0e47a1;
  --secondary-color: #1976d3;
  --dark-color: #1a1a1a;
  --light-color: #F5F7FA;
  --danger-color: #dc3545;
  --success-color: #28a745;
  --test: #F6E7BC;
  --bg-color: #F5F7FA;
  --surface-color: #ffffff;
  --text-color: #1a1a1a;
  --muted-text-color: #666666;
  --border-color: #e5e7eb;
  --navbar-bg: #F5F7FA;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.08);
  /* FFF8DE */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --spacing: 1rem;
  --transition-Time:0.3s;
  /* f6f7fb */
}



/* Global Cursor & Interaction Fixes */
button, 
a, 
input[type="submit"], 
.theme-toggle, 
.change-background,
.zoomable-partner,
i {
  cursor: pointer;
}

select, 
input:not([type="submit"]), 
textarea {
  cursor: text;
}

body.dark {
  --primary-color: #3b82f6;
  --secondary-color: #60a5fa;
  --dark-color: #f8fafc;
  --light-color: #0f172a;
  --bg-color: #0b0f1a;
  --surface-color: #1e293b;
  --text-color: #f1f5f9;
  --muted-text-color: #94a3b8;
  --border-color: #334155;
  --navbar-bg: #0f172a;
  --card-bg: #1e293b;
  --shadow-color: rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

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

::selection {
  background-color: var(--secondary-color);
  color: white;
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
  border-radius: 0;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

body {
  
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

body, header, nav, .course, .instructor, .contact-wrapper, .contact-form, .dropdown-menu, .footer-top, .footer-bottom, input, textarea, button, select {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}
input:focus{
    outline: none;
}

.prim-btn{display: block;
    margin: 35px auto;
    width: 50%;
    padding: 15px;
    border-radius: 4px;
    border: none;
    font-size: 25px;
    color: white;
    background-color: var(--primary-color);
    transition: var(--transition-Time);
  cursor: pointer;

}




.section-title {
  margin-top: 80px;
  margin-bottom: 60px;
  text-align: center;
}

.section-title h2 {
  font-size: 45px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  letter-spacing: 2px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section-title:hover h2::after {
  width: 120px;
}

@media (max-width: 767px) {
  .section-title h2 {
    font-size: 35px;
  }
}
/* start header */


#formMessage {
  text-align: center;
  padding: 10px;
  margin-top: 15px;
  border-radius: 4px;
  font-size: 16px;
  display: none; /* مخفي في الأول */
        margin: 5px 0 10px 0;
      font-size: 20px;
      transition: 0.5s;
}

#formMessage.success {
  display: block;
  background-color: #d4edda;
  color: var(--success-color);
 
}
#formMessage.error {
  display: block;
  background-color: #f8d7da;
  color: var(--danger-color);


}

.container {
  padding: 0 15px;
  margin: 0px auto;
}
/* small */
@media (min-width: 768px) {
  .container {
    width: 750px;
    
  }
}
/* medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
/* large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}


header{
  background-color: var(--navbar-bg);
  /* background-color: #f5f7fa48; */
      height: 82px;
  padding: 10px;
  /* height: 70px; */
  box-shadow: 0 0 8px var(--shadow-color);
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 99;
}
@media (max-width: 767px) {
  header{
    padding: 12px 15px;
    /* position: relative; */
    height: 74px;
  }
  
}


header .logo img{
  width: 50px;
  height: 55px;
}
@media (max-width: 767px) {
  header .logo img{
    width: 45px;
    height: 46px;
  }
}
header .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 10px; */
}
header .container .logo{
  /* width: 20%; */
  width: fit-content;

}
header .container nav{
  /* background-color: red; */

  width: 65%;
  /* display: ; */
  display: flex;
  justify-content: space-between;
  align-items: center;


}
header .container nav ul{
  /* background-color: red; */
  width: 75%;
  display: flex;
  justify-content: space-evenly;
}

header .container nav ul li{
  padding: 8px 16px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
}





header .container nav ul li::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background-color: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header .container nav ul li:hover::after {
  width: 100%;
}

header .container nav ul li a{
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

header .container nav ul li:hover > a{
  color: var(--primary-color);
}

@media (max-width:992px) {
  header .container nav ul li a{
    font-size: 18px;
  }
  header .container nav{
    width: 80%;
  }
}
@media (max-width:800px) {
  header .container nav ul li a{
    font-size: 15px;
  }
  header .container nav{
    width: 90%;
  }
}

header .container nav > i {
  display: none;
}


@media(min-width:768px) and (max-width:1200px){
  header .container nav ul li{
    padding: 8px 0px;
  }
  header .container nav ul li a{
    font-size: 15px;
  }
  header .container nav > #auth-container{
    margin-left: 33px;
  }
  #auth-container > a{
    padding: 5px 17px;
  }
}
/* ====== Theme Toggle Button ====== */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.2);
  background: var(--primary-color);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  flex-shrink: 0;
  order: 99;
  margin-left: 15px;
}

.theme-toggle .fa-moon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: white;
  opacity: 1;
  transition: opacity 0.3s, color 0.3s;
}

.theme-toggle .fa-sun {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #fbbf24;
  opacity: 1;
  transition: opacity 0.3s, color 0.3s;
}

.theme-toggle .toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

.theme-toggle.active {
  background: var(--dark-color);
  border-color: rgba(255,255,255,0.1);
}

.theme-toggle.active .toggle-ball {
  transform: translateX(24px);
  background: var(--light-color);
}

.theme-toggle.active .fa-moon {
  color: #666;
}

.theme-toggle.active .fa-sun {
  color: #fbbf24;
}

/* Professional dark mode mapping for shared website sections */
body.dark header .container nav ul li a,
body.dark .user-toggle .user-name,
body.dark .dropdown-item,
body.dark .course .info p,
body.dark .instructor .info p,
body.dark .contact-form .input-group label,
body.dark .footer-col ul li a,
body.dark .bottom-links a {
  color: var(--text-color);
}

body.dark header .container nav ul,
body.dark .dropdown-menu,
body.dark .course,
body.dark .instructor,
body.dark .contact-wrapper,
body.dark .contact-form,
body.dark .about .statics {
  /* background-color: var(--surface-color);
  border-color: var(--border-color);
  box-shadow: 0 12px 26px var(--shadow-color); */
  /* dont return this code again */
}

body.dark .about,
body.dark .partners-carousel-wrapper,
body.dark .contact-us {
  background-color: var(--bg-color);
}

body.dark .input-group input,
body.dark .input-group textarea,
body.dark .news-form-card input[type="text"],
body.dark .news-form-card textarea {
  color: var(--text-color);
  border-bottom-color: var(--border-color);
  background: transparent;
}

body.dark .dropdown-item:hover,
body.dark header .container nav ul li a:hover {
  color: var(--primary-color);
}

/* Sidebar theme item - hidden on desktop */
.sidebar-theme-item {
  display: none !important;
}

/* ====== Mobile Sidebar ====== */
.sidebar-overlay {
  display: none;
}

@media (max-width:767px) {

    header .container nav ul {
      position: fixed;
      top: 0;
      right: -280px;
      width: 280px;
      height: 100vh;
      flex-direction: column;
      background-color: var(--surface-color);
      backdrop-filter: blur(15px);
      box-shadow: -5px 0 25px var(--shadow-color);
      z-index: 2000;
      transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      padding-top: 80px;
      display: flex;
      justify-content: flex-start;
      overflow-y: auto;
    }

    header .container nav ul.active {
      right: 0;
    }

    header .container nav ul li {
      border-bottom: 1px solid var(--border-color);
      padding: 0;
      font-size: 16px;
      background-color: transparent;
    }

    header .container nav > i {
      display: block;
      order: 10;
    }

    header .container nav ul li a {
      display: block;
      color: var(--dark-color);
      font-size: 14px;
      padding: 12px 20px;
      transition: all 0.2s ease;
    }

    header .container nav ul li a:hover {
      background-color: var(--bg-color);
      color: var(--primary-color);
      padding-left: 30px;
    }

    header .container nav {
      width: 90%;
      justify-content: flex-end;
      gap: 15px;
    }

    header .container nav > i {
      font-size: 28px;
      color: var(--dark-color);
      cursor: pointer;
    }

    .sidebar-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.4);
      z-index: 1999;
      backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
      display: block;
    }

    /* Hide nav-level theme toggle on mobile */
    header .container nav > .theme-toggle {
      display: none;
    }

    /* Show sidebar theme toggle item */
    .sidebar-theme-item {
      display: flex !important;
      align-items: center;
      justify-content: space-between;
      padding: 15px 20px !important;
      border-top: 1px solid var(--border-color);
      margin-top: 20px;
    }

    .sidebar-theme-label {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-color);
    }
}

/* Mobile-only auth links inside burger menu - hidden on desktop */
.mobile-auth {
  display: none !important;
}

header .container nav > #auth-container {
  width: 25%;
}
header .container nav > #auth-container {
  display: flex;
  justify-content: flex-end;
  order: 3;
}
@media (max-width:1200px) {
#auth-container {
    gap: 10px;
  }
}
#auth-container > a {
  padding: 5px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 6px;
  transition: .3s;
}
#auth-container > a:hover {
  background-color: var(--secondary-color);
}

/* Dark Mode Button Hover Override */
body.dark #auth-container > a:hover {
  background-color: #1e40af; /* Deep Dark Blue for Dark Mode */
  filter: brightness(0.9);
}

@media (max-width:767px){
  header .container  nav li{
    border-radius: 0px !important;
  }
    header .container  nav #links.active{
      display: flex;
    }
}

@media (max-width:767px){
    /* Hide standalone Register/Login buttons on mobile */
    #auth-container > a {
      display: none;
    }

    /* Show auth links inside burger menu */
    .mobile-auth {
      display: list-item !important;
    }

    header .container nav > #auth-container {
      width: auto;
      order: 1;
    }

    header .container nav > i#togglemenu {
      order: 2;
    }
}

/* Auth Container */
#auth-container {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
}

#auth-container.visible {
  opacity: 1;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.user-toggle .user-icon {
  font-size: 18px;
  color: var(--primary-color);
}

.user-toggle .user-name {
  color: var(--primary-color);
  font-weight: 700;
}

.user-toggle:hover .user-name {
  color: var(--secondary-color);
}

.user-toggle .arrow-icon {
  font-size: 10px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.user-toggle.active .arrow-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px var(--shadow-color);
  min-width: 200px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  border: 1px solid var(--border-color);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: linear-gradient(135deg, rgba(14, 71, 161, 0.05), rgba(14, 71, 161, 0.02));
}

.dropdown-header i {
  font-size: 28px;
  color: var(--primary-color);
}

.dropdown-header strong {
  display: block;
  font-size: 14px;
  color: var(--text-color);
}

.dropdown-header small {
  font-size: 11px;
  color: var(--muted-text-color);
  text-transform: capitalize;
}

.dropdown-menu hr {
  margin: 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.dropdown-item i {
  font-size: 15px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item.logout-item:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
}

@media (max-width: 767px) {
  .user-toggle {
    padding: 4px 8px;
    font-size: 13px;
  }

  .user-toggle .user-name {
    display: none;
  }

  .user-toggle .user-icon {
    font-size: 22px;
  }

  .user-toggle .arrow-icon {
    display: none;
  }

  .dropdown-menu {
    right: -10px;
    min-width: 180px;
  }

  .dropdown-header {
    padding: 12px 14px;
  }

  .dropdown-item {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* end header */

/* start landing */
.landing{
  background-image: url(../images/landing-2.jpeg);
  background-size: cover;
  /* background-position: center; */
  background-position: 50% 60%;
  height: 100vh;
  transition: 0.5s;
  position: relative;
  /* z-index: -1; */
}

.landing .overlay{
  content: '';
position: absolute;
left: 0;
height: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 60%);
/* z-index: 99; */
}
.landing .overlay .text{
  position: absolute;
  left: -100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 70, 161, 0.37); /* primary color with opacity */
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  width: 55%;
  max-height: 400px;
  padding: 60px 60px 60px 100px; /* 100px left to avoid left arrow */
  color: white;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 20px 20px 0;
}

@media (max-width: 992px) {
  .landing .overlay .text{
    width: 80%;
    padding: 50px 50px 50px 90px;
  }
}

@media (max-width: 767px) {
  .landing .overlay .text{
    width: 100%;
    justify-content: flex-start;
    padding: 40px 90px 40px 90px; /* 90px left and right to clear both arrows */
    border-radius: 0;
  }
}
.landing .change-background {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing .change-background:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
  border-color: var(--secondary-color);
}

.landing .fa-angle-left {
  left: 30px;
}

.landing .fa-angle-right {
  right: 30px;
}

.landing .text .content {
  max-width: 500px;
}

.landing .text .content h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.landing .text .content p {
  font-size: 16px;
  line-height: 1.8;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .landing .text .content h1 {
    font-size: 28px;
  }
  .landing .text .content p {
    font-size: 14px;
  }
}

.landing .bullets {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  gap: 8px;
}

.landing .bullets li {
  cursor: pointer;
  width: 12px;
  height: 12px;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.landing .bullets .active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  width: 30px;
  border-radius: 10px;
}


.backCover{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -99;
  display: grid;
  place-content: center;
  background-color: var(--light-color);
}
.backCover img{
  width: 600px;
  height: auto;

  opacity: 0.3;
  opacity: 0.2;

}
/* end landing */

/* Start About */
.about {
  padding-bottom: 80px;
  background-color: var(--light-color);
}

.about .about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 0 5%;
}

.about article {
  flex: 1;
}

.about .info {
  margin-bottom: 30px;
}

.about .info h3 {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.about .info p {
  font-size: 18px;
  color: var(--dark-color);
  line-height: 1.9;
  margin-bottom: 30px;
  opacity: 0.8;
}

.about .info button {
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: var(--primary-color);
  transition: var(--transition-Time);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(14, 71, 161, 0.2);
}

.about .info button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(25, 118, 211, 0.3);
}

/* Dark Mode Get Started Hover */
body.dark .about .info button:hover {
  background-color: #1e40af;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.about .statics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-color);
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  border-bottom: 4px solid var(--primary-color);
}

.about .statics div {
  text-align: center;
  flex: 1;
  padding: 15px 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
}

.about .statics div:hover {
  background-color: rgba(0, 0, 0, 0.03);
  transform: scale(1.05);
}

/* Dark Mode Stat Item Hover */
body.dark .about .statics div:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.about .statics div:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

.about .statics span {
  display: block;
  font-size: 35px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.about .statics p {
  font-size: 14px;
  color: var(--dark-color);
  opacity: 0.7;
  font-weight: 600;
}

.about .video {
  width: 100%;
  aspect-ratio: 560 / 314;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  background-color: transparent;
  border: 5px solid var(--surface-color);
}
@media (min-width: 992px) and (max-width:1200px){
  .about .info p{
    font-size: 14px;
  }
  .about .statics p{
    font-size: 13px;
    font-weight: bold;
  }
  .about .statics span{
    font-size: 32px;
  }
}

.about .video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Custom Video Player Overlay */
.custom-video-container .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 2;
}

.custom-video-container:hover .video-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.custom-video-container .play-icon {
  font-size: 60px;
  color: white;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.custom-video-container:hover .play-icon {
  transform: scale(1.15);
  color: var(--secondary-color);
}
@media (max-width: 992px) {
  .about .about-content {
    flex-direction: column;
  }
  .about article {
    width: 100%;
  }
  .about .info h3 {
    font-size: 34px;
  }
  .about .info p {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .about .info h3 {
    font-size: 28px;
  }
  .about .info p {
    font-size: 15px;
  }
  .about .statics {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .about .statics div:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
  }
}
/* End About */

/* Start Courses */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 0 80px;
}

.course {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 98, 255, 0.05); /* very subtle primary color border */
  border-bottom: 4px solid var(--secondary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.course:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(14, 71, 161, 0.15); /* primary color shadow */
  border-bottom-color: var(--primary-color);
}

.course .icon {
  width: 90px;
  height: 90px;
  background-color: var(--light-color);
  color: var(--primary-color);
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.4s ease;
  margin-bottom: 15px;
  box-shadow: inset 0 0 0 5px white, 0 5px 15px rgba(14, 71, 161, 0.1);
}

.course:hover .icon {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1) rotate(9deg);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.2), 0 10px 20px rgba(14, 71, 161, 0.2);
}

.course .info h3 {
  font-size: 22px;
  color: var(--dark-color);
  margin-bottom: 10px;
  font-weight: 800;
}

.course .info p {
  font-size: 15px;
  color: var(--muted-text-color);
  line-height: 1.7;
}

/* ====== INSTRUCTORS SECTION ====== */
.instructors-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  padding: 20px 0;
  transition: opacity 0.3s ease, transform 0.3s ease; /* For smooth filter transitions */
}

.instructor {
  background-color: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 98, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  overflow: hidden; /* Ensure header radius is clipped */
  padding-bottom: 20px;
}

.instructor:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(14, 71, 161, 0.15); /* primary color shadow */
  border-bottom-color: var(--primary-color);
  border-bottom-width: 5px;
}

.inst-card-header {
  height: 100px;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(67, 97, 238, 0.3) 100%);
  width: 100%;
}

.instructor .image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--surface-color);
  position: absolute;
  top: 40px; /* Overlaps header exactly in middle (100 - 60 = 40) */
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-color);
  box-shadow: 0 4px 10px var(--shadow-color);
  overflow: hidden;
}

.instructor .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instructor:hover .image img {
  transform: scale(1.05); /* Softer scale since the image is larger */
}

.instructor .info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 20px 10px; /* Space below avatar */
}

.instructor .info h3 {
  font-size: 22px;
  color: var(--dark-color);
  margin-bottom: 5px;
  font-weight: 800;
}

.instructor .info p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 48px; /* Maintain height for short bios */
}

/* LinkedIn Button */
.instructor .linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f4f8; /* Soft blueish gray */
  color: var(--primary-color);
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.instructor .linkedin-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(14, 71, 161, 0.3);
}

/* Filter Buttons (Global) */
.filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter button {
  padding: 10px 25px;
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter button.active,
.filter button:hover {
  background-color: var(--primary-color);
  color: white !important;
  border-color: var(--primary-color);
}

/* Dark Mode Filter Hover */
body.dark .filter button.active,
body.dark .filter button:hover {
  background-color: #1e40af; /* Consistent darker blue */
  border-color: #1e40af;
}
/* End Courses */

/* ====== CONTACT US SECTION ====== */
.contact-us {
  padding: 60px 0 100px 0;
  background-color: var(--light-color);
}

.contact-wrapper {
  display: flex;
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
}

/* Left Panel */
.contact-info {
  flex: 1;
  background-color: var(--primary-color);
  color: white;
  padding: 50px;
  position: relative;
  min-width: 350px;
  overflow: hidden;
}

/* Nice graphical background angle for left panel */
.contact-info::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.contact-info::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-item .icon-circle {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.info-item:hover .icon-circle {
  background-color: white;
  color: var(--primary-color);
  transform: scale(1.1);
}

.info-item .text h4 {
  font-size: 15px;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
  color:white;

}

.info-item .text span {
  font-size: 16px;
  font-weight: 600;

}


/* Right Panel (Form) */
.contact-form {
  flex: 1.5;
  padding: 50px;
  background-color: var(--surface-color);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.input-row {
  display: flex;
  gap: 35px;
}

.input-group {
  position: relative;
  flex: 1;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid var(--border-color);
  background: transparent;
  outline: none;
  font-size: 16px;
  color: var(--text-color);
  transition: all 0.3s ease;
  font-family: inherit;
  resize: none;
}

.input-group label {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--muted-text-color);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Floating label effect */
.input-group input:focus,
.input-group input:valid,
.input-group textarea:focus,
.input-group textarea:valid {
  border-bottom-color: var(--primary-color);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
  top: -15px;
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 16px 35px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 20px rgba(14, 71, 161, 0.2);
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #0d47a1;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(14, 71, 161, 0.3);
}

.submit-btn i {
  transition: transform 0.3s ease;
}
.submit-btn:hover i {
  transform: translateX(5px) translateY(-5px);
}

#contactAlert {
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
  transition: all 0.3s ease;
  margin-top: -10px; /* Pull it slightly up closer to the form */
  margin-bottom: 5px;
  display: none;
}

#contactAlert.error {
  color: var(--danger-color, #dc3545);
}

#contactAlert.success {
  color: var(--secondary-color, #28a745);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper {
    flex-direction: column;
  }
  .contact-info {
    padding: 40px;
    min-width: auto;
  }
  .contact-form {
    padding: 40px;
  }
}

@media (max-width: 600px) {
  .input-row {
    flex-direction: column;
    gap: 35px;
  }
  .contact-info, .contact-form {
    padding: 30px 20px;
  }
}

/* ====== FOOTER SECTION ====== */
footer {
  background-color: #0b1120; /* Deep, rich dark blue */
  color: #fff;
  padding-top: 80px;
  font-family: 'Poppins', sans-serif;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 40px;
  padding-bottom: 60px;
}

.footer-col h4 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

/* Stylish underline for headers */
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-col:hover h4::after {
  width: 60px; /* Expands on container hover */
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-col ul li:last-child {
  margin-bottom: 0;
}

.footer-col ul li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  width: 100%; /* For full clickable area if needed */
}



.footer-col ul li:hover i {
  transform: translateX(5px);
}

.footer-col ul li:hover a {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Brand Column Specifics */
.brand-col .footer-logo img {
  max-width: 130px;
  margin-bottom: 20px;
}

.brand-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  transform: translateY(-5px);
}

.footer-social a.social-fb:hover {
  background-color: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.footer-social a.social-in:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.footer-social a.social-li:hover {
  background-color: #0A66C2;
  border-color: #0A66C2;
  box-shadow: 0 5px 15px rgba(10, 102, 194, 0.4);
}

.footer-social a.social-wa:hover {
  background-color: #25D366;
  border-color: #25D366;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Contact Column Specifics */
.contact-list li {
  align-items: flex-start !important;
}

.contact-list li i {
  margin-top: 5px;
  font-size: 16px;
}

.contact-list li span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.contact-list li span a {
  color: rgba(255, 255, 255, 0.7);
}

.contact-list li span a:hover {
  color: var(--primary-color);
  padding-left: 0 !important;
}

.contact-list small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px 0;
  background-color: #070b15; /* Slightly darker than main footer */
}

.bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.bottom-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.bottom-content strong {
  color: #fff;
}

.bottom-links {
  display: flex;
  gap: 25px;
}

.bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

/* Footer Responsive adjustments */
@media (max-width: 768px) {
  .brand-col {
    text-align: center;
  }
  .footer-col {
    padding: 0 15px;
    margin-left: 20px;
  }
  .footer-col ul li {
    width: 100%;
    border-bottom: 1px solid transparent;
    padding-bottom: 5px;
    transition: border-bottom 0.3s ease;
  }
  .footer-col ul li:hover {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .footer-social {
    justify-content: flex-start;
  }
  .bottom-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-top {
    gap: 30px;
  }
}

/* ========================================= */
/* Partners & Events Carousel */
/* ========================================= */
.partners-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: var(--light-color);
  padding: 60px 0;
  margin-top: 50px;
  /* border-top: 1px solid rgba(0, 0, 0, 0.05); */
}

.partners-carousel-wrapper .section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
}

.partners-carousel-wrapper .section-header h3 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 800;
}

.partners-carousel-wrapper .section-header p {
  font-size: 16px;
  color: var(--dark-color);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 45s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-images {
  display: flex;
  justify-content: space-around;
  align-items: center;
  white-space: nowrap;
}

.carousel-images img {
  height: 170px;
  width: auto;
  object-fit: contain;
  margin: 0 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: white;
  padding: 5px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.carousel-images img:hover {
  transform: scale(1.05);
}

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

@media (max-width: 768px) {
  .partners-carousel-wrapper .section-header h3 {
    font-size: 26px;
  }
  .carousel-images img {
    height: 120px;
    margin: 0 10px;
  }
}

/* ========================================= */
/* Lightbox Modal */
/* ========================================= */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.show .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}
/* ====== LEGAL PAGES (Privacy & Terms) ====== */
.legal-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 30px;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-color);
  margin-bottom: 80px;
  border: 1px solid var(--border-color);
  transition: 0.3s ease;
}

.legal-card h3 {
  color: var(--primary-color);
  margin: 35px 0 15px;
  font-size: 24px;
  font-weight: 700;
}

.legal-card p, 
.legal-card ul li {
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 16px;
}

.legal-card ul {
  padding-left: 25px;
  list-style-type: disc;
}

.legal-card .update-date {
  color: var(--muted-text-color);
  font-size: 14px;
  margin-bottom: 40px;
  display: block;
  font-weight: 500;
}

.legal-card a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: 0.3s;
}

.legal-card a:hover {
  color: var(--secondary-color);
}

/* Scroll to Top Floating Logo */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--surface-color, #ffffff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000; /* Extremely high to stay above everything */
  box-shadow: 0 4px 15px var(--shadow-color, rgba(0,0,0,0.1));
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid var(--primary-color);
  padding: 8px;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: bounce-float 3s infinite ease-in-out;
}

.scroll-top-btn img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  display: block;
}

.scroll-top-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-color);
  border-color: #fff;
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

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

body.dark .scroll-top-btn {
  background: var(--surface-color, #1e293b);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
}
