/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette based on logo */
  --color-teal: #13b1a4;
  --color-teal-hover: #0f9388;
  --color-teal-light: #e7f7f6;
  --color-navy: #144265;
  --color-navy-hover: #1b5380;
  --color-navy-dark: #0b2b48;
  --color-orange: #f59e0b;
  --color-orange-hover: #d97706;
  --color-orange-light: #fef3c7;
  --color-bg-light: #f8fafc;
  --color-bg-white: #ffffff;
  
  /* Text colors */
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #f1f5f9;

  /* Typography */
  --font-headers: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout and Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Borders and Shadows */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(20, 66, 101, 0.08), 0 4px 6px -2px rgba(20, 66, 101, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(20, 66, 101, 0.12), 0 10px 10px -5px rgba(20, 66, 101, 0.06);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

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

a:hover {
  color: var(--color-teal-hover);
}

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-bg-white);
}

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

.text-navy {
  color: var(--color-navy);
}

.text-teal {
  color: var(--color-teal);
}

.highlight-title {
  text-align: center;
  margin-bottom: 50px;
}

.highlight-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-teal);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: 8px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-bg-white);
}

.btn-primary:hover {
  background-color: var(--color-teal-hover);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(19, 177, 164, 0.2);
}

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

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(20, 66, 101, 0.15);
}

.btn-accent {
  background-color: var(--color-orange);
  color: var(--color-bg-white);
}

.btn-accent:hover {
  background-color: var(--color-orange-hover);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.25);
}

.btn-navy {
  background-color: var(--color-navy);
  color: var(--color-bg-white);
}

.btn-navy:hover {
  background-color: var(--color-navy-hover);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(20, 66, 101, 0.2);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Button Group layout customization */
.hero-content {
  container-type: inline-size;
}

.hero-content .btn-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.hero-content .btn-group .btn {
  width: 100%;
}

@container (min-width: 820px) {
  .hero-content .btn-group {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .hero-content .btn-group .btn {
    width: auto;
  }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 66, 101, 0.05);
  height: var(--header-height);
  transition: background-color var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  height: 52px;
  width: 215px; /* Adjust to fit the SVG */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-headers);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-navy);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--color-teal);
  transition: width var(--transition-normal);
  border-radius: 1.5px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-teal);
  font-weight: 600;
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  background-color: var(--color-teal-light);
  padding: 4px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(19, 177, 164, 0.15);
}

.lang-btn {
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--color-navy);
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.lang-btn.active {
  background-color: var(--color-teal);
  color: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  background-color: rgba(19, 177, 164, 0.1);
}

/* Mobile Navigation Toggle (Pure CSS) */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

#nav-checkbox {
  display: none;
}

/* Hero Section */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  min-height: calc(80vh - var(--header-height));
  padding: 40px 0;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 35px;
  font-weight: 400;
  max-width: 550px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image svg {
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
}

/* Float Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Cards Grid (3 Columns) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 66, 101, 0.03);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(19, 177, 164, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--color-teal);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-teal-light);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--color-teal);
}

.card h3 {
  color: var(--color-navy);
  margin-bottom: 15px;
}

.card-footer {
  margin-top: auto;
  padding-top: 20px;
}

/* Course Specific Cards */
.course-card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  background-color: var(--color-bg-white);
  border: 1px solid rgba(20, 66, 101, 0.04);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.course-header {
  padding: 25px;
  color: var(--color-bg-white);
  position: relative;
}

.course-header-orange {
  background: linear-gradient(135deg, var(--color-orange), #d97706);
}

.course-header-teal {
  background: linear-gradient(135deg, var(--color-teal), #0da194);
}

.course-header-navy {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
}

.course-age {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.course-header h3 {
  color: var(--color-bg-white);
  margin-bottom: 0;
}

.course-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
}

.course-meta-item svg {
  color: var(--color-teal);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.values-list svg {
  width: 22px;
  height: 22px;
  color: var(--color-teal);
  stroke-width: 2.5;
  flex-shrink: 0;
}

.course-body p {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Feature/Methodology Section */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse .feature-content {
  direction: ltr;
}

.feature-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.feature-image {
  background-color: var(--color-teal-light);
  border-radius: var(--border-radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.feature-image::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: rgba(19, 177, 164, 0.08);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}

.feature-image-orange {
  background-color: var(--color-orange-light);
}

.feature-image-orange::before {
  background-color: rgba(245, 158, 11, 0.08);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.team-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--color-teal-light);
  margin: 0 auto 20px;
  border: 4px solid var(--color-bg-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
}

.team-card h4 {
  color: var(--color-navy);
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.team-role {
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Form Styles */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
}

.contact-card {
  background-color: var(--color-bg-white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(20, 66, 101, 0.02);
}

.form-group {
  margin-bottom: 24px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  border: 2px solid #e2e8f0;
  background-color: #f8fafc;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  color: var(--color-text);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-teal);
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 4px rgba(19, 177, 164, 0.12);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Modal Popup (for Form Success) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 43, 72, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 70px;
  height: 70px;
  background-color: var(--color-teal-light);
  color: var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 10px;
}

/* Info Cards sidebar */
.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid rgba(20, 66, 101, 0.02);
}

.info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-teal-light);
  border-radius: var(--border-radius-sm);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-text p, .info-text a {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.info-text a:hover {
  color: var(--color-teal);
}

/* Footer Styles */
.site-footer {
  background-color: var(--color-navy-dark);
  color: var(--color-text-light);
  padding: 70px 0 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 50px;
  filter: brightness(0) invert(1); /* Makes the logo white for dark backgrounds */
}

.footer-desc {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-bg-white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--color-teal);
  border-radius: 1.5px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item {
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.footer-link-item:hover {
  color: var(--color-teal);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
}

.footer-contact-item svg {
  color: var(--color-teal);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: #64748b;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.social-btn:hover {
  background-color: var(--color-teal);
  color: var(--color-bg-white);
  transform: translateY(-3px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 20px;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .btn-group {
    justify-content: center;
  }
  
  .feature-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-row.reverse {
    direction: ltr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .site-header {
    background-color: var(--color-bg-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  /* Mobile Menu Hamburger Logic */
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-white);
    flex-direction: column;
    padding: 40px 20px;
    gap: 25px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    align-items: stretch;
    text-align: center;
  }
  
  #nav-checkbox:checked ~ .nav-menu {
    transform: translateX(0);
  }
  
  #nav-checkbox:checked ~ .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #nav-checkbox:checked ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  #nav-checkbox:checked ~ .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .lang-selector {
    justify-content: center;
    margin-top: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
