/* Base Variables */
:root {
  --primary-color: #7b68ee; /* Soft purple */
  --primary-dark: #5a4cbf;
  --secondary-color: #64d8cb; /* Mint */
  --secondary-dark: #45b5a8;
  --accent-color: #ff9e80; /* Peach */
  --accent-dark: #e57373;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --bg-muted: #f0f0f0;
  --card-bg: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --container-padding: 2rem;
}

/* Typography */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* General Styles */
.section {
  padding: 4rem 2rem;
}

.section h2.title, 
.section h2.title.is-2 {
  margin-bottom: 1.5rem;
  position: relative;
}

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

.section:hover h2.title::after {
  width: 80px;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  transition: all var(--transition-speed);
}

.navbar-item {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition-speed);
}

.navbar-item:hover, 
.navbar-item:focus {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

.navbar-brand .title {
  margin-bottom: 0;
  color: var(--primary-color);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
  z-index: 1;
}

.hero .hero-body {
  position: relative;
  z-index: 2;
}

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .button {
  margin-right: 0.5rem;
  box-shadow: var(--box-shadow);
  transform: translateY(0);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.hero .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.button.is-primary {
  background-color: var(--primary-color);
  border-color: transparent;
}

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

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

.button.is-light:hover,
.button.is-light:focus {
  background-color: var(--bg-light);
  color: var(--primary-dark);
}

.button {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
}

/* Cards */
.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card-content .title {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.card .tags {
  margin-top: auto;
}

.tag.is-info {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Services Section */
.service-card .card-content {
  text-align: center;
}

.service-card .card-image img {
  height: 200px;
}

/* Projects Section */
.project-card .card-content {
  text-align: left;
}

.project-card .card-image img {
  height: 280px;
}

/* Case Studies */
.case-study-card .card-content {
  text-align: left;
}

.case-study-card .card-image img {
  height: 240px;
}

/* Vision Section */
.has-background-primary {
  background-color: var(--primary-color) !important;
  color: var(--text-light);
}

.has-background-primary h2.title {
  color: var(--text-light);
}

.has-background-primary h2.title::after {
  background-color: var(--text-light);
}

/* Resource Cards */
.resource-card {
  background-color: var(--card-bg);
}

.resource-card .card-content {
  padding: 2rem;
}

.resource-card .title a {
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

.resource-card .title a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Partners Section */
.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  opacity: 0.8;
  transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.partner-logo img {
  max-height: 100px;
  object-fit: contain;
}

/* Gallery Section */
.gallery-card {
  margin-bottom: 1.5rem;
}

.gallery-card .card-image {
  height: 250px;
}

.gallery-card .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Workshops Section */
.workshop-card .card-image img {
  height: 300px;
}

.workshop-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-muted);
}

.workshop-details p {
  margin-bottom: 0.5rem;
}

/* Instructors Section */
.instructor-card {
  text-align: center;
}

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

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

.instructor-card .subtitle {
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

/* Contact Section */
.contact-info {
  padding: 0 1rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.contact-form-container {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form .input,
.contact-form .textarea {
  border-radius: var(--border-radius);
  transition: border-color var(--transition-speed);
}

.contact-form .input:focus,
.contact-form .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.contact-form .label {
  color: var(--text-dark);
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 4rem 2rem 2rem;
}

.footer h3.title {
  margin-bottom: 1.5rem;
}

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

.footer a {
  transition: color var(--transition-speed);
}

.footer a:hover {
  color: var(--text-light) !important;
  text-decoration: underline;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  transition: color var(--transition-speed);
}

.social-links a:hover {
  color: var(--accent-color) !important;
}

/* Cookie Consent */
#cookie-consent {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cookie-accept {
  transition: background-color var(--transition-speed);
}

#cookie-accept:hover {
  background-color: #45a049;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Specific Page Styles */
/* 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;
  padding: 3rem;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.success-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Privacy & Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-content,
.terms-content {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
}

/* About Page */
.about-page {
  padding-top: 100px;
}

.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-member img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  box-shadow: var(--box-shadow);
}

/* Contact Page */
.contact-page {
  padding-top: 100px;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .card-image img {
    height: 200px;
  }
  
  .navbar-menu {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-item {
    text-align: center;
  }
  
  .hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 2rem 1rem;
  }
  
  .hero .title.is-1 {
    font-size: 2rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.25rem;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .buttons .button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .card-image img {
    height: 180px;
  }
}