/* Root Variables - Triadic Color Scheme */
:root {
  --primary: #4A6FE3; /* Primary blue */
  --primary-dark: #3456C0;
  --primary-light: #6A8AFF;
  --secondary: #E34A6F; /* Secondary red-pink */
  --secondary-dark: #C03456;
  --secondary-light: #FF6A8A;
  --tertiary: #6FE34A; /* Tertiary green */
  --tertiary-dark: #56C034;
  --tertiary-light: #8AFF6A;
  --dark: #333333;
  --light: #f5f7fa;
  --gray-light: #eaeaea;
  --gray: #9A9A9A;
  --gray-dark: #666666;
  --white: #ffffff;
  --black: #111111;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6); /* Elastic animation */
  
  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Z-indices */
  --z-back: -1;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

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

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

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

section {
  padding: 5rem 1.5rem;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Read More Links */
.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
  padding: 0.5rem 0;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.read-more:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-slow);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 3D UI Elements - Cards, Buttons, etc. */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow), box-shadow var(--transition-normal);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

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

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

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

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

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

/* Button Styles - Global */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-slow);
  border: none;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.button.is-tertiary:hover {
  background-color: var(--tertiary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.button.is-light:hover {
  background-color: var(--gray-light);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Pulse Button Animation */
.pulse-button {
  position: relative;
}

.pulse-button:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

/* Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-normal);
}

.navbar-brand .title {
  color: var(--primary);
  transition: color var(--transition-normal);
}

.navbar-item {
  font-weight: 500;
  transition: all var(--transition-normal);
}

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

/* Hero Section */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  margin-top: 52px; /* Navbar height compensation */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

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

.hero-content {
  z-index: var(--z-normal);
  max-width: 700px;
}

.hero-content .title,
.hero-content .subtitle {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero .buttons {
  margin-top: 2rem;
}

/* Mission Section */
#mission {
  background-color: var(--white);
}

#mission .title {
  color: var(--primary);
  margin-bottom: 3rem;
}

.image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow), box-shadow var(--transition-normal);
}

.image-container:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: var(--shadow-xl);
}

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

/* Instructors Section */
#instructors {
  background-color: var(--light);
}

#instructors .title {
  color: var(--primary);
  margin-bottom: 1rem;
}

#instructors .subtitle {
  margin-bottom: 3rem;
}

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

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

.tags {
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  margin: 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--primary);
  color: var(--white);
}

/* Webinars Section */
#webinars {
  background-color: var(--white);
}

#webinars .title {
  color: var(--primary);
  margin-bottom: 1rem;
}

#webinars .subtitle {
  margin-bottom: 3rem;
}

.webinar-card .card-image {
  height: 220px;
}

/* Awards Section */
#awards {
  background-color: var(--light);
}

#awards .title {
  color: var(--primary);
  margin-bottom: 1rem;
}

#awards .subtitle {
  margin-bottom: 3rem;
}

.award-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.award-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto;
  transition: transform var(--transition-normal);
}

.award-card:hover img {
  transform: scale(1.1);
}

/* Community Section */
#community {
  background-color: var(--white);
}

#community .title {
  color: var(--primary);
  margin-bottom: 1rem;
}

#community .subtitle {
  margin-bottom: 3rem;
}

.community-stats {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.community-stats .title {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.community-gallery {
  margin-top: 2rem;
}

.community-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.community-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* History Section */
#history {
  background-color: var(--light);
}

#history .title {
  color: var(--primary);
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 47px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 4px var(--white);
  transform: translateX(-3px);
}

.timeline-content {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Research Section */
#research {
  background-color: var(--white);
}

#research .title {
  color: var(--primary);
  margin-bottom: 1rem;
}

#research .subtitle {
  margin-bottom: 3rem;
}

.research-content {
  padding-right: 2rem;
}

.research-content h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.research-content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.research-content ul li {
  margin-bottom: 0.8rem;
}

.research-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.research-chart-container img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.research-chart-container img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.caption {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 2rem;
  text-align: center;
}

/* Resources Section */
#resources {
  background-color: var(--light);
}

#resources .title {
  color: var(--primary);
  margin-bottom: 1rem;
}

#resources .subtitle {
  margin-bottom: 3rem;
}

.resource-card .card-image {
  height: 220px;
}

/* Behind the Scenes Section */
#behind-scenes {
  background-color: var(--white);
}

#behind-scenes .title {
  color: var(--primary);
  margin-bottom: 1rem;
}

#behind-scenes .subtitle {
  margin-bottom: 3rem;
}

.behind-scenes-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.behind-scenes-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.behind-scenes-gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Contact Section */
#contact {
  background-color: var(--light);
}

#contact .title {
  color: var(--primary);
  margin-bottom: 1rem;
}

#contact .subtitle {
  margin-bottom: 3rem;
}

.contact-info {
  padding-right: 2rem;
}

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

.contact-item h3 {
  display: flex;
  align-items: center;
  color: var(--secondary);
}

.contact-map {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

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

.contact-form .field {
  margin-bottom: 1.5rem;
}

.contact-form .label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-light);
  box-shadow: none;
  transition: border var(--transition-normal), box-shadow var(--transition-normal);
  padding: 0.75rem;
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 111, 227, 0.2);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem 1.5rem;
}

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

.footer p {
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  color: var(--gray-light);
  transition: color var(--transition-normal);
}

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

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-links a {
  color: var(--light);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  margin-right: 1rem;
  font-weight: 500;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

/* Animation Utilities */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInLeft {
  animation-name: fadeInLeft;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInRight {
  animation-name: fadeInRight;
}

/* Responsive Adjustments */
@media screen and (max-width: 1023px) {
  .research-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .contact-info {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-marker {
    left: 27px;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 4rem 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-content .title {
    font-size: 2rem !important;
  }
  
  .hero-content .subtitle {
    font-size: 1.25rem !important;
  }
  
  .community-stats .columns {
    flex-direction: column;
  }
  
  .community-stats .column {
    padding: 1rem 0;
  }
}

@media screen and (max-width: 480px) {
  .hero-content .title {
    font-size: 1.75rem !important;
  }
  
  .hero-content .subtitle {
    font-size: 1.1rem !important;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero .buttons {
    flex-direction: column;
  }
  
  .hero .button {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .award-card {
    padding: 1.5rem;
  }
  
  .award-card img {
    width: 80px;
    height: 80px;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
}

.select select {
  height: max-content;
}