/* CSS Variables */
:root {
  /* Color Palette */
  --primary: #6a8caf;
  --primary-dark: #4a6d8c;
  --secondary: #f6b352;
  --secondary-dark: #e5a144;
  --accent: #e66767;
  --accent-dark: #d45555;
  --text: #2c3e50;
  --text-light: #546e7a;
  --background: #f8f9fa;
  --background-alt: #edf1f5;
  --white: #ffffff;
  --black: #000000;
  --grey-light: #f1f3f5;
  --grey: #ced4da;
  --grey-dark: #6c757d;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

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

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: background-color var(--transition-medium);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.navbar-brand h1 {
  margin-bottom: 0;
  font-size: 1.5rem;
  color: var(--primary);
}

.navbar-menu {
  display: flex;
}

.navbar-end {
  display: flex;
  align-items: center;
}

.navbar-item {
  margin-left: var(--spacing-md);
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary);
  text-decoration: none;
}

.navbar-burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--spacing-sm);
}

.navbar-burger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text);
  transition: var(--transition-medium);
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: var(--spacing-xxl) 0;
  display: flex;
  align-items: center;
  min-height: 85vh;
  margin-top: 60px;
}

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

.hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
}

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

.hero .title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.hero .subtitle {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-lg);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
}

/* Button Styles */
.button, 
button, 
input[type="submit"] {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: 
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.button:hover, 
button:hover, 
input[type="submit"]:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.button:active, 
button:active, 
input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

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

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

.button.is-light {
  background-color: transparent;
  border: 2px solid var(--white);
}

.button.is-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.button.is-link {
  background-color: transparent;
  color: var(--primary);
  padding: 0.5rem 1rem;
}

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

.button.is-link.is-outlined {
  border: 1px solid var(--primary);
}

.button.is-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.button.is-medium {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.button.is-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

/* Section Styles */
.section {
  padding: var(--spacing-xxl) 0;
}

.section .title {
  position: relative;
  margin-bottom: var(--spacing-xl);
  color: var(--text);
}

.section .title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  margin: var(--spacing-sm) auto 0;
}

.section .title.has-text-left::after {
  margin-left: 0;
}

.section.has-background-light {
  background-color: var(--background-alt);
}

/* About Section */
.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

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

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

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

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

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

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

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

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

/* Methodology Section */
.timeline {
  position: relative;
  margin: var(--spacing-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--grey);
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid var(--white);
  margin-right: var(--spacing-lg);
  margin-top: 0.5rem;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-content {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.timeline-header {
  display: flex;
  justify-content: center;
  margin: var(--spacing-xl) 0;
  position: relative;
  z-index: 1;
}

.timeline-header .tag {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* Vision Section */
.box {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

/* Research Section */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.column {
  padding: 0 1rem;
  margin-bottom: var(--spacing-xl);
}

.column.is-half {
  width: 50%;
}

.column.is-one-third {
  width: 33.333%;
}

.column.is-two-thirds {
  width: 66.667%;
}

.column.is-one-fifth {
  width: 20%;
}

.column.is-one-fifth-desktop {
  width: 20%;
}

/* Events Section */
.event-date {
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: var(--spacing-lg);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--grey);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  background-color: var(--background);
  padding: var(--spacing-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 var(--spacing-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium), padding var(--transition-medium);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: var(--spacing-lg);
  border-top: 1px solid var(--grey);
}

.faq-item.active .faq-question .icon {
  transform: rotate(180deg);
}

.faq-question .icon {
  transition: transform var(--transition-medium);
}

/* Contact Section */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

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

.field {
  margin-bottom: var(--spacing-lg);
}

.label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text);
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--grey);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(106, 140, 175, 0.2);
}

.select {
  position: relative;
  display: block;
  width: 100%;
}

.select select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%232c3e50' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 8px 10px;
}

.control {
  position: relative;
}

/* Partners Section */
.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  padding: var(--spacing-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

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

.partner-logo img {
  max-height: 80px;
  max-width: 80px;
}

/* Success Stories */
.media {
  display: flex;
  margin-bottom: var(--spacing-lg);
}

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

.media-content {
  flex: 1;
}

.image.is-96x96 {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
}

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

/* News Section */
.card .image.is-4by3 {
  padding-top: 75%;
  position: relative;
}

.card .image.is-4by3 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Utilities */
.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 0.75rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.mb-5 {
  margin-bottom: 1.5rem !important;
}

.mb-6 {
  margin-bottom: 2rem !important;
}

.mt-3 {
  margin-top: 0.75rem !important;
}

.mt-4 {
  margin-top: 1rem !important;
}

.mt-5 {
  margin-top: 1.5rem !important;
}

.mt-6 {
  margin-top: 2rem !important;
}

.mr-3 {
  margin-right: 0.75rem !important;
}

.mr-4 {
  margin-right: 1rem !important;
}

.has-text-centered {
  text-align: center !important;
}

.has-text-left {
  text-align: left !important;
}

.has-text-white {
  color: var(--white) !important;
}

.is-block {
  display: block !important;
}

.is-size-3 {
  font-size: 2rem !important;
}

.is-size-4 {
  font-size: 1.5rem !important;
}

.is-size-5 {
  font-size: 1.25rem !important;
}

.has-text-weight-bold {
  font-weight: 700 !important;
}

/* Footer */
.footer {
  background-color: var(--text);
  color: var(--white);
  padding: var(--spacing-xxl) 0;
}

.footer .title, .footer h3 {
  color: var(--white);
}

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

.footer a:hover {
  color: var(--white);
  text-decoration: none;
}

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

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

.footer hr {
  margin: var(--spacing-xl) 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
  display: inline-block;
  margin-right: var(--spacing-md);
  padding: 0.5rem;
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
  color: var(--secondary);
  transform: translateY(-2px);
}

/* Special Pages */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--spacing-xxl);
}

.success-page .icon {
  font-size: 5rem;
  color: var(--secondary);
  margin-bottom: var(--spacing-xl);
}

.success-page h1 {
  margin-bottom: var(--spacing-lg);
}

.privacy-page, .terms-page {
  padding-top: 100px;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar-item {
    margin: var(--spacing-sm) 0;
  }
  
  .navbar-burger {
    display: block;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .column.is-half, 
  .column.is-one-third,
  .column.is-two-thirds {
    width: 100%;
  }
  
  .timeline::before {
    left: 0;
  }
  
  .timeline-item {
    flex-direction: column;
    margin-left: 20px;
  }
  
  .timeline-marker {
    position: absolute;
    left: -20px;
    top: 0;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 70vh;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
    margin-bottom: var(--spacing-md);
  }
  
  .column.is-one-fifth,
  .column.is-one-fifth-desktop {
    width: 50%;
  }
}

@media (max-width: 479px) {
  .hero {
    min-height: 60vh;
  }
  
  .hero .title {
    font-size: 1.75rem;
  }
  
  .hero .subtitle {
    font-size: 1.125rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .column.is-one-fifth,
  .column.is-one-fifth-desktop {
    width: 100%;
  }
  
  .card-image img,
  .image-container {
    height: 200px;
  }
  
  .event-date {
    width: 60px;
    height: 60px;
    padding: var(--spacing-sm);
  }
}