/* ======== Root Variables ======== */
:root {
  /* Color Palette - Triadic scheme */
  --primary: #2ecc71;        /* Eco-green */
  --primary-dark: #27ae60;   /* Darker green */
  --primary-light: #a8e6cf;  /* Light green */
  
  --secondary: #3498db;      /* Electric blue */
  --secondary-dark: #2980b9; /* Dark blue */
  --secondary-light: #a7d2f0; /* Light blue */
  
  --accent: #9b59b6;         /* Purple accent */
  --accent-dark: #8e44ad;    /* Dark purple */
  --accent-light: #d6b7e0;   /* Light purple */
  
  /* Neutral colors */
  --dark: #2c3e50;
  --dark-alt: #34495e;
  --medium: #7f8c8d;
  --light: #ecf0f1;
  --white: #ffffff;
  
  /* Shadows and effects */
  --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  --button-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --heading-font: 'Archivo Black', sans-serif;
  --body-font: 'Roboto', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  
  /* Border radius */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 12px;
  --radius-circle: 50%;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

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

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

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--space-md);
}

.btn-text {
  color: var(--secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-medium);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
}

.btn-text:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: width var(--transition-medium);
}

.btn-text:hover {
  color: var(--secondary-dark);
}

.btn-text:hover:after {
  width: 100%;
}

.btn-text .arrow {
  margin-left: var(--space-xs);
  transition: transform var(--transition-medium);
}

.btn-text:hover .arrow {
  transform: translateX(4px);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section title */
.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: var(--radius-medium);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: -20px auto var(--space-xl);
  color: var(--medium);
  font-size: 1.1rem;
}

/* ======== Header & Navigation ======== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--header-shadow);
  transition: all var(--transition-medium);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: block;
}

.logo img {
  max-height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
}

.nav-links {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 var(--space-sm);
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-medium);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  transition: width var(--transition-medium);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 70%;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: var(--radius-small);
  transition: all var(--transition-medium);
}

/* ======== Buttons ======== */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-medium);
  transition: all var(--transition-medium);
  cursor: pointer;
  box-shadow: var(--button-shadow);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
  background: var(--secondary-light);
  color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

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

button, 
input[type="submit"] {
  cursor: pointer;
  font-family: var(--body-font);
  border: none;
}

/* ======== Cards ======== */
.card {
  background-color: var(--white);
  border-radius: var(--radius-medium);
  box-shadow: var(--card-shadow);
  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(--hover-shadow);
}

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.card-content h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.card-content p {
  color: var(--medium);
  margin-bottom: var(--space-md);
}

.card-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ======== Hero Section ======== */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 200px 0 100px;
  color: var(--white);
  margin-bottom: var(--space-xxl);
}

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

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

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--white);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  color: var(--white);
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

/* ======== History Section ======== */
.history {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.history-text p {
  color: var(--dark-alt);
  margin-bottom: var(--space-md);
}

.history-image img {
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

.history-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-small);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--secondary);
  border-radius: var(--radius-circle);
  z-index: 2;
  box-shadow: 0 0 0 6px var(--light);
}

.timeline-content {
  width: calc(50% - 40px);
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-medium);
  box-shadow: var(--card-shadow);
  position: relative;
  margin-left: 80px;
}

.timeline-content h3 {
  margin-bottom: var(--space-xs);
  color: var(--secondary);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 80px;
  margin-left: 0;
  text-align: right;
}

/* ======== Catalog Showcase ======== */
.catalog-showcase {
  padding: var(--space-xxl) 0;
}

.showcase-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.showcase-slide {
  padding: 0 var(--space-md);
  transition: opacity var(--transition-medium);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
}

.prev-btn,
.next-btn {
  background-color: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: var(--secondary);
}

.prev-btn span,
.next-btn span {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--secondary);
  border-right: 2px solid var(--secondary);
  transition: border-color var(--transition-fast);
}

.prev-btn:hover span,
.next-btn:hover span {
  border-color: var(--white);
}

.prev-btn span {
  transform: rotate(-135deg);
}

.next-btn span {
  transform: rotate(45deg);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background-color: var(--medium);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slider-dot.active {
  width: 20px;
  background-color: var(--secondary);
  border-radius: 5px;
}

/* ======== Events Section ======== */
.events {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.event-card {
  height: 100%;
}

.event-date {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-medium);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

/* ======== External Resources ======== */
.external-resources {
  padding: var(--space-xxl) 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* ======== Contact Section ======== */
.contact {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-large);
  color: var(--dark);
}

.contact-info h3 {
  margin-bottom: var(--space-md);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.info-item .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-circle);
  margin-right: var(--space-md);
}

.contact-form {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid #ddd;
  border-radius: var(--radius-medium);
  font-family: var(--body-font);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox input {
  width: auto;
  margin-right: var(--space-sm);
}

.form-group.checkbox label {
  margin: 0;
}

/* ======== Accolades Section ======== */
.accolades {
  padding: var(--space-xxl) 0;
}

.accolades-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.accolade-slide {
  padding: 0 var(--space-md);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background-color: var(--medium);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.carousel-dot.active {
  width: 20px;
  background-color: var(--primary);
  border-radius: 5px;
}

/* ======== Community Section ======== */
.community {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.community-intro {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

/* ======== Case Studies Section ======== */
.case-studies {
  padding: var(--space-xxl) 0;
}

.case-studies-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.case-study .card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
}

.case-study .card-image {
  height: 100%;
}

.case-study .card-image img {
  height: 100%;
  object-fit: cover;
}

/* ======== Webinars Section ======== */
.webinars {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.webinars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.webinar-card {
  height: 100%;
}

.webinar-date {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

/* ======== Footer ======== */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-info p {
  color: var(--medium);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-social h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.social-links a {
  color: var(--light);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-link-group h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

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

.footer-link-group li {
  margin-bottom: var(--space-xs);
}

.footer-link-group a {
  color: var(--medium);
  transition: color var(--transition-fast);
}

.footer-link-group a:hover {
  color: var(--primary);
}

.footer-newsletter h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-newsletter p {
  color: var(--medium);
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-medium);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--medium);
  margin-bottom: var(--space-sm);
}

/* ======== Page Header ======== */
.page-header {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 180px 0 80px;
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--white);
}

/* ======== Mission & Vision ======== */
.mission-vision {
  padding: var(--space-xl) 0;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.mission-box,
.vision-box {
  padding: var(--space-lg);
  border-radius: var(--radius-large);
  height: 100%;
}

.mission-box {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

.vision-box {
  background: linear-gradient(135deg, var(--secondary-light), var(--accent-light));
}

/* ======== Values Section ======== */
.values {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.value-card {
  height: 100%;
}

/* ======== Our Story ======== */
.our-story {
  padding: var(--space-xxl) 0;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.story-image img {
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

.story-text p {
  margin-bottom: var(--space-md);
}

/* ======== Team Section ======== */
.team {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.team-member {
  height: 100%;
}

.member-title {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

/* ======== Partners ======== */
.partners {
  padding: var(--space-xxl) 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
}

.partner-logo {
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-medium);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100%;
  transition: transform var(--transition-medium);
}

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

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

/* ======== CTA Section ======== */
.cta {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
}

.cta-content p {
  margin-bottom: var(--space-lg);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ======== Contact Page ======== */
.contact-page {
  padding: var(--space-xl) 0 var(--space-xxl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info-box {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-large);
  height: 100%;
}

.info-details {
  margin-bottom: var(--space-lg);
}

.info-text h3 {
  margin-bottom: var(--space-xs);
}

.social-connect h3 {
  margin-bottom: var(--space-sm);
}

.contact-form-box {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ======== Locations ======== */
.locations {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.locations-map {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ======== FAQ ======== */
.faq {
  padding: var(--space-xxl) 0;
}

.faq-content {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid #eee;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: var(--space-md) 0;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--secondary);
  transition: transform var(--transition-medium);
}

.faq-question.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ======== Legal Pages ======== */
.legal-header {
  margin-bottom: var(--space-md);
}

.legal-content {
  padding: var(--space-lg) 0 var(--space-xxl);
}

.legal-document {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

.legal-document article {
  margin-bottom: var(--space-xl);
}

.legal-document h2 {
  color: var(--secondary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid #eee;
}

.legal-document h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.legal-document ul, 
.legal-document ol {
  margin-bottom: var(--space-md);
}

.legal-document li {
  margin-bottom: var(--space-xs);
}

.contact-info-box {
  background-color: var(--light);
  padding: var(--space-md);
  border-radius: var(--radius-medium);
  margin: var(--space-md) 0;
}

.legal-footer {
  padding-top: var(--space-md);
  margin-top: var(--space-xl);
  border-top: 1px solid #eee;
  text-align: center;
  color: var(--medium);
  font-style: italic;
}

/* ======== Success Page ======== */
.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-xxl) 0;
  text-align: center;
}

.success-content {
  max-width: 700px;
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

.success-icon {
  margin-bottom: var(--space-lg);
  animation: pulse 2s infinite;
}

.success-text {
  font-size: 1.2rem;
  color: var(--dark-alt);
  margin-bottom: var(--space-lg);
}

.success-details {
  background-color: var(--light);
  padding: var(--space-md);
  border-radius: var(--radius-medium);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.success-details p {
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.success-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* ======== Related Information ======== */
.related-info {
  padding: 0 0 var(--space-xxl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* ======== Animations ======== */
@keyframes fadeInUp {
  from {
    opacity: 1;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ======== Media Queries ======== */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .footer-content {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
  }

  .footer-newsletter {
    grid-column: span 2;
    margin-top: var(--space-lg);
  }

  .case-study .card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .history-content,
  .contact-container,
  .mission-vision-grid,
  .story-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .timeline-content {
    width: 80%;
    margin-left: 40px;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 40px;
    text-align: left;
  }

  .history-timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-newsletter {
    grid-column: auto;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .burger-menu {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--card-shadow);
    padding: var(--space-md) 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    margin: var(--space-xs) 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .hero {
    padding: 150px 0 80px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    margin-bottom: var(--space-sm);
  }

  .cta-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
}