/* ======= CSS Variables ======= */
:root {
  /* Color Scheme */
  --primary-color: #0056b3;
  --primary-dark: #003d7a;
  --primary-light: #3a7cc2;
  --primary-very-light: #e8f1fc;
  
  --secondary-color: #333333;
  --secondary-dark: #1a1a1a;
  --secondary-light: #666666;
  
  --accent-color: #00a8e8;
  --accent-dark: #0077b6;
  --accent-light: #65cff9;
  
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  
  --dark: #222222;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --gray-dark: #343a40;
  
  /* Typography */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Box Shadow */
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* ======= Base Styles ======= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--secondary-dark);
  line-height: 1.6;
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

p {
  margin-bottom: var(--spacing-md);
}

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

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

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

/* ======= Utility Classes ======= */
.has-text-primary { color: var(--primary-color) !important; }
.has-text-secondary { color: var(--secondary-color) !important; }
.has-text-accent { color: var(--accent-color) !important; }
.has-text-dark { color: var(--dark) !important; }
.has-text-light { color: var(--light) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: var(--dark) !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ======= Header and Navigation ======= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--box-shadow);
}

.navbar {
  padding: var(--spacing-sm) 0;
}

.navbar-brand .logo {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1px;
  font-size: 1.5rem;
}

.navbar-menu .navbar-item {
  font-family: var(--heading-font);
  font-weight: 600;
  padding: 0.5rem 1rem;
  color: var(--secondary-color);
  transition: color var(--transition-fast);
}

.navbar-menu .navbar-item:hover {
  background: transparent;
  color: var(--primary-color);
}

/* Burger Menu */
.navbar-burger {
  color: var(--primary-color);
}

.navbar-burger:hover {
  background-color: transparent;
}

/* ======= Hero Section ======= */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-body {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-body .container {
  padding: var(--spacing-xl) 0;
}

.hero .title, 
.hero .subtitle {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ======= Buttons ======= */
.button {
  transition: all var(--transition-fast);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.875rem;
}

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

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

.button.is-light.is-outlined {
  border-color: white;
  color: white;
}

.button.is-light.is-outlined:hover {
  background-color: white;
  color: var(--primary-color);
}

.button.is-rounded {
  border-radius: 50px;
}

/* ======= Card Styles ======= */
.card {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

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

.card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card .title {
  margin-bottom: var(--spacing-sm);
}

.card .subtitle {
  color: var(--gray);
  margin-bottom: var(--spacing-md);
}

.card .content {
  flex-grow: 1;
}

.media {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.media-left {
  margin-right: var(--spacing-md);
}

.media-content {
  flex: 1;
}

.image.is-96x96 {
  height: 96px;
  width: 96px;
}

.image.is-96x96 img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ======= Sections ======= */
.section {
  padding: var(--spacing-xl) 0;
}

.section .title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-xl);
}

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

/* ======= About Section ======= */
#about .columns {
  margin-top: var(--spacing-lg);
}

/* ======= Courses Section ======= */
#courses .swiper-container {
  width: 100%;
  padding-bottom: var(--spacing-xl);
}

.swiper-slide {
  height: auto;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color);
}

/* ======= Success Stories Section ======= */
#success-stories .card {
  margin-bottom: var(--spacing-lg);
}

/* ======= News Section ======= */
#news .card-content .subtitle {
  color: var(--gray);
  font-size: 0.875rem;
}

#news .button {
  margin-top: auto;
}

/* ======= Media Section ======= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-fast);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: var(--spacing-md);
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ======= Careers Section ======= */
#careers .card {
  height: 100%;
}

#careers ul {
  list-style: disc;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

/* ======= Contact Section ======= */
#contact .card {
  margin-bottom: var(--spacing-lg);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.map-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Form Styles */
.input, .textarea, .select select {
  border-color: var(--gray-light);
  box-shadow: var(--box-shadow-inset);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.label {
  color: var(--secondary-color);
  font-weight: 600;
}

/* ======= Footer ======= */
.footer {
  background-color: var(--secondary-dark);
  color: white;
  padding: var(--spacing-xl) 0;
}

.footer .title {
  color: white;
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--gray-light);
  transition: color var(--transition-fast);
}

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

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.social-links a {
  color: var(--gray-light);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: white;
  text-decoration: underline;
}

/* ======= Animation Styles ======= */
[data-scroll] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

[data-scroll].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl);
  background-color: var(--primary-very-light);
}

.success-container {
  max-width: 600px;
  padding: var(--spacing-xl);
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

/* ======= Media Queries ======= */
@media (max-width: 1023px) {
  .hero .title {
    font-size: 2.5rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.5rem !important;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 768px) {
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.25rem !important;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .card-image img {
    height: 200px;
  }
}

/* ======= Additional Animations ======= */
/* Particles Animation */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Reading Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--primary-color);
  z-index: 9999;
  transition: width var(--transition-fast);
}

/* Button Styles for "Read More" */
.button.is-primary.is-outlined {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary.is-outlined:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Add specific styles for the "Read More" links */
a[href="#"].button.is-primary.is-outlined {
  display: inline-block;
  margin-top: var(--spacing-md);
  font-weight: 600;
  padding: 0.5em 1em;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

/* Logo Animation */
.logo {
  position: relative;
  display: inline-block;
}

.logo:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

.logo:hover:after {
  width: 100%;
}