/* Base Styles */
:root {
  --primary: #2C3E50;
  --secondary: #3498DB;
  --accent: #E74C3C;
  --background: #ECF0F1;
  --gradient-start: #8E44AD;
  --gradient-end: #3498DB;
  --text-dark: #2C3E50;
  --text-light: #FFFFFF;
  --success: #27AE60;
  --warning: #F39C12;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

ul li, ol li {
  list-style-type: none;
}

/* Utility Classes */
.container {
  width: 100%;
  padding: 0 1.5rem;
  margin: 0 auto;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-light);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
  color: var(--text-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--text-light);
}

.section {
  padding: 3rem 0;
}

.card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

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

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  height: 40px;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 20px;
  justify-content: space-between;
  position: relative;
  width: 30px;
  z-index: 1001;
}

.nav-toggle span {
  background-color: var(--primary);
  border-radius: 3px;
  display: block;
  height: 3px;
  transition: var(--transition);
  width: 100%;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 600px;
  height: 100vh;
  background: var(--text-light);
  transition: var(--transition);
  z-index: 1000;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 15px var(--shadow);
}

.nav.active {
  right: 0;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.nav-overlay.active {
  display: block;
}

.nav-item {
  margin-bottom: 1.5rem;
}

.nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-img {
  position: absolute;
  top: 0;
  right: -150px;
  height: 100%;
  width: auto;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.hero-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.3), rgba(52, 152, 219, 0.3));
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
  z-index: 0;
}

/* Features Section */
.features {
  position: relative;
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.feature-content {
  position: relative;
  z-index: 2;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

/* Benefits Section */
.benefits {
  background-color: var(--text-light);
}

.benefit-item {
  display: flex;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.benefit-icon {
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  margin-right: 1.5rem;
  color: var(--text-light);
  font-size: 1.5rem;
}

.benefit-text h3 {
  margin-bottom: 0.5rem;
}

/* Educational Content Section */
.content-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Contact Section */
.contact {
  position: relative;
  background-color: var(--text-light);
}

.contact-info {
  margin-bottom: 2rem;
}

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

.contact-icon {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  margin-right: 1rem;
  color: var(--text-light);
  font-size: 1rem;
}

.contact-form {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

.form-submit {
  width: 100%;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-link-list {
  list-style: none;
}

.footer-link-item {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-light);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-mesh {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(142, 68, 173, 0.3));
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--text-light);
  padding: 1.5rem;
  box-shadow: 0 -5px 20px var(--shadow);
  z-index: 1001;
  transition: var(--transition);
}

.cookie-consent.active {
  bottom: 0;
}

.cookie-consent-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cookie-text {
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.btn-cookie {
  flex: 1;
  min-width: 120px;
}

.cookie-settings {
  margin-top: 0.5rem;
  text-decoration: underline;
  cursor: pointer;
  color: var(--secondary);
  align-self: center;
}

.cookie-settings:hover {
  color: var(--primary);
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cookie-modal-content {
  background: var(--text-light);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: var(--border-radius);
  padding: 2rem;
  position: relative;
}

.cookie-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

.cookie-types {
  margin: 2rem 0;
}

.cookie-type {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.cookie-type:last-child {
  border-bottom: none;
}

.cookie-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cookie-checkbox {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.cookie-checkbox input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-checkbox-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
  border-radius: 30px;
}

.cookie-checkbox-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .cookie-checkbox-slider {
  background-color: var(--success);
}

input:focus + .cookie-checkbox-slider {
  box-shadow: 0 0 1px var(--success);
}

input:checked + .cookie-checkbox-slider:before {
  transform: translateX(30px);
}

.cookie-type-necessary input:checked + .cookie-checkbox-slider {
  background-color: var(--primary);
}

.cookie-modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Mission Page */
.mission-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.mission-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.mission-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.mission-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-values {
  padding: 4rem 0;
}

.mission-value-card {
  text-align: center;
  margin-bottom: 3rem;
}

.mission-value-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  color: var(--text-light);
  font-size: 2rem;
}

/* Educational Content Page */
.educational-content {
  padding-top: 4rem;
  margin-top: 60px;
}

.educational-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  border-radius: var(--border-radius);
}

.educational-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
  border-radius: var(--border-radius);
}

.educational-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.educational-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.topic-filter {
  margin-bottom: 2rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 1rem;
}

.topic-filter::-webkit-scrollbar {
  height: 5px;
}

.topic-filter::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.topic-filter::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

.topic-filter-item {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-right: 0.75rem;
  background: var(--text-light);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #ddd;
}

.topic-filter-item:hover,
.topic-filter-item.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-light);
  border-color: transparent;
}

.educational-topics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.topic-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.topic-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.topic-content h3 {
  margin-bottom: 1rem;
}

.topic-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.topic-details {
  font-size: 0.9rem;
  color: #777;
}

/* Contact Page */
.contact-page {
  padding-top: 4rem;
  margin-top: 60px;
}

.contact-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  border-radius: var(--border-radius);
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
  border-radius: var(--border-radius);
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.contact-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-map {
  height: 300px;
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Thanks Page */
.thanks-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.thanks-content {
  max-width: 600px;
}

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

.thanks-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Policies Pages */
.policy-page {
  padding-top: 4rem;
  margin-top: 60px;
  padding-bottom: 4rem;
}

.policy-content {
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
}

.policy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.policy-content p {
  margin-bottom: 1rem;
}

.policy-content ul, 
.policy-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-date {
  font-style: italic;
  color: #777;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* 404 Page */
.error-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.error-content {
  max-width: 600px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.error-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* International Telephone Input */
.iti {
  width: 100%;
}

/* Media Queries */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .cookie-consent-container {
    flex-direction: row;
    align-items: center;
  }
  
  .cookie-text {
    margin-bottom: 0;
    margin-right: 2rem;
    flex: 1;
  }
  
  .cookie-buttons {
    width: auto;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .educational-topics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cookie-settings {
    align-self: flex-start;
    margin-top: 0;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .header-container {
    padding: 1rem 2rem;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    flex-direction: row;
    box-shadow: none;
  }
  
  .nav-item {
    margin: 0 0 0 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .content-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .educational-topics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-img {
    right: -50px;
    opacity: 0.5;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}