/* Fixed and optimized style.css */
:root {
  --primary-green: #2E7D32;
  --secondary-green: #4CAF50;
  --light-green: #E8F5E9;
  --dark-green: #1B5E20;
  --accent-orange: #FF9800;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* override for the header area */
header .container {
  max-width: 100%;
  /* This allows the header content to hit the screen edges */
  padding: 0 40px;
  /* Optional: adds a nice consistent gap on large screens */
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  /* Ensures the logo doesn't get squashed */
}

.logo {
  height: 80px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
}

.logo-text span {
  color: var(--accent-orange);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(46, 125, 50, 0.9), rgba(46, 125, 50, 0.8)),
    url('/images/hero-bg.jpg') center/cover;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-orange);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.cta-button:hover {
  background-color: #F57C00;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-green);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* RVM Calculator */
.rvm-calculator {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 10px;
  max-width: 600px;
  margin: 3rem auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.calculator-title {
  text-align: center;
  color: var(--primary-green);
  margin-bottom: 2rem;
}

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

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

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.calculate-btn {
  width: 100%;
  background-color: var(--primary-green);
  color: var(--white);
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  min-height: 44px;
}

.calculate-btn:hover {
  background-color: var(--dark-green);
}

.result {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--light-green);
  border-radius: 5px;
  text-align: center;
  display: none;
}

.result.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Location Cards */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.location-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-green);
}

/* Footer */
footer {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--accent-orange);
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: var(--light-gray);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Partnership and Transparency Cards */
.partnership-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 5px solid var(--primary-green);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  transition: transform 0.3s ease;
}

.partnership-card:hover {
  transform: translateX(5px);
}

.transparency-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 5px solid var(--accent-orange);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  transition: transform 0.3s ease;
}

.transparency-card:hover {
  transform: translateX(5px);
}

/* Icon styling for new sections */
.fa-handshake,
.fa-chart-line {
  color: var(--primary-green);
  margin-right: 10px;
}

/* Simplified layout */
.benefits-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.benefits-list li {
  padding: 0.8rem 0;
  padding-left: 2.5rem;
  position: relative;
  border-bottom: 1px solid #eee;
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
  font-size: 1.2rem;
  top: 0.8rem;
}

/* Featured News Article Styles */
.news-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid var(--primary-green);
  margin-bottom: 2rem;
}

.news-image-container {
  position: relative;
  overflow: hidden;
  max-height: 400px;
}

.news-image-container .news-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-image-container:hover .news-image {
  transform: scale(1.02);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-image-container:hover .image-overlay {
  opacity: 1;
}

.news-content-wrapper {
  padding: 2rem;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.news-meta i {
  margin-right: 0.5rem;
  color: var(--primary-green);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 500;
  border-left: 4px solid var(--accent-orange);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.news-full-content {
  margin: 2rem 0;
}

.news-full-content h3 {
  color: var(--primary-green);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.news-full-content h3:first-of-type {
  margin-top: 0;
}

.news-full-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.highlight-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  border-left: 5px solid var(--primary-green);
}

.highlight-box h4 {
  color: var(--dark-green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-box h4 i {
  color: var(--accent-orange);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item-mini {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.quote-box {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  position: relative;
  border-left: 5px solid var(--accent-orange);
}

.quote-icon {
  color: var(--accent-orange);
  font-size: 2rem;
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.quote-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-weight: 600;
  color: var(--primary-green);
  text-align: right;
}

/* MOU Documents Section */
.mou-documents-section {
  margin: 3rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.mou-documents-section h3 {
  color: var(--dark-green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-note {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.mou-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.mou-document-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mou-document-card:hover {
  transform: translateY(-5px);
}

.document-preview {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.mou-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* Prevents dragging */
  -webkit-user-drag: none;
  user-select: none;
}

.document-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 125, 50, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.document-preview:hover .document-overlay {
  opacity: 1;
}

.document-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.document-info {
  padding: 1rem;
}

.document-info h4 {
  color: var(--dark-green);
  margin-bottom: 0.25rem;
}

.document-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.document-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.document-badge.read-only {
  background: #ffebee;
  color: #c62828;
}

.document-badge.read-only i {
  margin-right: 0.25rem;
}

/* External Links Section */
.external-links-section {
  margin: 3rem 0;
}

.external-links-section h3 {
  color: var(--dark-green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.external-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.external-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 2px solid var(--light-green);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.external-link-card:hover {
  border-color: var(--primary-green);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.external-link-card i:first-child {
  font-size: 1.5rem;
  color: var(--primary-green);
}

.link-content {
  flex: 1;
}

.link-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--dark-green);
}

.link-domain {
  font-size: 0.8rem;
  color: var(--text-light);
}

.external-icon {
  color: var(--accent-orange);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Social Share Section */
.social-share-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--light-green);
}

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

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.linkedin {
  background: #0077b5;
}

.share-btn.whatsapp {
  background: #25d366;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 3px solid var(--white);
  border-radius: 5px;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-lightbox:hover {
  color: var(--accent-orange);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  transition: background 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--primary-green);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-title {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .mou-gallery {
    grid-template-columns: 1fr;
  }

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

  .social-share-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Disable text selection and right-click on protected images */
.mou-thumbnail,
.lightbox-image {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Statistics animation */
.stat-box {
  transition: all 0.5s ease;
}

/* =============================== */
/* SAFARI & CROSS-BROWSER FIXES */
/* =============================== */

/* Fix for Safari backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {

  .stat-item,
  .hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.2) !important;
  }
}

/* Fix for Safari rounded corners with gradients */
.main-hero,
.cta-section,
.vision-section,
.circular-economy {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* Fix calculator range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  height: 8px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--primary-green);
  cursor: pointer;
  margin-top: -8px;
}

input[type="range"]::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--primary-green);
  cursor: pointer;
  border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--light-green);
  border-radius: 4px;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--light-green);
  border-radius: 4px;
}

/* Fix for iOS input shadows */
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Prevent text size adjustment */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

/* =============================== */
/* 1. DESKTOP / BASE STYLES        */
/* (Keep these OUTSIDE media queries) */
/* =============================== */

:root {
  --nav-speed: 0.4s;
  --nav-bezier: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.logo {
  height: 80px;
  /* Big for external monitors */
  width: auto;
  transition: height 0.3s ease;
}

.menu-toggle {
  display: none;
  /* Hide on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: var(--primary-green);
  border-radius: 10px;
  transition: transform var(--nav-speed) var(--nav-bezier), opacity var(--nav-speed) ease;
}

@media (max-width: 768px) {

  /* 1. Fix Logo Space on Left */
  header .container {
    padding: 0 15px !important;
    /* Reduces the "empty space" on the left of the logo */
    width: 100%;
    max-width: 100%;
  }

  /* 2. Fix Menu Cutting Off */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;

    /* CRITICAL: This prevents the text from hitting the screen edge */
    padding: 0 20px;
    box-sizing: border-box;
    /* Forces padding to stay INSIDE the 100% width */

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.is-active {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
    /* Adds vertical spacing when the menu is open */
  }

  .nav-links li {
    width: 100%;
    text-align: left;
    /* Align to the left for a professional mobile look */
    border-bottom: 1px solid #f0f0f0;
    /* Optional: adds a separator between links */
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    display: block;
    padding: 15px 0;
    /* Larger "tap area" for fingers */
    width: 100%;
  }
}

/* 3. TINY PHONE OVERRIDES (480px) */
@media (max-width: 480px) {
  .logo {
    height: 40px;
  }

  .hero h1 {
    font-size: 1.8rem !important;
  }
}

/* Ensure the button itself has a size */
.menu-toggle {
  display: none;
  /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

/* Ensure the lines are visible */
.bar {
  width: 100%;
  height: 3px;
  /* If this is missing, the lines are 0px tall and invisible */
  background-color: var(--primary-green);
  /* Ensure this variable exists */
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {

  /* Show the button */
  .menu-toggle {
    display: flex !important;
  }

  /* Keep Logo Left and Hamburger Right */
  .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Fix the Menu Cutting Off */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;

    /* THE FIX FOR CUTTING OFF: */
    padding: 0 25px;
    box-sizing: border-box;
    /* Padding stays INSIDE the width */

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.is-active {
    max-height: 500px;
    opacity: 1;
    padding: 20px 25px;
    /* Vertical space when open */
  }

  .nav-links li {
    width: 100%;
    text-align: left;
    /* No more centering */
    list-style: none;
  }

  /* 1. Change the color of the bars to Orange when open */
  .menu-toggle.is-active .bar {
    background-color: var(--accent-orange) !important;
  }

  /* 2. Hide the middle bar */
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  /* 3. Rotate top bar 45 degrees down */
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  /* 4. Rotate bottom bar 45 degrees up */
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}