:root {
  /* Color variables */
  --primary-color: #4361ee;
  --primary-light: #748ffc;
  --primary-dark: #3046b9;
  --secondary-color: #ff6d00;
  --secondary-light: #ff9e40;
  --secondary-dark: #c43c00;
  --accent-color: #00bfa5;
  --accent-light: #5df2d6;
  --accent-dark: #008e76;
  --background-light: #f8f9fa;
  --background-dark: #343a40;
  --text-light: #f8f9fa;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
  
  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Spacing */
  --section-spacing: 5rem;
  --card-spacing: 1.5rem;
  
  /* Border radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Box shadow */
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Transition */
  --transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

section {
  padding: 4rem 0;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--primary-dark);
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition);
  font-weight: 500;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn:hover:before {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.animated-btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.animated-btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.animated-btn:hover:after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* ===== Utility Classes ===== */
.bg-light {
  background-color: var(--background-light);
}

.bg-dark {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.rounded {
  border-radius: var(--border-radius);
}

.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.shadow-sm {
  box-shadow: var(--box-shadow-sm);
}

.shadow {
  box-shadow: var(--box-shadow);
}

.shadow-lg {
  box-shadow: var(--box-shadow-lg);
}

/* ===== Navbar ===== */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover:before {
  width: 50%;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  text-align: center;
  padding: 0;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  z-index: 1;
}

.hero-section .container {
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section p.lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ===== About Section ===== */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section:before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.05);
  z-index: -1;
}

.about-section h2 {
  position: relative;
  display: inline-block;
}

.about-section h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-image:before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  border-top: 3px solid var(--primary-color);
  border-left: 3px solid var(--primary-color);
  z-index: 1;
}

.about-image:after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  border-bottom: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  z-index: 1;
}

/* ===== Mission Section ===== */
.mission-section {
  position: relative;
}

.mission-card {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.mission-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.mission-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.mission-card:hover .card-image img {
  transform: scale(1.05);
}

.mission-card .icon-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(67, 97, 238, 0.1);
  border-radius: 50%;
  margin: 0 auto;
}

.mission-card .animated-icon {
  transition: var(--transition);
}

.mission-card:hover .animated-icon {
  transform: scale(1.2);
}

/* ===== Pricing Section ===== */
.pricing-section {
  position: relative;
}

.pricing-card {
  transition: var(--transition);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary-color);
  z-index: 2;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.pricing-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.pricing-card:hover .card-image img {
  transform: scale(1.05);
}

.pricing-card .price-container {
  background-color: rgba(67, 97, 238, 0.05);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.pricing-card .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card .feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-card .feature-list li:last-child {
  border-bottom: none;
}

.ribbon {
  position: absolute;
  top: 20px;
  right: -30px;
  transform: rotate(45deg);
  width: 150px;
  height: 30px;
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 10;
}

/* ===== Gallery Section ===== */
.gallery-section {
  position: relative;
}

.gallery-item {
  transition: var(--transition);
  text-align: center;
}

.gallery-item .image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 300px;
}

.gallery-item .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover .image-container img {
  transform: scale(1.05);
}

.gallery-item h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.gallery-item p {
  color: var(--text-muted);
}

/* ===== Resources Section ===== */
.resources-section {
  position: relative;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(67, 97, 238, 0.05);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list a {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.resource-list a:hover {
  color: var(--primary-color);
}

.resource-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--primary-color);
}

.resource-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== Instructors Section ===== */
.instructors-section {
  position: relative;
}

.instructor-card {
  transition: var(--transition);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instructor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.instructor-card .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.instructor-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.instructor-card:hover .card-image img {
  transform: scale(1.05);
}

.instructor-position {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.instructor-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(67, 97, 238, 0.1);
  border-radius: 50%;
  margin: 0 0.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ===== Webinars Section ===== */
.webinars-section {
  position: relative;
}

.webinar-card {
  transition: var(--transition);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.webinar-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.webinar-card .card-image {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.webinar-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.webinar-card:hover .card-image img {
  transform: scale(1.05);
}

.webinar-date {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 70px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.webinar-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.webinar-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.webinar-details {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.webinar-time, .webinar-presenter {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.webinar-timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  width: calc(50% - 30px);
  box-sizing: border-box;
  clear: both;
}

.timeline-item:nth-child(odd) {
  float: left;
  clear: right;
  text-align: right;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  float: right;
  clear: left;
  padding-left: 40px;
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
}

.timeline-content h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.timeline-content p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.timeline-item:before {
  content: '';
  position: absolute;
  top: 10px;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd):before {
  right: -8px;
}

.timeline-item:nth-child(even):before {
  left: -8px;
}

/* ===== Contact Section ===== */
.contact-section {
  position: relative;
}

.contact-info {
  transition: var(--transition);
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-item i {
  width: 30px;
}

.contact-map {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.contact-map img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.contact-form {
  transition: var(--transition);
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  overflow: hidden;
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer .social-links {
  display: flex;
  justify-content: flex-start;
}

.footer .social-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer .social-links a:hover {
  color: white;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  background-color: rgba(33, 37, 41, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Success Page ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: 2rem;
}

/* ===== Terms & Privacy Pages ===== */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

.content-page h1 {
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.content-page h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

.content-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== Media Queries ===== */
@media (max-width: 991.98px) {
  .timeline:before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item:before {
    left: 12px;
  }
  
  .timeline-item:nth-child(odd) {
    float: none;
    text-align: left;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(odd):before {
    right: auto;
    left: 12px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p.lead {
    font-size: 1.25rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 767.98px) {
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p.lead {
    font-size: 1.1rem;
  }
}