/* ====== VARIABLES ====== */
:root {
  /* Colors */
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --primary-light: #a1cfff;
  --secondary-color: #e74c3c;
  --secondary-dark: #c0392b;
  --secondary-light: #ff9d92;
  --accent-color: #27ae60;
  --accent-dark: #1e8449;
  --accent-light: #8ee8b3;
  
  /* Neutral colors */
  --dark: #2c3e50;
  --light: #f8f9fa;
  --medium: #7f8c8d;
  --medium-light: #ecf0f1;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
  
  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ====== BASE STYLES ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
  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;
}

/* ====== UTILITIES ====== */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }

/* ====== BUTTONS ====== */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover {
  color: white;
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.animated-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all var(--transition-normal);
}

.animated-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  z-index: -2;
}

.animated-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gradient-secondary);
  transition: all var(--transition-slow);
  z-index: -1;
}

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

.animated-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ====== NAVBAR ====== */
header {
  background-color: white;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

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

.navbar-brand:hover {
  color: var(--primary-dark);
}

.navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after {
  width: 70%;
}

/* ====== HERO SECTION ====== */
.hero-section {
  height: 100vh;
  position: relative;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(1);
  transition: transform 10s var(--transition-slow);
}

.hero-section:hover .hero-background {
  transform: scale(1.05);
}

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

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

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ====== SECTION PADDING ====== */
.section-padding {
  padding: 5rem 0;
}

/* ====== SECTION TITLES ====== */
.section-title {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  margin: 1rem auto;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--medium);
  margin-bottom: 3rem;
  text-align: center;
}

/* ====== PROCESS SECTION ====== */
.process-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.process-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto;
}

.process-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* ====== FEATURES SECTION ====== */
.feature-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
  margin: 0 auto;
}

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

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* ====== INNOVATION SECTION ====== */
.innovation-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.innovation-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

/* ====== INSIGHTS SECTION ====== */
.insight-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.insight-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto;
}

.insight-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* ====== WEBINARS SECTION ====== */
.webinar-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.webinar-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 1;
}

/* ====== PORTFOLIO SECTION ====== */
.portfolio-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.course-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.course-details li {
  margin-bottom: 0.5rem;
}

/* ====== SUSTAINABILITY SECTION ====== */
.sustainability-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sustainability-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

/* ====== MEDIA SECTION ====== */
.media-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.media-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  margin: 0 auto;
}

.media-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* ====== RESOURCES SECTION ====== */
.resource-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.resource-card .card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.resource-card .card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* ====== AWARDS SECTION ====== */
.award-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.award-card img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  margin: 0 auto;
}

.award-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* ====== CONTACT SECTION ====== */
.contact-info {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-item i {
  margin-right: 1rem;
  color: var(--primary-color);
}

.contact-hours {
  margin-top: 2rem;
}

.contact-form-container {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.form-control, .form-select {
  border-radius: var(--radius-md);
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* ====== FOOTER ====== */
.footer-section {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-light);
}

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

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

.footer-links a {
  color: #ecf0f1;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

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

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

.copyright {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2rem;
}

/* ====== ADDITIONAL PAGES ====== */
/* Privacy & Terms pages */
.content-page {
  padding-top: 100px;
}

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

.success-content {
  max-width: 600px;
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

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

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.animate-fadeIn {
  animation: fadeIn 1s ease-in-out;
}

.animate-slideUp {
  animation: slideUp 1s ease-in-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ====== MEDIA QUERIES ====== */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .process-card, .insight-card, .media-card, .award-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .process-icon, .insight-icon {
    width: 60px;
    height: 60px;
  }
  
  .process-card h3, .insight-card h3 {
    font-size: 1.25rem;
  }
}

/* Page transitions with Barba.js */
.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  opacity: 1;
  transition: opacity 400ms ease-in;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
  transition: opacity 400ms ease-out;
}

/* Apply transition to containers */
[data-barba="container"] {
  position: relative;
}

/* Cookie consent styles */
#cookieConsent {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-lg);
}

#acceptCookies {
  background-color: var(--accent-color);
  border-color: var(--accent-dark);
  transition: all var(--transition-fast);
}

#acceptCookies:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}