/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* CSS Variables */
:root {
    --primary-orange: #ff8c00;
    --background: #f2f2f2;
    --secondary-orange: #ff6b35;
    --dark-orange: #f15a24;
    --accent-teal: #20b2aa;
    --primary-teal: #26c6da;
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --orange-gradient: linear-gradient(135deg, #f7931e 0%, #f15a24 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    --gradient-hover: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
}

/* Enhanced Navbar Styles */
.navbar {
  background: #fff;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ff6b35;
}

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 250px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin-top: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background: #f8f9fa;
  border-left-color: #ff6b35;
  padding-left: 1.5rem;
}

.dropdown-item.view-all {
  border-top: 1px solid #e9ecef;
  font-weight: 600;
  color: #ff6b35;
  margin-top: 0.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Existing styles for search, language, etc. */
.search-wrapper,
.language-wrapper {
  position: relative;
}

.search-btn,
.language-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.search-btn:hover,
.language-btn:hover {
  color: #ff6b35;
}

.cta-btn {
  background: var(--orange-gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c3e50;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: none;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
    border-left: 2px solid #ff6b35;
  }

  .nav-toggle {
    display: block;
  }

  .nav-container {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .nav-logo img {
    height: 40px;
  }

  .nav-right {
    gap: 0.5rem;
  }

  .cta-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Course Hero Section */
.course-hero {
    background: var(--gradient);
    color: var(--white);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.course-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-section {
    background-image: url("images/academy-flyer/single-flyer/en/AI\ &\ DATA\ PROFESIONAL.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
}

.course-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.course-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.course-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.course-highlights {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enrollment-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--text-dark);
}

.price-section {
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.2rem;
}

.savings {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.9rem;
}

.enrollment-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.enrollment-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enrollment-features i {
    color: var(--accent-teal);
    font-size: 0.9rem;
}

.enroll-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.demo-btn {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 0.75rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
}

/* Course Content Section */
.course-content {
    padding: 60px 0;
    background: var(--white);
}

.content-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-dark);
}

.tab-btn.active {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Curriculum Section - FIXED TO PREVENT VERTICAL LAYOUT */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.module-card {
    background: var(--background);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.module-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.module-duration {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.module-topics {
    list-style: none;
}

.module-topics li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.module-topics li:last-child {
    border-bottom: none;
}

.module-topics i {
    color: var(--accent-teal);
    font-size: 0.8rem;
}

/* Instructor Section */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.instructor-card {
    background: var(--background);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.instructor-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.instructor-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instructor-title {
    color: var(--primary-orange);
    font-weight: 500;
    margin-bottom: 1rem;
}

.instructor-bio {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.instructor-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-orange);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-orange);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 140, 0, 0.1);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--background);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    position: relative;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reviewer-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

.rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: #ffd700;
}

.review-text {
    color: var(--text-light);
    line-height: 1.6;
}

.quote-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--border-color);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Popup Overlay */
.popup-overlay {
    margin-top: 5rem;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* Hide scrollbar only for the enrollment form popup */
.popup-container {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popup-container::-webkit-scrollbar {
    display: none;
}

.popup-overlay.active {
    display: flex;
}

/* Popup Container */
.popup-container {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff4757;
}

/* Form Header */
.form-header {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.form-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.form-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Form Body */
.form-body {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #ff8c00;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #ff4757;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Course Selection */
.course-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.course-option {
    position: relative;
}

.course-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.course-option label {
    display: block;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #fafbfc;
}

.course-option input[type="radio"]:checked + label {
    border-color: #ff8c00;
    background: #ff8c00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 500px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option label {
    display: block;
    padding: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #fafbfc;
}

.payment-option label strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.payment-option label small {
    color: #666;
    font-size: 12px;
}

.payment-option input[type="radio"]:checked + label {
    border-color: #ff8c00;
    background: #ff8c00;
    color: white;
}

/* Submit Button */
.submit-section {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Terms Checkbox */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
}

.terms-group input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
}

.terms-group label {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.terms-group a {
    color: #ff8c00;
    text-decoration: none;
}

.terms-group a:hover {
    text-decoration: underline;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .course-hero-content {
        grid-template-columns: 1fr;
    }

    .course-info h1 {
        font-size: 2rem;
    }

    .course-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .content-tabs {
        flex-direction: column;
        align-items: center;
    }

    .curriculum-grid,
    .instructor-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Custom Alert Animations and Styles */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Success Alert Styles */
#success-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

#success-alert-overlay .alert-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%;
    width: 450px;
    animation: slideIn 0.4s ease;
    position: relative;
    overflow: hidden;
}

#success-alert-overlay .alert-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
}

#success-alert-overlay .success-icon {
    color: #10b981;
    font-size: 54px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

#success-alert-overlay h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 26px;
    font-weight: 700;
}

#success-alert-overlay p {
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
}

#success-alert-overlay .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

#success-alert-overlay .whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

#success-alert-overlay .whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

#success-alert-overlay .close-btn {
    background: #f9fafb;
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#success-alert-overlay .close-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* Error Alert Styles */
#error-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

#error-alert-overlay .alert-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%;
    width: 450px;
    animation: slideIn 0.4s ease;
    position: relative;
    overflow: hidden;
}

#error-alert-overlay .alert-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

#error-alert-overlay .error-icon {
    color: #ef4444;
    font-size: 54px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

#error-alert-overlay h3 {
    color: #dc2626;
    margin-bottom: 15px;
    font-size: 26px;
    font-weight: 700;
}

#error-alert-overlay p {
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
}

#error-alert-overlay .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

#error-alert-overlay .whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

#error-alert-overlay .whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

#error-alert-overlay .retry-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

#error-alert-overlay .retry-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #success-alert-overlay .alert-box,
    #error-alert-overlay .alert-box {
        width: 95%;
        padding: 25px 20px;
        margin: 20px;
    }

    #success-alert-overlay h3,
    #error-alert-overlay h3 {
        font-size: 22px;
    }

    #success-alert-overlay .button-group,
    #error-alert-overlay .button-group {
        flex-direction: column;
        gap: 12px;
    }

    #success-alert-overlay .whatsapp-btn,
    #success-alert-overlay .close-btn,
    #error-alert-overlay .whatsapp-btn,
    #error-alert-overlay .retry-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0.8;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Subtle entrance animations for better UX */
.animate-in {
    animation: slideIn 0.4s ease forwards;
}

.animate-out {
    animation: slideOut 0.3s ease forwards;
}

/* Search and Language Dropdown Styles */
.search-container,
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.search-container {
    min-width: 300px;
    padding: 1rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 14px;
}

.search-submit {
    background: var(--orange-gradient);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-dropdown {
    min-width: 200px;
    padding: 0.5rem;
}

.language-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-radius: 5px;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-orange);
}

.language-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* CTA Button / Enroll Button Styling */
.cta-button {
    background: var(--orange-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}