/* Hero Section Styles */
.hero-section {
    background-color: #0c0c0e;
    background-image: linear-gradient(to right, rgba(0,0,0,0.9), rgba(10,10,15,0.85));
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    gap: 80px;
}

.hero-content {
    max-width: 550px;
    margin-right: 30px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 600;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.hero-title .highlight {
    background: linear-gradient(90deg, #ff6b6b, #e066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.hero-title .highlight:hover {
    transform: translateY(-3px);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #b4b4b4;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1s forwards;
}

.hero-btn-primary {
    background-color: #ff5a76;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.hero-btn-primary:hover {
    background-color: #ff3c5c;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(255, 90, 118, 0.3);
}

.hero-btn-primary:hover:before {
    left: 100%;
}

.hero-btn-secondary {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.hero-btn-secondary::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.hero-btn-secondary:hover {
    color: #ff5a76;
    transform: translateY(-2px);
}

.hero-btn-secondary:hover::after {
    transform: translateX(8px);
}

.hero-image-container {
    position: relative;
    width: 55%;
    height: 300px;
    margin-left: 30px;
    perspective: 1000px;
}

/* Keeping the style for the card */
.hero-card-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* No animation property - let JS handle it */
}

.hero-card-image:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Glowing background effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,90,118,0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    animation: pulse 6s infinite alternate ease-in-out;
}

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

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100,100,255,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-container {
        width: 100%;
        max-width: 450px;
        height: auto;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-image-container {
        max-width: 300px;
    }
    
    .card-content h2 {
        font-size: 1.5rem;
    }
}

/* Hero content animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ending Section - Skills Development */
.ending-section {
  background-color: #0c0c0e;
  background-image: linear-gradient(to right, rgba(0,0,0,0.9), rgba(10,10,15,0.85));
  padding: 90px 0;
  width: 100%;
  margin-top: 60px; /* Creates separation from the section above */
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator line */
  position: relative;
  overflow: hidden; /* Contains the background effects */
  border-bottom: none; /* Remove any border if it exists */
  margin-bottom: 0; /* Remove bottom margin if any */
  padding-bottom: 60px; /* Control spacing with padding instead */
}

.ending-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.ending-heading {
  font-size: 3.5rem;
  margin-bottom: 70px;
  color: white;
  font-weight: 500;
  text-align: center;
}

.ending-skills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.ending-connector {
  flex: 1;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 15px;
}

.ending-skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
}

.ending-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: glow 3s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learn-icon {
  background-color: #ff8d4e;
  color: white;
  animation-delay: 0s;
  box-shadow: 0 0 10px 0px rgba(255, 141, 78, 0.5);
}

.practice-icon {
  background-color: #e94b86;
  color: white;
  animation-delay: 1s;
  box-shadow: 0 0 10px 0px rgba(233, 75, 134, 0.5);
}

.prove-icon {
  background-color: #bc79d8;
  color: white;
  animation-delay: 2s;
  box-shadow: 0 0 10px 0px rgba(188, 121, 216, 0.5);
}

.ending-content {
  text-align: center;
}

.ending-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.ending-skill:nth-child(1) .ending-content h3 {
  color: #ff8d4e;
}

.ending-skill:nth-child(3) .ending-content h3 {
  color: #e94b86;
}

.ending-skill:nth-child(5) .ending-content h3 {
  color: #bc79d8;
}

.ending-content p {
  color: #a0a0a0;
  line-height: 1.6;
  font-size: 1rem;
}

/* Responsive design */
@media (max-width: 992px) {
  .ending-skills {
    flex-direction: column;
    gap: 50px;
  }
  
  .ending-connector {
    width: 2px;
    height: 50px;
    margin: 0;
  }
  
  .ending-skill {
    width: 100%;
    max-width: 500px;
  }
  
  .ending-heading {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .ending-heading {
    font-size: 2.5rem;
  }
  
  .ending-content h3 {
    font-size: 1.8rem;
  }
  
  .ending-section {
    padding: 60px 0;
  }
}
/* Glowing animations for skill icons */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px 0px currentColor;
  }
  50% {
    box-shadow: 0 0 20px 5px currentColor;
  }
  100% {
    box-shadow: 0 0 5px 0px currentColor;
  }
}

/* Sequential glowing animations for skill icons */
@keyframes sequentialGlow {
  0%, 15%, 100% {
    box-shadow: 0 0 5px 0px currentColor;
    transform: scale(1);
  }
  20%, 30% {
    box-shadow: 0 0 25px 8px currentColor;
    transform: scale(1.05);
  }
  35% {
    box-shadow: 0 0 5px 0px currentColor;
    transform: scale(1);
  }
}

/* Remove individual animations and set up for sequence */
.ending-icon {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Configure sequential timing */
.learn-icon {
  animation: sequentialGlow 9s infinite ease-in-out;
  animation-delay: 0s;
  box-shadow: 0 0 10px 0px rgba(255, 141, 78, 0.5);
}

.practice-icon {
  animation: sequentialGlow 9s infinite ease-in-out;
  animation-delay: 3s; /* Starts after Learn finishes */
  box-shadow: 0 0 10px 0px rgba(233, 75, 134, 0.5);
}

.prove-icon {
  animation: sequentialGlow 9s infinite ease-in-out;
  animation-delay: 6s; /* Starts after Practice finishes */
  box-shadow: 0 0 10px 0px rgba(188, 121, 216, 0.5);
}

/* Hover effects - pause the animation and show full glow */
.ending-icon:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

.learn-icon:hover {
  box-shadow: 0 0 25px 8px rgba(255, 141, 78, 0.7);
}

.practice-icon:hover {
  box-shadow: 0 0 25px 8px rgba(233, 75, 134, 0.7);
}

.prove-icon:hover {
  box-shadow: 0 0 25px 8px rgba(188, 121, 216, 0.7);
}

/* Add subtle rotation to icons */
.ending-icon span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.ending-icon:hover span {
  transform: rotate(10deg);
}

/* Add the same glowing background effects as hero section */
.ending-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,90,118,0.2) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
  animation: pulse 6s infinite alternate ease-in-out;
}

.ending-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100,100,255,0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

/* Match footer background to hero and ending sections */
.footer {
  background-color: #0c0c0e;
  background-image: linear-gradient(to right, rgba(0,0,0,0.9), rgba(10,10,15,0.85));
  position: relative;
  overflow: hidden;
  border-top: none; /* Remove any existing border */
}

/* Add the subtle glowing effects to footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ffd700; /* Gold color */
  z-index: 3; /* Ensure it's above other elements */
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100,100,255,0.08) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

/* Ensure footer content appears above the background effects */
.footer-container, .footer-bottom {
  position: relative;
  z-index: 2;
}

/* Optional: Adjust border between sections */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fix gold line under footer headings */
.footer-section h3 {
  color: #ffd700; /* Gold color for headings */
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px; /* Length of the gold line */
  height: 2px;
  background-color: #ffd700; /* Gold color for the line */
}

/* Make headings and gold line more visible */
.footer {
  color: #ffffff;
}

/* Fix smooth hover effects for footer links */
.footer-section ul li a {
  color: #cccccc !important;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
  display: inline-block;
  position: relative;
}

.footer-section ul li a:hover {
  color: #ffd700 !important; /* Gold color on hover */
  transform: translateX(3px); /* Slight movement on hover */
}

/* Add underline effect that grows on hover */
.footer-section ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ffd700;
  transition: width 0.3s ease-in-out;
}

.footer-section ul li a:hover::after {
  width: 100%;
}

/* Contact info links smooth hover */
.footer-section.contact-info a {
  color: #cccccc !important;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
  display: inline-block;
}

.footer-section.contact-info a:hover {
  color: #ffd700 !important;
  transform: translateX(3px);
}

/* Make sure list items have enough spacing for the effect to look good */
.footer-section ul li {
  margin-bottom: 10px;
}

/* More aggressive approach to fill gaps */
body {
  background-color: #050507 !important; /* Set the body background as fallback */
}

/* Main container with no gaps */
.course-detail {
  background-color: #050507 !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  border: none !important;
  box-shadow: none !important;
  display: block !important;
}

/* Force each section to connect without gaps */
.course-detail section {
  width: 100% !important;
  margin: 0 !important; /* Remove ALL margins */
  margin-bottom: 0 !important; /* Explicitly remove bottom margin */
  padding: 20px 20px !important;
  background-color: #050507 !important;
  color: #a8b6c7 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative !important;
}

/* Add subtle separators instead of gaps */
.course-detail section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.03);
}

/* Last section shouldn't have a separator */
.course-detail section:last-of-type::after {
  display: none;
}

/* Target any possible elements causing gaps */
.course-detail > *,
.course-detail * {
  background-color: #050507;
}

/* Fix register button area */
.register-button {
  background-color: #1e96fc !important;
  margin: 20px auto 40px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* REMOVED ALL BACKGROUND COLOR OVERRIDES - Using edge-glow effect only */

/* Target potential wrapper elements */
.hero-section + *,
main,
.ending-section {
  background-color: #050507 !important;
}

/* Course Overview Section */
#course-overview {
  display: block;
  width: 100%;
  background-color: #0d1b2a;
  padding: 40px;
  margin-bottom: 20px;
  color: #0ce8f4;
}

#course-overview h2 {
  color: #1efcbd;
  font-size: 28px;
  margin-bottom: 20px;
  border: none;
}

#course-overview p {
  line-height: 1.6;
}

/* Headings for all sections */
.course-detail h2 {
  color: #1efcf1!important;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 500;
  border: none;
  padding: 0;
}

/* List styling */
.course-detail ul {
  padding-left: 20px;
  margin: 0;
}

.course-detail li {
  margin-bottom: 15px;
  line-height: 1.6;
}

.course-detail li b {
  color: #41e879!important;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 3px;
}

/* Remove grid layout */
.course-sections-grid {
  display: block;
  margin: 0;
}

/* If you need to protect ending section styles, use specific overrides instead */
.ending-section {
  /* Only add specific properties you want to preserve */
  /* For example: */
  background-color: #0c0c0e;
  background-image: linear-gradient(to right, rgba(0,0,0,0.9), rgba(10,10,15,0.85));
}

/* Main content container adjustment */
.course-detail {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Course Overview Section Styling - Dark Theme */
#course-overview {
  background-color: #121212;
  border-radius: 0px;
  padding: 40px;
  margin: 0;
  color: #a8b6c7;
}

#course-overview h2 {
  color: #ffffff;
  font-size: 30px!important;
  margin-bottom: 30px;
  font-weight: 300;
  border-bottom: none;
  padding-bottom: 10px;
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
}

#course-overview p {
  font-size: 15px;
  line-height: 1.7;
  color: #a8b6c7;
  max-width: 100%;
  font-weight: 400;
  text-align: justify;
}

#course-overview b {
  color: #a8b6c7;
  font-weight: 600;
}

/* Container for horizontal sections */
.course-detail {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Horizontal layout for sections */
.course-sections-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 20px;
}

.course-sections-horizontal section {
  flex: 1;
  min-width: 300px;
  background-color: #0d1b2a;
  padding: 20px;
  margin: 0;
  border: none;
  color: #a8b6c7;
}

/* For the first three full-width sections */
.full-width-section {
  width: 100%;
  display: block;
  background-color: #0d1b2a6c;
  padding: 40px;
  margin-bottom: 20px;
  color: #a8b6c7;
}

.full-width-section h2 {
  color: #1e96fc;
  font-size: 28px;
  margin-bottom: 20px;
  border: none;
}

/* Headings for horizontal sections */
.course-sections-horizontal section h2 {
  color: #1e96fc;
  font-size: 24px;
  margin-bottom: 15px;
  border: none;
}

/* Lists in all sections */
.course-detail ul {
  padding-left: 20px;
  margin: 0;
}

.course-detail li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.course-detail li b {
  color: #1e96fc;
  font-weight: 600;
}

/* Reset Course Detail Layout */
.course-detail {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Section styling - Remove box appearance */
.course-detail section {
  width: 100%;
  margin-bottom: 20px;
  padding: 20px 20px;
  background-color: transparent;
  color: #a8b6c7;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Course Overview Section */
#course-overview {
  display: block;
  width: 100%;
  background-color: transparent;
  padding: 40px 0;
  margin-bottom: 20px;
  color: #a8b6c7;
}

/* Main content container adjustment */
.course-detail {
  padding: 20px 20px;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Course Overview Section Styling - Dark Theme */
#course-overview {
  background-color: transparent;
  border-radius: 0;
  padding: 20px 20px;
  margin: 0;
  color: #a8b6c7;
}

/* Container for horizontal sections */
.course-detail {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Horizontal layout for sections */
.course-sections-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
}

.course-sections-horizontal section {
  flex: 1;
  min-width: 300px;
  background-color: transparent;
  padding: 20px 20px;
  margin: 0;
  border: none;
  color: #a8b6c7;
}

/* For the first three full-width sections */
.full-width-section {
  width: 100%;
  display: block;
  background-color: transparent;
  padding: 20px 20px;
  margin-bottom: 20px;
  color: #a8b6c7;
}

/* Course Overview Section - Already has an ID */
#course-overview {
  background-color: #050507; /* Dark blue */
  padding: 20px 20px;
  margin: 0;
  color: #a8b6c7;
}

/* What You Will Learn - second section */
.course-detail section:nth-child(2) {
  background-color: #050507; /* Slightly lighter blue */
  padding: 20px 20px;
  width: 100%;
  color: #a8b6c7;
  text-align: justify;
}

/* Course Curriculum - third section */
.course-detail section:nth-child(3) {
  background-color: #050507; /* Another shade of blue */
  padding: 20px 20px;
  width: 100%;
  color: #a8b6c7;
  text-align: justify;
}

/* Career Opportunities - fourth section */
.course-detail section:nth-child(4) {
  background-color: #050507; /* Yet another blue shade */
  padding: 20px 20px;
  width: 100%;
  color: #a8b6c7;
  text-align: justify;
}

/* Certification Benefits - fifth section */
.course-detail section:nth-child(5) {
  background-color: #050507; /* Deeper blue */
  padding: 20px 20px;
  width: 100%;
  color: #a8b6c7;
  text-align: justify;
}

/* Training Format & Batches - sixth section */
.course-detail section:nth-child(6) {
  background-color: #050507; /* Darkest blue */
  padding: 20px 20px;
  width: 100%;
  color: #a8b6c7;
  text-align: justify;
}

/* Add transition to all sections for smooth hover effect */
.course-detail section {
  transition: all 0.3s ease;
}

/* Removed all individual section hover background colors - using unified edge glow only */

/* Center all section headings */
.course-detail section h2 {
  color: #1e96fc;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 500;
  border: none;
  padding: 0;
  text-align: center; /* Center the headings */
}

/* Ensure course overview heading is also centered */
#course-overview h2 {
  color: #ffffff;
  font-size: 42px;
  margin-bottom: 30px;
  font-weight: 300;
  border-bottom: none;
  padding-bottom: 10px;
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
  text-align: center; /* Center this heading too */
}

/* Fix hover effects by increasing specificity and contrast */
/* Removed duplicate hover rule - using unified rule below */

/* UNIFIED CLEAN EDGE-GLOW EFFECT - NO BACKGROUND COLORS */
.course-detail section {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  border: 1px solid transparent !important;
}

.course-detail section:hover {
  border: 1px solid rgba(5, 228, 224, 0.4) !important;
  box-shadow: 
    0 0 8px rgba(5, 228, 224, 0.3),
    0 0 16px rgba(5, 228, 224, 0.2),
    0 0 24px rgba(5, 228, 224, 0.1) !important;
  transition: all 0.3s ease !important;
}

.course-detail section:hover h2 {
  color: #20c5d1 !important;
  text-shadow: 0 0 8px rgba(32, 197, 209, 0.5) !important;
  transition: all 0.3s ease !important;
}

/* Clean up - removed conflicting styles */

/* Add swipe animation to register button too */
.register-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}

.register-button:hover::before {
  left: 100%;
}

/* Hero image size for desktop */
.hero-container {
  display: flex;
  align-items: center;
}

.hero-content {
  width: 45%; /* Adjust if needed */
}

.hero-image-container {
  width: 42%; /* INCREASE THIS VALUE to make image larger */
}

.hero-card-image {
  max-width: 100%;
  height: auto;
}

/* Mobile fixes - don't override JS animations */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 !important;
    text-align: center !important;
  }
  
  .hero-container {
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    margin-right: 0 !important;
    display: block !important;
  }
  
  .hero-description {
    padding: 0 !important;
    margin: 0 auto 30px !important;
    text-align: justify !important;
    max-width: 90% !important;
    display: block !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .hero-image-container {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto 30px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    height: auto !important;
    perspective: 1000px !important;
  }
  
  .hero-card-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    /* No animation or transform properties - let JS handle this */
  }
  
  .hero-title {
    font-size: 2.2rem !important;
    margin: 0 auto 20px !important;
    padding: 0 !important;
    width: 90% !important;
    opacity: 1 !important;
    animation: none !important;
    text-align: center !important;
  }
  
  .hero-buttons {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    opacity: 1 !important;
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0 30px !important;
    min-height: auto !important;
  }
  
  .hero-container {
    padding: 0 !important;
  }
  
  .hero-content {
    padding: 0 !important;
  }
  
  .hero-image-container {
    max-width: 300px !important;
    margin: 0 auto 25px !important;
    perspective: 1000px !important;
  }
  
  .hero-title {
    font-size: 1.8rem !important;
    width: 90% !important;
    padding: 0 !important;
    margin: 0 auto 15px !important;
  }
  
  .hero-description {
    font-size: 0.95rem !important;
    width: 90% !important;
    padding: 0 !important;
    text-align: justify !important;
    margin: 0 auto 20px !important;
  }
  
  /* Increase font size for green highlighted headings in list items */
  .course-detail li b {
    font-size: 1.1rem !important;
    margin-bottom: 5px !important;
    display: inline-block !important;
    line-height: 1.3 !important;
  }
}

/* Desktop-only button centering */
@media (min-width: 769px) {
  .hero-buttons {
    display: flex;
    justify-content: center;  /* Center the button container */
    width: 100%;             /* Full width to allow centering */
    margin-top: 30px;
  }

  .hero-btn-primary {
    margin: 0 auto;          /* Auto margins for horizontal centering */
    min-width: 200px;        /* Ensure consistent button width */
    text-align: center;      /* Center the text inside button */
  }
}




