@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Quicksand:wght@300..700&family=Russo+One&family=Syncopate:wght@400;700&display=swap");
:root {
  --header-height: 70px;
  --accent-glow: #00f0ff;
  --primary-color: #00e0ff;
  --color-primary-hover: #00a8cc;
  --color-background: #0d0d0d;
  --color-card-bg: #1e1e1e;
  --color-text: #ffffff;
  --color-border: #444444;
  --border-radius: 12px;
  --transition-speed: 0.3s;
  --sustainability-highlight: #2ecc71;
  --sustainability-shadow: rgba(46, 204, 113, 0.3);
  --icon-bg: white;
  --icon-hover-bg: #101415;
  --icon-color: white;
  --icon-hover-color: var(--primary-color);

  --color-brand: #00b894;
  --color-brand-dark: #018d71;
  --color-brand-light: #55efc4;
  --color-text-primary: #f0fdfa;
  --color-text-secondary: #a7f3d0;
  --color-bg-card: rgba(12, 59, 46, 0.6);
  --color-bg-card-backdrop: rgba(12, 59, 46, 0.4);
  --color-bg-section: #0c1817;

  --font-primary: "Syncopate", sans-serif;
  --font-heading: "Russo One", sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --line-height-prose: 1.6;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  --border-radius-card: 24px;
  --border-radius-image: 12px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition-duration: 0.4s;
  --transition-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: black;
  height: 100%;
  width: 100%;
  background-color: black;
  color: white;
  overflow-x: hidden;
  font-family: "Quicksand", sans-serif;
}

/* ============================================= */
/* == Preloader style                 == */
/* ============================================= */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent-glow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.cards--loader {
  position: absolute;
  left: 50%;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================= */
/* ==        HEADER COMPONENT STYLES          == */
/* ============================================= */

.site-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10, 10, 10, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: normal;
  font-family: "Russo One", sans-serif;
  color: #fff;
  position: relative;
}

.header-logo a {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.hopper-text {
  color: #00f0ff;
}

#logo {
  position: relative;
  height: 45px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  bottom: 4px;
  filter: contrast(100) brightness(100);
}

.main-nav {
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a:hover {
  color: #00f0ff;
}

/* Base nav-btn style (for Contests and Blog) */
.nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  padding: 11px 21px;
  /* background: linear-gradient(135deg, 
    rgba(30, 41, 59, 0.8), 
    rgba(51, 65, 85, 0.6)
  ); */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 21px;
  color: #e2e8f0;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
}

/* Animated gradient overlay */
.nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 0;
}

.nav-btn:hover::before {
  left: 100%;
}

.nav-btn:hover {
  transform: translateY(-3px) scale(1.02);
  /* background: linear-gradient(135deg, 
    rgba(51, 65, 85, 0.9), 
    rgba(71, 85, 105, 0.8)
  ); */
  border-color: rgba(56, 178, 172, 0.4);
  color: #ffffff;
  /* box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(56, 178, 172, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2); */
}

/* Active/pressed state */
.nav-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.sustainability-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 48px 10px 20px;
  border-radius: 50px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a8a77, #015c61);
  color: #ffffff !important;
  font-family: "Quicksand", sans-serif;
  font-weight: 700 !important;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 2px 2px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sustainability-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.sustainability-btn:hover::before {
  left: 100%;
}

.sustainability-text,
.leaf-icon {
  position: relative;
  z-index: 1;
  transform: translateZ(25px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sustainability-text {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.leaf-icon {
  position: absolute;
  right: 6px;
  width: 33px;
  height: 33px;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  /* padding: 5px; */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: pulse 3s infinite ease-in-out;
}

.sustainability-btn:hover {
  transform: translateY(-2px) scale(1.02) translateZ(-5px);
  box-shadow: 0 8px 25px rgba(26, 188, 156, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

.sustainability-btn:hover .leaf-icon {
  transform: scale(1.3) rotate(15deg) translateX(-5px);
}

.sustainability-btn:hover .sustainability-text {
  transform: translateZ(10px);
}

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

/* @media (max-width: 768px) {
  .sustainability-btn {
    padding: 10px 20px 10px 16px;
    font-size: 0.9rem;
  }

  .leaf-icon {
    width: 28px;
    height: 28px;
    padding: 4px;
  }
} */

.header-actions-desktop {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.searchbar-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.searchbar-container {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 300px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}

.searchbar-container:hover {
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

.searchbar-container i {
  color: #ccc;
  position: absolute;
  left: 16px;
  font-size: 1rem;
  pointer-events: none;
}

.searchbar {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  border-radius: 12px;
  color: white;
}

.searchbar:focus {
  outline: none;
}

.searchbar::placeholder {
  color: #bbb;
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: -100px;
  right: 20px;
  background: rgba(17, 17, 25, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 240, 255, 0.1);
  backdrop-filter: blur(14px);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow-y: scroll;
  max-height: 320px;
}

.search-results-list {
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  /* overflow-y: scroll; */
}

.result-item {
  list-style: none;
}

.result-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #e0e0e0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border-left: 3px solid transparent;
}

.result-link:hover,
.result-link:focus {
  background-color: rgba(0, 240, 255, 0.1);
  color: #fff;
  transform: translateX(5px);
  border-left-color: var(--accent-glow);
}

.result-image {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.result-title {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-results {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #aaa;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--accent-glow);
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #00d0ff;
}

.view-all-results-link {
  display: block;
  text-align: center;
  border: none;
  outline: none;
  padding: 0.75rem;
  width: 96%;
  font-weight: 600;
  color: var(--accent-glow);
  text-decoration: none;
  background-color: rgba(0, 240, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
  border-radius: 10px;
  margin: 0 auto;
  margin-bottom: 5px;
}
.view-all-results-link:hover {
  background-color: rgba(0, 240, 255, 0.2);
  cursor: pointer;
}

.loading-results {
  width: 100%;
  height: 100vh;
  position: relative;
  text-align: start;
  padding: 1rem 1.2rem;
}

.signin-btn {
  border: 1px solid #dcdce0;
  border-radius: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.signin-btn:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.signin-btn a {
  display: block;
  padding: 0.5rem 1rem;
  color: #e1e0e0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.signin-btn:hover a {
  color: #00f0ff;
}

.hamburger {
  display: none;
}
/* ----- MODERN MOBILE NAVIGATION OVERLAY DESIGN ----- */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.92) 50%,
    rgba(51, 65, 85, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  opacity: 0;
  transform: translateX(-100%);
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
}

.mobile-nav-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(0, 240, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(10, 138, 119, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.mobile-nav-overlay.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

/* Mobile Navigation Header */
.mobile-nav-header {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 0 2rem 0;
  margin-bottom: 1rem;
  z-index: 2;
}

.mobile-nav-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 240, 255, 0.6),
    transparent
  );
  border-radius: 2px;
}

.close-nav {
  position: relative;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.close-nav:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* Mobile Navigation Links */
.mobile-nav-links {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  z-index: 2;
}

.mobile-nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  width: clamp(180px, 50vw, 300px);
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.7),
    rgba(51, 65, 85, 0.5)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #e2e8f0;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animated shine effect for mobile nav links */
.mobile-nav-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 0;
}

.mobile-nav-links a:hover::before,
.mobile-nav-links a:focus::before {
  left: 100%;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  background: linear-gradient(
    135deg,
    rgba(51, 65, 85, 0.9),
    rgba(71, 85, 105, 0.8)
  );
  border-color: rgba(56, 178, 172, 0.4);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(56, 178, 172, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Special styling for sustainability button in mobile */
.mobile-nav-links .sustainability-btn {
  background: linear-gradient(135deg, #0a8a77, #015c61) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.mobile-nav-links .sustainability-btn:hover {
  background: linear-gradient(135deg, #0d9d8a, #017a80) !important;
  box-shadow: 0 8px 25px rgba(26, 188, 156, 0.3),
    inset 0 2px 2px rgba(255, 255, 255, 0.2) !important;
}

.mobile-nav-links .sustainability-btn .leaf-icon {
  position: relative;
  right: auto;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  animation: pulse 3s infinite ease-in-out;
}

/* Mobile Sign In Section */
.mobile-signin {
  position: relative;
  margin-top: 2rem;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
  z-index: 2;
}

.mobile-signin .signin-btn {
  width: 100%;
}

.mobile-signin .signin-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #ffffff;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.mobile-signin .signin-btn a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.mobile-signin .signin-btn a:hover::before {
  left: 100%;
}

.mobile-signin .signin-btn a:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #5b52f0, #8b5cf6);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Animation for mobile nav items */
.mobile-nav-overlay.active .mobile-nav-links a {
  animation: slideInUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.mobile-nav-overlay.active .mobile-nav-links a:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-nav-overlay.active .mobile-nav-links a:nth-child(2) {
  animation-delay: 0.2s;
}
.mobile-nav-overlay.active .mobile-nav-links a:nth-child(3) {
  animation-delay: 0.3s;
}
.mobile-nav-overlay.active .mobile-nav-links a:nth-child(4) {
  animation-delay: 0.4s;
}
.mobile-nav-overlay.active .mobile-nav-links a:nth-child(5) {
  animation-delay: 0.5s;
}
.mobile-nav-overlay.active .mobile-nav-links a:nth-child(6) {
  animation-delay: 0.6s;
}
.mobile-nav-overlay.active .mobile-nav-links a:nth-child(7) {
  animation-delay: 0.7s;
}

.mobile-nav-overlay.active .mobile-signin {
  animation: slideInUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  animation-delay: 0.6s;
  opacity: 0;
  transform: translateY(30px);
}

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

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

/* ----- RESPONSIVE LOGIC ----- */
@media (max-width: 1024px) {
  .main-nav,
  .header-actions-desktop {
    display: none;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
  }

  .hamburger:hover {
    transform: scale(1.1);
  }

  .site-header {
    padding: 0 1.5rem;
    justify-content: space-between;
  }

  .signin-btn {
    display: none;
  }

  .header-logo {
    margin-right: 0;
  }
}

/* Smaller mobile phones */
@media (max-width: 480px) {
  .mobile-nav-overlay {
    padding: 1.5rem 1rem;
  }

  .mobile-nav-links {
    gap: 0.8rem;
    max-width: 280px;
  }

  .mobile-nav-links a {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 14px;
  }

  .mobile-signin .signin-btn a {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 14px;
  }

  .close-nav {
    padding: 10px;
    font-size: 1.3rem;
  }

  .site-header {
    padding: 0 0.8rem;
    height: 60px;
  }

  .header-logo {
    font-size: 1.2rem;
    gap: 0px;
  }

  #logo {
    height: 30px;
  }

  .hopper-text {
    font-size: 1.2rem;
  }

  .main-nav {
    display: none;
  }

  .header-actions-desktop {
    display: flex;
    margin-left: 60px;
  }

  .searchbar-container {
    min-width: 120px;
    width: 120px;
  }

  .search-results {
    min-width: 380px;
    left: -195px;
  }

  .header-actions-desktop .signin-btn {
    display: none;
  }
}

/* main section */
main {
  width: 100%;
}

.hero-section {
  /* This ensures the slider inside fills the hero section */
  width: 100%;
  height: 100%;
}

.slider-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* --- Slides Styling --- */
.slides-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

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

/* --- Content Styling --- */
.slider-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  padding: 5vw;
  pointer-events: none;
}

.content-item {
  position: absolute;
  opacity: 0;
  width: 85%;
  max-width: 800px;
}

.content-item .slide-number {
  font-family: "Syncopate", sans-serif;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  bottom: 100%;
  left: -2vw;
  line-height: 1;
}

.content-item .hero-title,
.content-item .title {
  font-family: "Syncopate", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
}

.content-item .hero-subtitle,
.content-item .description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  max-width: 550px;
  margin-bottom: 2.5rem;
}

/* --- ENHANCED UI CONTROLS --- */
.slider-nav {
  position: absolute;
  bottom: 5vw;
  right: 5vw;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  position: relative;
  transition: background-color 0.3s ease;
}

.nav-button .icon {
  transition: transform 0.3s ease;
}

.nav-button .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-button:hover .icon {
  transform: scale(0.9);
}

.nav-button:hover .ring {
  stroke-dashoffset: 0;
  opacity: 1;
}

.slide-progress-container {
  width: 150px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.slide-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #fff;
  border-radius: 3px;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(90deg, #4ade80, #22d3ee);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 5px 20px rgba(46, 211, 238, 0.2);
  animation: pulse-glow 4s infinite ease-in-out;
}

.hero-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(46, 211, 238, 0.4);
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.intro-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #2d3e50 100%);
}

/* Left Content Area */
.intro-content {
  padding: clamp(2rem, 8vw, 6rem);
  color: #fff;
  position: relative;
  z-index: 2;
}

.intro-text {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
}

.section-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 50px;
  color: #2ecc71;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.section-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(46, 204, 113, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.section-badge:hover::before {
  left: 100%;
}

.intro-section.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #2ecc71 50%, #27ae60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: #bdc3c7;
  margin-bottom: 3rem;
  max-width: 85%;
  font-weight: 400;
}

/* Enhanced Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-item {
  position: relative;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(46, 204, 113, 0.1),
    rgba(39, 174, 96, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(46, 204, 113, 0.4);
  box-shadow: 0 20px 40px rgba(46, 204, 113, 0.15);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #2ecc71;
  line-height: 1;
  display: block;
  position: relative;
  z-index: 2;
}

.stat-suffix {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2ecc71;
  margin-left: 0.3rem;
  opacity: 0.9;
}

.stat-label {
  font-size: 0.95rem;
  color: #95a5a6;
  margin-top: 1rem;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

/* Right Visual Area - Enhanced */
.intro-visual {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-container {
  position: relative;
  width: 85%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8) rotateY(15deg);
}

/* Interactive Video/Image Showcase */
.showcase-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(46, 204, 113, 0.1),
    rgba(39, 174, 96, 0.2)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(2px);
}

.showcase-wrapper:hover .showcase-overlay {
  opacity: 1;
  backdrop-filter: blur(4px);
}

.showcase-wrapper:hover .showcase-image {
  transform: scale(1.05);
}

.play-button {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 25px solid #2c3e50;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 8px;
}

.showcase-text {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Floating decorative elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.floating-element.circle1 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.floating-element.circle2 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #2980b9);
  bottom: 25%;
  left: 8%;
  animation-delay: -3s;
}

.floating-element.square {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-radius: 16px;
  top: 60%;
  right: 15%;
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
    opacity: 0.2;
  }
}

/* CTA Button */
.cta-container {
  margin-top: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(46, 204, 113, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(46, 204, 113, 0.4);
}

.cta-arrow {
  margin-left: 0.8rem;
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.cta-button:hover .cta-arrow {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .intro-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .intro-content {
    order: 1;
    padding: 3rem 2rem;
    text-align: center;
  }

  .intro-visual {
    order: 2;
    height: 60vh;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 2rem;
  }

  .section-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .intro-content {
    padding: 2rem 1.5rem;
  }

  .visual-container {
    height: 70%;
  }

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

  .stat-item {
    padding: 1.5rem 1rem;
  }
} 
/* ============================================= */
/* == 3. Enhanced Sustainability News Section == */
/* ============================================= */

.sustainability-news {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-section);
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)),
    url("https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2175&q=80");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  overflow-x: hidden;
}

.section-header {
  text-align: center;
  padding: 0 var(--space-xl);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 50ch;
  margin: var(--space-xs) auto 0;
}

/* Horizontal Scroll Containers */
.news-track-container {
  margin-top: 6rem;
  height: 60vh;
  padding: 2rem 0;
}

.news-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-md);
  width: max-content;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  /* transform: translateX(-42%); */
}

.sustainability-news::-webkit-scrollbar {
  display: none;
}

/* Card Styling */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: clamp(320px, 30vw, 400px);
  height: 100%;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text-primary);
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.news-card:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 4px;
}

.news-card__image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.news-card__image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 10%,
    rgba(0, 0, 0, 0) 60%
  );
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-md);
  transform: translateZ(20px);
}

.news-card__title {
  font-size: var(--font-size-lg);
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.news-card__description {
  display: block;
  font-size: var(--font-size-md);
  line-height: var(--line-height-prose);
  color: var(--color-text-secondary);
  max-width: 45ch;
  margin-top: var(--space-xs);
}

.news-card__link {
  font-family: sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  align-self: flex-end;
  color: var(--color-brand);
  margin-top: var(--space-sm);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .sustainability-news {
    padding: var(--space-lg) var(--space-md);
  }

  .news-track-container {
    height: auto;
    padding: 0;
  }

  .news-track {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0;
  }

  .news-card {
    width: 100%;
    min-height: 350px;
  }
}

/* ============================================= */
/* == 4. CONTESTS SECTION STYLES              == */
/* ============================================= */
.sustainability-contests {
  margin-top: 1rem;
  padding: 6rem 2rem;
  background-color: var(--sustainability-bg);
  height: 100vh;
  width: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
    url("../../../assets/Images/lester-Ob4xi3oej1o-unsplash.jpg");
  background-size: auto 200%;
  background-position: bottom center;
  background-repeat: no-repeat;
  /* opacity: 0; */
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.contest-list-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.contest-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.view-all-container {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================= */
/* == RESPONSIVE DESIGN                       == */
/* ============================================= */
@media (max-width: 992px) {
  .intro-content,
  .pillars-container {
    grid-template-columns: 1fr;
  }
  .intro-text .section-title,
  .intro-text .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .intro-visual {
    order: -1; /* Puts the image on top on mobile */
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 0 5%;
    justify-content: center;
    text-align: center;
  }
  .hero-content,
  .hero-subtitle {
    max-width: 100%;
  }
  .hero-overlay {
    background: rgba(0, 0, 0, 0.6);
  }
  .video-preview {
    display: none;
  }
  .intro-section,
  .pillars-section,
  .sustainability-contests {
    padding: 4rem 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  margin-top: 20px;
  background: url("footerimg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #dcdce0;
  padding: 3rem 1rem 1rem;
  background-attachment: fixed;
}

/* Footer Container */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-title,
.footer-subtitle {
  font-family: "Quicksand", sans-serif;
}

.footer-title {
  font-size: 1.5rem;
  color: #00f0ff;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
  font-family: "Outfit", sans-serif;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
  font-family: "Outfit", sans-serif;
}
.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #00f0ff;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.3rem;
  margin-top: 1rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  border: none;
  border-radius: 5px;
}
.newsletter-form input::placeholder {
  color: var(--button-glow-end);
  font-family: "quicksand", sans-serif;
  font-weight: bolder;
  opacity: 1;
}
.newsletter-form input:focus {
  border: 2px solid transparent;
  border-image: linear-gradient(90deg, #00f0ff, #0059ff);
  border-image-slice: 1;
  animation: borderFade 1s linear infinite;
}
@keyframes borderFade {
  0% {
    border-image: linear-gradient(white, white),
      linear-gradient(90deg, #00f0ff, #ff00ff);
  }
  50% {
    border-image: linear-gradient(white, white),
      linear-gradient(90deg, #ff00ff, #00f0ff);
  }
  100% {
    border-image: linear-gradient(white, white),
      linear-gradient(90deg, #00f0ff, #ff00ff);
  }
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 238, 255, 0.686), #0099cc);
  color: white;
  font-family: "quicksand", sans-serif;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* Back to Top Button */
.back-to-top-with-text {
  color: white;
  cursor: pointer;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: rgba(14, 11, 11, 0.905);
  border-radius: 25px;
  padding: 12px 18px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.back-to-top-with-text i {
  transition: transform 0.3s ease;
  transform: rotate(45deg);
  font-size: 1rem;
}
.back-to-top-with-text:hover i {
  transform: rotate(0deg);
}
.back-to-top-with-text:hover {
  background-color: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 153, 204, 0.3);
}

/* Social Icons */
.social-icons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}
.social-icons a {
  color: #ffffff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: #00f0ff;
}

/* Footer Copy */
.footer-copy {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #999;
  font-family: "syncopate", sans-serf;
  font-size: 1rem;
}

/* Responsive design */

@media (max-width: 480px) {
  .newsletter-form button {
    padding: 0.7rem 1rem;
  }
  .back-to-top-with-text {
    padding: 8px 12px;
    border-radius: 15px;
  }
}

/* Sustainability goals */
.sdg-section {
  padding: 6rem 2rem;
  background-color: #0c1817; /* Darker background to make cards pop */
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: "Georgia", serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: #f0fdfa; /* Brighter text color */
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #a7f3d0; /* Adjusted text color */
  line-height: 1.6;
}

/* --- SDG Grid Container (Your existing styles are fine) --- */
.sdg-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- ENHANCED SDG Card --- */
.sdg-card {
  /* opacity: 0;
  transform: translateY(40px);  */
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0); /* Force 3D acceleration */
  backface-visibility: hidden;
}

.sdg-card.animated {
  will-change: auto; /* Remove after animation */
}

.sdg-card-inner {
  display: flex;
  position: relative; /* Crucial for positioning the background image */
  height: 320px;
  border-radius: 16px; /* Slightly larger radius */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background-color: #1a2533; /* Fallback color */
}

.sdg-card:hover .sdg-card-inner {
  transform: translateY(-10px) scale(1.03); /* Enhanced hover effect */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--sdg-color, #00d4ff);
}

.sdg-card-inner.reverse {
  flex-direction: row-reverse; /* Keep your reverse logic */
}

/* --- ACTIVATED Background Image --- */
.sdg-bg-image-container {
  display: block; /* Make it visible */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* Gradient overlay for readability */
.sdg-bg-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(12, 24, 23, 0.85) 0%,
    rgba(12, 24, 23, 0.4) 100%
  );
  transition: background 0.4s ease;
}

.sdg-card-inner.reverse .sdg-bg-image-container::after {
  background: linear-gradient(
    to left,
    rgba(12, 24, 23, 0.85) 0%,
    rgba(12, 24, 23, 0.4) 100%
  );
}

.sdg-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 0.5s ease-out;
}

.sdg-card:hover .sdg-bg-image {
  transform: scale(1.1);
}

.sdg-card-front {
  flex: 0 0 120px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Place above the background */
}

.sdg-card-front img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 15px;
  transition: transform 0.4s ease;
  /* background: rgba(255, 255, 255, 0.1); Frosted glass effect */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 5px;
  /* border: 1px solid rgba(255, 255, 255, 0.15); */
}

.sdg-card:hover .sdg-card-front img {
  transform: scale(1.1) rotate(-5deg);
}

/* --- MODIFIED Card Back (Content Section) --- */
.sdg-card-back {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 1; /* Place above the background */
  color: #fff; /* Ensure text is white */
}

.sdg-card-back h3 {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff; /* Use SDG color, fallback to white */
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sdg-card-back p {
  font-family: "Quicksand", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: #e2e8f0; /* Lighter text for contrast */
  margin: 0 0 1.5rem;
  flex-grow: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.sdg-card-back a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--sdg-color, #00d4ff);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s;
  backdrop-filter: none; /* No glass effect by default */
  -webkit-backdrop-filter: none;
}

.sdg-card-back a:hover {
  background-color: rgba(255, 255, 255, 0.2); /* translucent white */
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-3px);
  border: 1px solid rgba(255, 255, 255, 0.3); /* optional border for glass look */
}

/* --- Responsive Design (Your existing styles are fine) --- */
@media (max-width: 768px) {
  .sdg-section {
    padding: 4rem 1.5rem;
  }

  .sdg-card-inner {
    flex-direction: column;
    text-align: center;
    height: auto; /* Allow height to adjust on mobile */
  }

  .sdg-card-inner.reverse {
    flex-direction: column; /* Ensure reverse also stacks vertically */
  }

  .sdg-card-front {
    width: 100%;
    flex-basis: auto;
    padding: 1.5rem 0;
  }

  .sdg-card-front img {
    max-width: 100px;
  }

  .sdg-card-back {
    padding: 0 1.5rem 1.5rem;
  }
  .sdg-card-back a {
    align-self: center; /* Center button on mobile */
  }
  .sdg-bg-image-container::after {
    background: linear-gradient(
      to top,
      rgba(12, 24, 23, 0.9) 0%,
      rgba(12, 24, 23, 0.5) 100%
    );
  }
}

/* ============================================= */
/* == 3. NEW IMPACT HUB SECTION               == */
/* ============================================= */
.impact-hub-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 6rem 2rem;
  background-color: #000;
  overflow: hidden;
}

/* Optional: Add a subtle animated gradient background */
.impact-hub-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 25% 25%, #19486a 0%, transparent 30%),
    radial-gradient(circle at 75% 75%, #3f7e44 0%, transparent 30%);
  animation: animate-background 30s linear infinite;
  z-index: 1;
  opacity: 0.3;
}

@keyframes animate-background {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.impact-hub-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  text-align: center;
}

.impact-hub-content .section-header {
  margin-bottom: 4rem;
  color: #fff;
}

.impact-hub-content .section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.impact-hub-content .section-subtitle {
  max-width: 65ch;
  margin: 1.5rem auto 0;
  color: #b0b0b0;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.impact-card {
  position: relative;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  /* GSAP initial state */
  opacity: 0;
  transform: translateY(50px);
}

.impact-card__link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.impact-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.impact-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.8);
  transition: filter 0.4s ease;
}

/* The Glass Panel for content */
.impact-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(40%); /* Hide description and cta by default */
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.impact-card__title {
  font-family: "Syncopate", sans-serif;
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.2;
}

.impact-card__description,
.impact-card__cta {
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}

.impact-card__cta {
  display: block;
  font-weight: 700;
  color: #4ade80;
}

/* --- Hover Effects --- */
.impact-card:hover .impact-card__bg {
  transform: scale(1.1);
}

.impact-card:hover .impact-card__bg img {
  filter: brightness(0.8) saturate(1);
}

.impact-card:hover .impact-card__content {
  transform: translateY(0);
}

.impact-card:hover .impact-card__description,
.impact-card:hover .impact-card__cta {
  opacity: 1;
}

/* --- Main CTA Button --- */
.view-all-container {
  margin-top: 4rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(90deg, #4ade80, #22d3ee);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(46, 211, 238, 0.3);
}
