/* Hero Section Mobile Styles */
@media (max-width: 768px) {
  /* Background and overall layout */
  .hero-section {
    padding: 40px 20px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  /* Keep background image but adjust it */
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  .hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Darken it a bit for better text contrast */
  }
  
  /* Container layout for mobile */
  .hero-container {
    flex-direction: column;
    margin: 0;
    padding: 0;
    align-items: center; /* Center align all content */
  }
  
  /* Change display order - left (text) before right (image) */
  .hero-left {
    order: 1;
    padding: 0;
    margin: 0 0 30px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the text container */
  }
  
  .hero-right {
    order: 2;
    padding: 2px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0);
    border-radius: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  /* Remove any box styling from text content only */
  .intro-content {
    padding: 20px;
    padding-bottom: 5px;
    margin-left: 70px;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    text-align: center; /* Center text alignment */
    max-width: 100%; /* Slightly narrower for better mobile reading */
  }
  
  /* Remove any pseudo-elements that create borders/backgrounds */
  .intro-content::before, .intro-content::after {
    display: none;
  }
  
  /* Headings styling with gradient - now centered */
  .intro-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #f17f3d 0%, #c8d05e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    padding: 0;
    text-align: center; /* Center align the heading */
  }
  
  /* White text for the second part - now centered */
  #heroHeading {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.5rem;
    text-align: center; /* Center align */
  }
  
  /* Paragraph styling - now centered */
  .intro-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 100%;
    text-align: center; /* Center align paragraph */
  }

  /* Mobile styling for bold/strong elements in hero section */
  .intro-content p strong,
  .intro-content p b {
    color: #0fa9d9;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(15, 169, 217, 0.4);
  }

  .intro-content p strong:nth-of-type(even),
  .intro-content p b:nth-of-type(even) {
    color: #c6aa65;
    text-shadow: 0 0 6px rgba(198, 170, 101, 0.4);
  }
  
  /* Keep image container but resize it and place in box */
  .hero-image-container {
    display: flex;
    justify-content: center;
    width: 110%;
    margin-right: 95px;
  }
  
  .hero-feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
  }
  
  /* Button styling */
  .hero-section .learn-more-btn {
    display: block;
    width: 100%;
    max-width: 300px; /* Control button width */
    padding: 15px 25px;
    text-align: center;
    background: linear-gradient(to right, #e8356d 0%, #7e2fce 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    margin: 2rem auto 0; /* Center the button */
    border: none;
    box-shadow: none;
  }
  
  /* Remove any hover effects that might interfere */
  .intro-content:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Replace logo image for mobile */
  .logo-link {
    position: absolute;
    top: 1px;
    right: -5px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    order: 2;
    align-self: flex-start;
    background: transparent;
    padding: 5px 10px;
    border-radius: 8px;
    border: none;
  }
  
  /*.logo-link .logo-img {
    content: url('../images/logo2.png'); /* Path to your mobile logo */
   /* height: 50px;
    width: auto;
    margin-top: -15px;
    margin-left: 25px;
    margin-right: -10px;
    object-fit: contain;
  }*/
  
  .loading-logo {
    max-width: 300px; /* Increased from 150px to 300px for mobile */
  }
  
  .loading-spinner {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }
}


/* Additional styles for extra small screens */
@media (max-width: 480px) {
  .intro-content h2 {
    font-size: 2rem;
  }
  
  #heroHeading {
    font-size: 2rem;
  }
  
  .intro-content p {
    font-size: 0.9rem;
  }
  
  .hero-feature-image {
    max-width: 90%;
    border-radius: 20px;
  }
  
  .loading-logo {
    max-width: 250px; /* Added specific size for very small screens */
  }
}

/* Mobile Footer Styles - With Adjustments */
@media (max-width: 768px) {
  /* Basic footer positioning */
  .footer {
    position: relative;
    padding: 40px 0 20px;
    overflow: hidden;
  }
  
  /* Background container */
  .footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  
  /* Background image */
  .footer-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* Background overlay */
  .footer-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.142);
    z-index: 1;
  }
  
  /* Ensure content appears above background */
  .footer-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .footer-bottom {
    position: relative;
    z-index: 2;
  }
  
  /* Section styling */
  .footer-section {
    position: relative;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Enhanced dividing line */
    margin-top: 5px; /* Reduced gap between sections */
  }
  
  /* First section doesn't need border */
  .footer-section:first-child {
    border-top: none;
    margin-top: 0;
  }
  
  /* Contact info spacing and alignment */
  .footer-section.contact-info p,
  .footer-section.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0;
    padding-left: 25px;
    font-size: 0.9rem;
    display: block;
    text-decoration: none;
  }
  
  /* Fix expanded contact section display */
  .footer-section.contact-info.expanded p,
  .footer-section.contact-info.expanded a,
  .footer-section.contact-info.expanded div {
    display: block;
    padding-left: 25px;
  }
  
  /* Restore gold color for headings */
  .footer-section h3 {
    color: #c8c845; /* Gold color */
    font-size: 1.2rem;
    padding: 5px 20px; /* Reduced padding to decrease gap */
    margin: 0;
    position: relative;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
  }
  
  /* Remove left side arrow indicator */
  .footer-section h3:before {
    display: none;
  }
  
  /* Add RIGHT side arrow indicator */
  .footer-section h3:after {
    content: "";
    position: absolute;
    right: 15px; /* Position on right side */
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #c8c845; /* Match gold color */
    border-bottom: 2px solid #c8c845;
    transform: translateY(-50%) rotate(-45deg);
    display: block; /* Ensure it's visible */
  }
  
  /* Flip arrow when expanded */
  .footer-section.expanded h3:after {
    transform: translateY(-50%) rotate(45deg);
  }
  
  /* List container */
  .footer-section ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    margin: 0;
    list-style: none;
    background-color: rgba(0, 0, 0, 0);
  }
  
  /* Expanded state - add via JavaScript */
  .footer-section.expanded ul {
    max-height: 500px; /* Large enough to show content */
    padding-top: 10px;
    padding-bottom: 20px;
  }
  
  /* List items */
  .footer-section ul li {
    margin-bottom: 12px;
  }
  
  .footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 0;
    display: block;
  }
  
  /* Social icons styling */
  /*.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
  }
  
  .social-icons .dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
  }*/
  
  /* Contact info specific styling - make it expandable too */
  .footer-section.contact-info {
    padding: 0; /* Remove padding to match other sections */
    overflow: hidden; /* Enable overflow for animation */
  }
  
  /* Hide contact content initially */
  .footer-section.contact-info > p,
  .footer-section.contact-info > a,
  .footer-section.contact-info > div {
    display: none;
  }
  
  /* Show contact content when expanded */
  .footer-section.contact-info.expanded > p,
  .footer-section.contact-info.expanded > a,
  .footer-section.contact-info.expanded > div {
    display: block;
    padding: 5px 20px;
  }
  
  /* Add padding to contact info wrapper when expanded */
  .footer-section.contact-info.expanded {
    padding-bottom: 15px;
  }
  
  /* Footer bottom */
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
  }
  
  .footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .footer-section h3 {
    font-size: 1.1rem;
    padding: 12px 15px 12px 25px; /* Add left padding for arrow */
  }
  
  .footer-section ul li a {
    font-size: 0.9rem;
  }
}

/* Simple, reliable hamburger menu */
@media (max-width: 768px) {
  /* Reset the header height and make it transparent */
  .sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    overflow: visible;
    padding: 0;
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.04) 50%,
      rgba(255, 255, 255, 0.06) 100%
    ) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.15),
      0 1px 3px rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Adjust the navbar to fit in the smaller header */
  .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    height: 100%;
    width: 100%;
  }
  
  /* Adjust logo size */
  .logo-img {
    height: 50px;
    width: auto;
    margin: 0;
    align-self: flex-start;
    order: 3;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
  }
  
  /* Make header background transparent for mobile */
  .header-background {
    height: 60px;
    overflow: hidden;
    background: transparent !important;
  }
  
  /* Add subtle glow effect to the entire header */
  .sticky-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(0, 212, 255, 0.01) 50%,
      rgba(255, 215, 0, 0.01) 100%
    );
    border-radius: 0 0 20px 20px;
    z-index: -1;
    opacity: 0.8;
  }
  
  /* Hide header background image on mobile */
  .header-background-image {
    display: none !important;
  }
  
  /* Remove header background overlay on mobile */
  .header-background-overlay {
    display: none !important;
  }
  
  /* Fix hero section padding to account for fixed header */
  .hero-section {
    padding-top: 80px!important; /* 60px header height + some spacing */
  }
  
  /* Keep hamburger visible and properly sized */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px 4px;
    margin: 20px 0 0 -5px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    transition: all 0.3s ease;
    align-self: flex-start;
    order: 1;
    position: absolute;
    top: 8px;
    left: 15px;
  }
  
  .mobile-menu-toggle:hover {
    background: transparent;
    transform: scale(1.05);
  }
  
  /* Remove glow effect for cleaner look */
  .mobile-menu-toggle::before {
    display: none;
  }
  
  /* Remove hover glow effect */
  .mobile-menu-toggle:hover::before {
    display: none;
  }
  
  /* Hamburger bars - visible transparent design */
  .mobile-menu-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5));
    border-radius: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    margin: 2px 0;
  }
  
  /* Hover effects for hamburger */
  .mobile-menu-toggle:hover .bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
  }
  
  /* Transform hamburger into an "X" when active - enhanced visibility */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: linear-gradient(135deg, rgba(255, 215, 0, 1), rgba(0, 212, 255, 1));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
  
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: linear-gradient(135deg, rgba(0, 212, 255, 1), rgba(255, 215, 0, 1));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  }
  
  /* Active state styling for the button */
  .mobile-menu-toggle.active {
    background: transparent;
    transform: scale(1.05);
  }
  
  /* Navigation Menu - ultra transparent design */
  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: linear-gradient(135deg, 
      rgba(13, 13, 13, 0.4), 
      rgba(15, 169, 217, 0.02), 
      rgba(0, 212, 255, 0.04),
      rgba(198, 170, 101, 0.02)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
    z-index: 1001;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 20px;
    opacity: 1;
    visibility: visible;
    position: relative;
  }
  
  /* Add subtle glowing background effect */
  .nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 30%, rgba(15, 169, 217, 0.03) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(198, 170, 101, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
  }
  
  /* If needed, add additional styles to ensure list starts at the top */
  .nav-links ul {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  /* Individual menu items - ultra transparent design */
  .nav-links li {
    margin: 0;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
  }
  
  .nav-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
      rgba(15, 169, 217, 0.8), 
      rgba(0, 212, 255, 0.8), 
      rgba(198, 170, 101, 0.8)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 8px rgba(15, 169, 217, 0.4);
  }
  
  .nav-links li:hover::before {
    opacity: 1;
  }
  
  .nav-links li a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    padding: 18px 25px;
    font-size: 16px;
    text-align: left;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    transform: translateX(0);
  }
  
  .nav-links li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
    padding-left: 30px;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  }
  

  
  /* Overlay background - ultra transparent design */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
      rgba(13, 13, 13, 0.3), 
      rgba(15, 169, 217, 0.05), 
      rgba(0, 212, 255, 0.08),
      rgba(198, 170, 101, 0.03)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Add glowing background effects to overlay */
  .menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 30% 20%, rgba(15, 169, 217, 0.02) 0%, transparent 40%),
      radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 40%),
      radial-gradient(circle at 50% 50%, rgba(198, 170, 101, 0.01) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
  }
  
  /* Ensure the main menu stays visible when dropdown is active */
  .nav-links.active {
    left: 0;
    visibility: visible !important;
    opacity: 1 !important;
    animation: slideInLeft 0.4s ease forwards;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
  }
  
  @keyframes slideInLeft {
    from {
      left: -100%;
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      left: 0;
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Dropdown button indicator - transparent design */
  .dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 10px;
    color: rgba(198, 170, 101, 0.8);
  }
  
  .dropdown-toggle:hover .dropdown-arrow {
    color: #c6aa65;
    transform: scale(1.1);
  }
  
  /* Dropdown container */
  .has-dropdown {
    position: relative;
  }
  
  /* Dropdown menu - ultra transparent design */
  .dropdown-menu {
    display: none;
    background: linear-gradient(135deg, 
      rgba(13, 13, 13, 0.3), 
      rgba(15, 169, 217, 0.01), 
      rgba(0, 212, 255, 0.02),
      rgba(198, 170, 101, 0.01)
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 170, 101, 0.3) transparent;
    padding: 5px 0;
  }
  
  /* Custom scrollbar styling for webkit browsers */
  .dropdown-menu::-webkit-scrollbar {
    width: 6px;
  }
  
  .dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(198, 170, 101, 0.3);
    border-radius: 3px;
  }
  
  .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(198, 170, 101, 0.5);
  }
  
  /* Active dropdown state */
  .has-dropdown.active .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Rotate arrow when dropdown is active */
  .has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  /* Dropdown menu items - ultra transparent design */
  .dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    background: rgba(255, 255, 255, 0.005);
  }
  
  .dropdown-menu li:last-child {
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 5px;
  }
  
  .dropdown-menu li a {
    padding: 14px 35px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    transition: all 0.3s ease;
    display: block;
    line-height: 1.4;
  }
  
  .dropdown-menu li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.015);
    padding-left: 40px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  }
}

/* Reordering mobile menu items - Add this to mobile.css */
@media (max-width: 768px) {
  /* Ensure the nav-links container uses flexbox (it already does in your CSS) */
  .nav-links {
    display: flex;
    flex-direction: column;
  }
  
  /* Set order for all menu items */
  .nav-links > li:nth-child(1) {
    order: 1; /* Home */
  }
  
  .nav-links > li:nth-child(2) {
    order: 2; /* About Us */
  }
  
  /* Select the Register Now link */
  .nav-links > li:nth-child(5) {
    order: 3; /* Register Now */
  }
  
  /* Select the Contact Us link */
  .nav-links > li:nth-child(4) {
    order: 4; /* Contact Us */
  }
  
  /* Select the Courses dropdown (has-dropdown) */
  .nav-links > li.has-dropdown {
    order: 5; /* Courses - Move to bottom */
  }
}

/* Skills Development Section - Mobile Styles */
@media (max-width: 768px) {
  .ending-section {
    padding: 40px 20px;
  }
  
  .ending-container {
    width: 100%;
    max-width: 100%;
  }
  
  .ending-heading {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 40px;
    color: white;
  }
  
  /* Vertical layout for skills */
  .ending-skills {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-left: 20px;
  }
  
  /* Remove the continuous gradient line */
  .ending-skills:before {
    display: none;
  }
  
  /* Style each skill box - default spacing */
  .ending-skill {
    display: block;
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    min-height: 60px;
  }
  
  /* Specifically target the first skill (Learn) to reduce its bottom margin */
  .ending-skill:nth-child(1) {
    margin-bottom: 30px;
  }
  
  /* Create line segments with fading effect for each section */
  /* Learn icon line (orange) */
  .ending-skill:nth-child(1):after {
    content: '';
    position: absolute;
    top: 30px; /* Half icon height */
    bottom: -30px; /* Connect to next icon */
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, #f17f3d 0%, rgba(241, 127, 61, 0.1) 100%);
    z-index: 1;
  }
  
  /* Practice icon line (pink) */
  .ending-skill:nth-child(3):after {
    content: '';
    position: absolute;
    top: 30px; /* Half icon height */
    bottom: -40px; /* Connect to next icon */
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e8356d 0%, rgba(232, 53, 109, 0.1) 100%);
    z-index: 1;
  }
  
  /* Prove icon line (purple) - longer line */
  .ending-skill:nth-child(5):after {
    content: '';
    position: absolute;
    top: 30px; /* Half icon height */
    height: 120px; /* Increased height */
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, #9932cc 0%, rgba(153, 50, 204, 0.05) 100%);
    z-index: 1;
  }
  
  /* Remove original connectors */
  .ending-connector {
    display: none;
  }
  
  /* Icon styling - position directly on the line */
  .ending-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 2;
    position: absolute;
    left: -30px;
    top: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  
  /* Specific icon colors */
  .learn-icon {
    background-color: #f17f3d; /* Orange color */
  }
  
  .practice-icon {
    background-color: #e8356d; /* Pink color */
  }
  
  .prove-icon {
    background-color: #9932cc; /* Purple color */
  }
  
  /* Icon content styling */
  .ending-icon span {
    color: white;
    font-weight: 700;
  }
  
  /* Content area styling - ADDED TOP PADDING */
  .ending-content {
    padding-left: 60px;
    padding-top: 15px; /* Added top padding to move text content down */
    display: block;
    text-align: left;
  }
  
  .ending-content h3 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    font-weight: 600;
    text-align: left;
  }
  
  /* Specific heading colors */
  .ending-skill:nth-child(1) .ending-content h3 {
    color: #f17f3d; /* Orange for Learn */
  }
  
  .ending-skill:nth-child(3) .ending-content h3 {
    color: #e8356d; /* Pink for Practice */
  }
  
  .ending-skill:nth-child(5) .ending-content h3 {
    color: #9932cc; /* Purple for Prove */
  }
  
  .ending-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(152, 187, 201, 0.9);
    text-align: left;
    margin: 0;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .ending-heading {
    font-size: 1.7rem;
  }
  
  .ending-content h3 {
    font-size: 1.3rem;
  }
  
  .ending-content p {
    font-size: 0.9rem;
  }
  
  .ending-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    left: -25px;
  }
  
  .ending-skills {
    margin-left: 15px;
  }
  
  .ending-content {
    padding-left: 45px;
    padding-top: 10px; /* Slightly less padding on small screens */
  }
  
  /* Adjust spacing for small screens too */
  .ending-skill {
    margin-bottom: 35px;
  }
  
  .ending-skill:nth-child(1) {
    margin-bottom: 25px;
  }
  
  /* Adjust line positions for smaller icons */
  .ending-skill:nth-child(1):after,
  .ending-skill:nth-child(3):after,
  .ending-skill:nth-child(5):after {
    top: 25px; /* Half of smaller icon height */
  }
  
  .ending-skill:nth-child(5):after {
    height: 100px; /* Slightly shorter on small screens but still long */
  }
}

/* Dropdown Menu for Mobile Navigation - Simplified */
@media (max-width: 768px) {
  /* Hide desktop link, show mobile split version */
  .has-dropdown .desktop-link {
    display: none !important;
  }
  
  .has-dropdown .nav-item-split {
    display: flex !important;
  }
  
  /* Rest of your mobile styling */
  .nav-item-split {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-item-split .menu-link {
    display: block;
    color: #fff;
    padding: 15px 25px;
    font-size: 16px;
    text-align: left;
    flex: 1;
    text-decoration: none;
  }
  
  .dropdown-toggle {
    background: transparent;
    border: none;
    color: #c7be62;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Dropdown arrow */
  .dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
  }
  
  /* Rotate arrow when dropdown is active */
  .has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  /* Fade animations for main menu */
  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #0d0d0d;
    overflow-y: auto;
    z-index: 1001;
    transition: left 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: visible;
  }
  
  .nav-links.active {
    left: 0;
    opacity: 1;
  }
  
  /* Dropdown menu with fade animation */
  .dropdown-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background-color: #141414;
    width: 100%;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  /* Active dropdown state */
  .has-dropdown.active .dropdown-menu {
    max-height: 300px; /* Approximate max height */
    opacity: 1;
    overflow-y: auto;
  }
  
  /* Dropdown items fade in staggered */
  .dropdown-item {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: calc(var(--item-index, 0) * 0.05s);
    display: block;
    padding: 12px 20px 12px 35px;
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .has-dropdown.active .dropdown-item {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Improve scrollbar styling */
  .dropdown-menu::-webkit-scrollbar {
    width: 5px;
  }
  
  .dropdown-menu::-webkit-scrollbar-track {
    background: #141414;
  }
  
  .dropdown-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }
}

/* Reordering mobile menu items - Add this to mobile.css */
@media (max-width: 768px) {
  /* Ensure the nav-links container uses flexbox (it already does in your CSS) */
  .nav-links {
    display: flex;
    flex-direction: column;
  }
  
  /* Set order for all menu items */
  .nav-links > li:nth-child(1) {
    order: 1; /* Home */
  }
  
  .nav-links > li:nth-child(2) {
    order: 2; /* About Us */
  }
  
  /* Select the Register Now link */
  .nav-links > li:nth-child(5) {
    order: 3; /* Register Now */
  }
  
  /* Select the Contact Us link */
  .nav-links > li:nth-child(4) {
    order: 4; /* Contact Us */
  }
  
  /* Select the Courses dropdown (has-dropdown) */
  .nav-links > li.has-dropdown {
    order: 5; /* Courses - Move to bottom */
  }
}

/* Company Introduction Section - Mobile Styles (Spacing Fixes) */
@media (max-width: 768px) {
  /* Increase padding at the top to create more space after sticky header */
  .about-section {
    padding-top: 30px; /* Add space between sticky header and content */
  }
  
  /* Overall container adjustment */
  .about-section .logo-image {
    flex-direction: column;
    padding: 20px 1px 15px; /* Minimal left/right padding of 1px for absolute maximum text space */
    margin: 20px 0 10px; /* Adjusted margin */
    align-items: center;
  }

  /* Heading needs more space from the top */
  .about-section .logo-image h1 {
    font-size: 2.2rem;
    margin: 0 0 15px; /* Keep space below heading */
    padding-top: 15px; /* Add extra space above heading */
    color: #c5a965;
    font-weight: 700;
    text-align: center;
  }

  /* Text content container */
  .about-section .logo-image .content-section {
    width: 100%;
    padding: 0 1px; /* Minimal horizontal padding of 1px for absolute maximum text space */
    order: 1;
    margin-bottom: 0; /* Remove bottom margin to bring logo closer */
  }

  /* Paragraph styling - reduce bottom spacing */
  .about-section .logo-image p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0; /* No margin to reduce space between text and logo */
    padding: 0 1px 5px; /* Minimal left/right padding of 1px for absolute maximum text space */
    text-align: justify!important;
  }

  /* Logo image container - adjust top margin */
  .about-section .logo-image .image-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -50px!important; /* Small controlled gap after paragraph */
    order: 2;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  /* Maintain space after header */
  .about-section {
    padding-top: 25px;
  }
  
  .about-section .logo-image {
    padding: 15px 1px; /* Minimal left/right padding of 1px for absolute maximum text space */
  }

  .about-section .logo-image h1 {
    font-size: 1.8rem;
    padding-top: 10px; /* Slightly less padding on small screens */
  }

  /* Keep logo large even on small screens */
  .about-section .logo-image .image-section {
    margin-top: 8px; /* Slightly smaller gap on small screens */
  }
}

/* Vision Section Mobile Image Fixes */
@media (max-width: 768px) {
  /* Restyle the vision section for mobile */
  .about-section .vision-section {
    flex-direction: column;
    margin-top: -20px; /* Reduce space from logo section */
    padding: 15px;
    position: relative;
  }
  
  /* Vision heading positioning and style */
  .about-section .vision-section h2 {
    margin-top: 0;
    padding-top: 5px;
    font-size: 1.9rem;
    text-align: center!important;
    color: #c5a965;
    margin-bottom: 15px;
  }
  
  /* Content section styling */
  .about-section .vision-section .content-section {
    width: 100%;
    margin-bottom: 15px;
    padding: 0;
  }
  
  /* List items styling */
  .about-section .vision-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-align: left;
  }
  
  /* Image section container */
  .about-section .vision-section .image-section {
    width: 100%;
    height: 250px!important; /* Match the image height */
    display: flex;
    justify-content: center;
    margin: 10px 0 -80px;
    position: relative;
    padding: 0;
  }
  
  /* Image styling - proper containment */
  .about-section .vision-section .image-section img {
    width: 100%!important;
    height: 250px!important; /* Set your desired height here */
    border-radius: 10px;
    object-fit: cover!important; /* Changed from contain to cover */
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
    
  }
  
  /* Add ambient glow effect behind image */
  .about-section .vision-section .image-section::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(197, 169, 101, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    filter: blur(15px);
    pointer-events: none;
  }
}

/* Extra small screens - further adjustments */
@media (max-width: 480px) {
  .about-section .vision-section {
    margin-top: -25px;
    padding: 10px;
  }
  
  .about-section .vision-section h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }
  
  .about-section .vision-section .image-section img {
    width: 90%; /* Even wider on very small screens */
  }
  
  .about-section .vision-list li {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
}

/* Community Section Mobile Styles */
@media (max-width: 768px) {
  /* Overall structure */
  .about-section .community-section {
    flex-direction: column;
    margin-top: 25px;
    padding: 15px;
    position: relative;
  }
  
  /* Heading styling */
  .about-section .community-section h2 {
    font-size: 1.9rem;
    text-align: center;
    color: #c5a965;
    margin-bottom: 15px;
  }
  
  /* Content section styling */
  .about-section .community-section .content-section {
    width: 100%;
    margin-bottom: 15px;
    padding: 0;
    order: 1; /* Content first on mobile */
  }
  
  /* Community list items with justified text */
  .about-section .community-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-align: justify !important; /* Justified text alignment */
  }
  
  /* Style for strong tags within list items */
  .about-section .community-list li strong {
    color: #c5a965; /* Teal color from the image */
    font-weight: 600;
  }
  
  /* Image section container */
  .about-section .community-section .image-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0 5px;
    padding: 0;
    order: 2; /* Image second on mobile */
  }
  
  /* Image styling */
  .about-section .community-section .image-section img {
    width: 130%!important;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .about-section .community-section {
    margin-top: 20px;
    padding: 10px;
  }
  
  .about-section .community-section h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }
  
  .about-section .community-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
  
  .about-section .community-section .image-section img {
    width: 70%; /* Slightly larger on small screens for visibility */
    border-radius: 40px;
  }
}

/* Training Section Mobile Image Fixes */
@media (max-width: 768px) {
  /* Training section layout - change to column and reorder */
  .about-section .training-section {
    flex-direction: column !important;
  }
  
  /* Content section - move to top */
  .about-section .training-section .content-section {
    order: 1;
    width: 100%;
    margin-bottom: 15px;
    padding: 0;
  }
  
  /* Training section image container - move to bottom */
  .about-section .training-section .image-section {
    order: 2;
    width: 100%;
    height: 300px!important; /* Fixed height to match vision section */
    display: flex;
    justify-content: center;
    margin: 10px 0 -90px!important; /* Decreased bottom margin */
    position: relative;
    padding: 0;
  }
  
  /* Training section image */
  .about-section .training-section .image-section img {
    width: 100%!important;
    height: 300px!important; /* Fixed height */
    border-radius: 10px;
    object-fit: cover!important; /* Changed from contain to cover */
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
  }
}

/* For smaller screens */
@media (max-width: 480px) {
  .about-section .training-section .image-section {
    height: 250px!important;
    margin: 10px 0 -10px; /* Slightly different margin for very small screens */
  }
  
  .about-section .training-section .image-section img {
    height: 250px!important; /* Slightly smaller height for very small screens */
  }
}

/* Set justified text alignment for training list items */
@media (max-width: 768px) {
  .about-section .training-list li {
    text-align: justify !important;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 10px;
  }
  
  /* If you also want to justify the strong elements inside list items */
  .about-section .training-list li strong {
    color: #c5a965;
    font-weight: 600;
  }
}

/* For smaller screens, maintain justified text but adjust sizing */
@media (max-width: 480px) {
  .about-section .training-list li {
    text-align: justify !important;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }
}

/* Mobile Styles for Partnerships Section */
@media (max-width: 768px) {
    .about-section .partnerships-section {
        flex-direction: column-reverse;
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .about-section .partnerships-section h2 {
        font-size: 1.5rem!important;
        text-align: left!important;
        margin-top: 25px;
        margin-bottom: 15px;
        margin-right: -10px;
    }
    
    .about-section .partnerships-section .content-section {
        width: 100%;
        padding-right: 0;
        order: 2;
    }

    .about-section .partnerships-list li strong {
      color: #c6aa65;
      display: block;
      margin-bottom: 5px;
      font-size: 1rem!important;
    }

    .about-section .partnerships-list li {
        font-size: 0.9rem!important;
        padding-left: 20px;
        margin-bottom: 15px;
    }
    
    .about-section .partnerships-section .image-section {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        order: 1;
        border-radius: 8px;
        margin-bottom: -20px!important; /* Reduced from default spacing */
        padding-bottom: 0; /* Remove any bottom padding */
    }
    
    .about-section .partnerships-section .image-section img {
        transform: none;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0);
    }
}

@media (max-width: 480px) {
    .about-section .partnerships-section {
        padding: 20px 15px;
    }
    
    .about-section .partnerships-section h2 {
        font-size: 1px;
    }
    
    .about-section .partnerships-list li {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .about-section .partnerships-section .image-section img {
        max-width: 100%;
    }
    
    .about-section .partnerships-section .image-section {
        margin-bottom: 5px; /* Further reduction for smaller screens */
    }
}
  
/* Fix Register Now button size in rotating courses section - Mobile */
@media (max-width: 992px) {
  .course-info .enroll-now-btn {
    min-width: 140px !important; /* Increase from 120px to 140px */
    padding: 12px 30px !important; /* Increase padding for better mobile touch target */
    font-size: 0.95rem !important; /* Slightly larger font for mobile readability */
  }
  
  .course-info .learn-more-btn {
    min-width: 140px !important; /* Match the Register Now button */
    padding: 12px 30px !important;
    font-size: 0.95rem !important;
  }
}



/* Fix rotating courses section buttons alignment - Mobile */
@media (max-width: 768px) {
  /* Button container alignment */
  .course-info .course-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 20px !important;
    width: 100% !important;
    flex-wrap: nowrap !important; /* Keep buttons on same line */
  }

  /* Individual button styling */
  .course-info .learn-more-btn,
  .course-info .enroll-now-btn {
    flex: 1 !important; /* Equal width distribution */
    min-width: 130px !important;
    max-width: 150px !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    border-radius: 25px !important;
    white-space: nowrap !important; /* Prevent text wrapping */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Ensure buttons have same height */
  .course-info .learn-more-btn {
    height: 44px !important;
    line-height: 1.2 !important;
  }

  .course-info .enroll-now-btn {
    height: 44px !important;
    line-height: 1.2 !important;
  }
}

/* For smaller mobile screens */
@media (max-width: 480px) {
  .course-info .course-actions {
    gap: 12px !important;
    margin-top: 15px !important;
  }

  .course-info .learn-more-btn,
  .course-info .enroll-now-btn {
    min-width: 120px !important;
    max-width: 140px !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    height: 40px !important;
  }
}

/* For very small screens - stack buttons if needed */
@media (max-width: 400px) {
  .course-info .course-actions {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .course-info .learn-more-btn,
  .course-info .enroll-now-btn {
    width: 100% !important;
    max-width: 200px !important;
    margin: 0 auto !important;
  }
}

/* Enhanced Program Progression Mobile Responsiveness */
@media (max-width: 768px) {
  .program-progression-section {
    padding: 50px 0;
  }
  
  .program-progression-section::before {
    height: 4000px; /* Reduced top wave for mobile */
  }
  
  .program-progression-section::after {
    height: 100px; /* Reduced bottom wave for mobile */
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .program-timeline {
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .program-phase {
    padding: 25px 20px;
    border-radius: 15px;
  }
  
  .phase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .phase-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  .phase-title {
    min-width: unset;
    width: 100%;
  }
  
  .phase-title h3 {
    font-size: 1.3rem;
  }
  
  .phase-duration {
    font-size: 0.85rem;
  }
  
  .phase-status {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .phase-content {
    gap: 20px;
  }
  
  .phase-description p {
    font-size: 1rem;
  }
  
  .phase-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .learning-modules h4,
  .career-outcomes h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .learning-modules li,
  .career-outcomes li {
    font-size: 0.9rem;
    padding: 4px 0;
    padding-left: 18px;
  }
  
  .track-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .track-card {
    padding: 18px;
  }
  
  .track-card h4 {
    font-size: 1rem;
  }
  
  .track-card p {
    font-size: 0.85rem;
  }
  
  .outcome-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .outcome-item {
    padding: 12px;
  }
  
  .salary-range,
  .job-growth,
  .placement-rate {
    font-size: 1.3rem;
  }
  
  .program-benefits {
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  
  .program-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .benefit-item {
    padding: 18px;
  }
  
  .enrollment-section {
    padding: 30px 20px;
  }
  
  .enrollment-section h3 {
    font-size: 1.5rem;
  }
  
  .enrollment-section > p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .enrollment-options {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .primary-cta,
  .secondary-cta,
  .tertiary-cta {
    padding: 12px 25px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .enrollment-stats {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .progression-arrow {
    margin: 15px 0;
  }
  
  .progression-text {
    position: static;
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
  }
  
  .arrow-line {
    height: 30px;
  }
  
  .arrow-head {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .program-progression-section {
    padding: 40px 0;
  }
  
  .program-progression-section::before {
    height: 120000px; /* Further reduced for small mobile */
  }
  
  .program-progression-section::after {
    height: 80px; /* Further reduced for small mobile */
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .program-timeline {
    gap: 25px;
    margin-bottom: 30px;
  }
  
  .program-phase {
    padding: 20px 15px;
    border-radius: 12px;
  }
  
  .phase-header {
    gap: 12px;
    margin-bottom: 18px;
  }
  
  .phase-icon {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
  
  .phase-title h3 {
    font-size: 1.2rem;
  }
  
  .phase-duration {
    font-size: 0.8rem;
  }
  
  .phase-status {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  
  .phase-content {
    gap: 18px;
  }
  
  .phase-description p {
    font-size: 0.95rem;
  }
  
  .phase-details {
    gap: 18px;
  }
  
  .learning-modules h4,
  .career-outcomes h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
  
  .learning-modules li,
  .career-outcomes li {
    font-size: 0.85rem;
    padding: 3px 0;
    padding-left: 16px;
  }
  
  .track-card {
    padding: 15px;
  }
  
  .track-card h4 {
    font-size: 0.95rem;
  }
  
  .track-card p {
    font-size: 0.8rem;
  }
  
  .track-role {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  
  .outcome-item {
    padding: 10px;
  }
  
  .salary-range,
  .job-growth,
  .placement-rate {
    font-size: 1.1rem;
  }
  
  .role-type {
    font-size: 0.8rem;
  }
  
  .program-benefits {
    padding: 25px 15px;
    margin-bottom: 25px;
  }
  
  .program-benefits h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .benefit-item {
    padding: 15px;
  }
  
  .benefit-icon {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .benefit-item h4 {
    font-size: 1.1rem;
  }
  
  .benefit-item p {
    font-size: 0.9rem;
  }
  
  .enrollment-section {
    padding: 25px 15px;
  }
  
  .enrollment-section h3 {
    font-size: 1.3rem;
  }
  
  .enrollment-section > p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  
  .enrollment-options {
    gap: 12px;
  }
  
  .primary-cta,
  .secondary-cta,
  .tertiary-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
    max-width: 250px;
  }
  
  .enrollment-stats {
    font-size: 0.85rem;
  }
  
  .progression-arrow {
    margin: 12px 0;
  }
  
  .progression-text {
    font-size: 0.8rem;
  }
  
  .arrow-line {
    height: 25px;
  }
  
  .arrow-head {
    font-size: 1rem;
  }
  
  .cert-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .phase-certification {
    padding: 15px;
  }
  
  .phase-certification p {
    font-size: 0.9rem;
  }
}

/* Enhanced Program Progression Mobile Highlighting Fixes */
@media (max-width: 768px) {
  
  /* Disable problematic text selection on mobile */
  .program-progression-section,
  .progression-container,
  .program-phase {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Allow text selection only for readable content */
  .program-phase p,
  .phase-description p,
  .learning-modules li,
  .career-outcomes li {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
  }
  
  /* Remove default mobile highlighting on interactive elements */
  .program-phase,
  .phase-header,
  .phase-icon,
  .track-card,
  .overview-btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }
  
  /* Better touch targets for mobile */
  .program-phase {
    position: relative;
    touch-action: manipulation;
  }
  
  /* Fix any unwanted selection on touch */
  .program-phase::selection {
    background: transparent;
  }
  
  .program-phase::-moz-selection {
    background: transparent;
  }
  
  /* Prevent text selection on headers and icons */
  .phase-header,
  .phase-icon,
  .phase-status,
  .track-card h4 {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}

/* Courses Header Section - Mobile Optimization */
@media (max-width: 768px) {
  /* Courses grid section mobile adjustments */
  .courses-grid-section {
    padding: 40px 15px; /* Reduced padding for mobile */
  }
  
  /* Courses header mobile styling */
  .courses-header {
    padding: 20px 15px; /* Add padding for mobile */
    margin-bottom: 30px;
  }
  
  /* Main heading mobile optimization */
  .courses-header h1 {
    font-size: 1.8rem !important; /* Smaller font for mobile */
    line-height: 1.3;
    margin-bottom: 20px;
    padding: 0 10px; /* Add horizontal padding */
    text-align: center;
    word-wrap: break-word; /* Prevent text overflow */
  }
  
  /* Description paragraph mobile optimization */
  .courses-header p {
    font-size: 1rem !important; /* Readable font size */
    line-height: 1.6;
    padding: 0 10px; /* Add horizontal padding */
    margin-bottom: 30px;
    text-align: justify; /* Better text alignment for mobile */
    word-wrap: break-word; /* Prevent text overflow */
  }
  
  /* Section description mobile styling */
  .section-description {
    font-size: 1rem !important;
    padding: 0 15px !important;
    line-height: 1.6;
    text-align: justify; /* Better readability on mobile */
    margin-bottom: 30px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .courses-grid-section {
    padding: 30px 10px; /* Further reduced padding */
  }
  
  .courses-header {
    padding: 15px 10px;
    margin-bottom: 25px;
  }
  
  .courses-header h1 {
    font-size: 1.5rem !important; /* Even smaller for very small screens */
    line-height: 1.2;
    padding: 0 5px;
  }
  
  .courses-header p {
    font-size: 0.9rem !important;
    padding: 0 5px;
    line-height: 1.5;
  }
  
  .section-description {
    font-size: 0.9rem !important;
    padding: 0 10px !important;
    line-height: 1.5;
  }
}

/* Social Media Icons - Mobile Styles */
@media (max-width: 768px) {
    .social-media-section {
        margin-bottom: 25px;
        padding: 20px 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-media-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: #c8c845; /* Match your mobile footer gold color */
    }

    .social-media-icons {
        gap: 15px;
        justify-content: center;
    }

    .social-media-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .social-media-icons {
        gap: 12px;
    }

    .social-media-icons a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ─── REGISTER PAGE MOBILE FIXES ───── */
@media (max-width: 768px) {
  /* Fix register page mobile layout */
  .register-section {
    padding: 80px 10px 40px !important; /* Reduced top padding and horizontal padding */
  }
  
  .register-form-container {
    padding: 5px !important; /* Minimal padding for maximum width */
  }
  
  .registration-form {
    padding: 10px !important; /* Reduced from 20px */
  }
  
  /* Ensure form sections use full width */
  .form-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Mobile-optimized glassmorphism */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(13, 13, 13, 0.4) !important;
    border-radius: 20px !important;
    padding: 20px 15px !important;
  }
  
  /* Optimize glassmorphism effects for mobile performance */
  .form-section::before,
  .form-section::after {
    opacity: 0.6 !important; /* Reduce opacity for mobile */
  }
  
  /* Fix course selection box alignment */
  .course-selection {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .course-display-box {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    /* Mobile-optimized glassmorphism */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(13, 13, 13, 0.4) !important;
  }
  
  /* Ensure consistent form element alignment */
  .form-group,
  .checkbox-group {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Fix reCAPTCHA alignment */
  .g-recaptcha {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
  }
  
  /* Ensure submit button uses full width */
  .form-submit {
    width: 100% !important;
    padding: 0 10px !important;
  }
  
  .submit-button {
    width: 100% !important;
    max-width: none !important;
    /* Mobile-optimized button */
    padding: 16px 40px !important;
    font-size: 1.2rem !important;
  }
  
  /* ─── CHECKBOX OPTIMIZATION FOR MOBILE ───── */
  /* Optimize checkbox layout to reduce text wrapping */
  .checkbox-group {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important; /* Reduced gap for mobile */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important; /* Reduced padding for mobile */
    margin: 0 0 10px 0 !important;
    /* Mobile-optimized glassmorphism */
    background: rgba(13, 13, 13, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }
  
  /* Ensure checkbox maintains size and doesn't shrink */
  .checkbox-group input[type="checkbox"] {
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    margin-top: 1px !important;
  }
  
  /* Optimize label for better text flow */
  .checkbox-group label {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.3 !important;
    font-size: 0.95rem !important;
    padding-right: 3px !important;
    margin: 0 !important;
  }
  
  /* Ensure links within checkboxes are properly styled */
  .checkbox-group a {
    color: #0fa9d9 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    word-break: keep-all !important; /* Prevent breaking of important links */
  }
  
  /* Optimize terms section spacing */
  .terms-section {
    padding: 20px 15px !important; /* Reduced padding for mobile */
    background: rgba(13, 13, 13, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }
  
  /* Ensure proper spacing between checkbox groups */
  .terms-section .checkbox-group:not(:last-child) {
    margin-bottom: 8px !important;
  }
  
  /* Mobile-optimized form inputs */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="date"],
  .form-group select,
  .form-group textarea {
    padding: 14px 16px !important; /* Reduced padding for mobile */
    border-radius: 14px !important;
    background: rgba(13, 13, 13, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }
  
  /* Mobile-optimized form labels */
  .form-group label {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }
}

@media (max-width: 480px) {
  /* Further optimize for very small screens */
  .register-section {
    padding: 70px 5px 30px !important; /* Minimal padding */
  }
  
  .register-form-container {
    padding: 2px !important; /* Minimal padding */
  }
  
  .registration-form {
    padding: 5px !important; /* Minimal padding */
  }
  
  /* Ensure all form elements use maximum available width */
  .form-section,
  .course-selection,
  .course-display-box,
  .form-group,
  .checkbox-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix any remaining alignment issues */
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* ─── ENHANCED CHECKBOX OPTIMIZATION FOR SMALL SCREENS ───── */
  .checkbox-group {
    gap: 6px !important; /* Minimal gap for very small screens */
    margin-bottom: 8px !important;
    padding: 10px 12px !important; /* Further reduced padding */
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
  
  .checkbox-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-top: 0 !important;
  }
  
  .checkbox-group label {
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    padding-right: 2px !important;
  }
  
  /* Optimize text wrapping for very small screens */
  .checkbox-group label {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Ensure links don't break awkwardly */
  .checkbox-group a {
    word-break: keep-all !important;
    white-space: nowrap !important; /* Keep link text together */
  }
  
  /* Reduce terms section padding further */
  .terms-section {
    padding: 15px 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
  
  /* Mobile-optimized form inputs for very small screens */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="date"],
  .form-group select,
  .form-group textarea {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }
  
  /* Mobile-optimized submit button */
  .submit-button {
    padding: 14px 30px !important;
    font-size: 1.1rem !important;
    border-radius: 40px !important;
  }
}
