/* ============================================
   MODERN STYLISH SITE - COMPLETE OVERHAUL
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%) fixed;
  color: #e0e0e0;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 157, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header .container.nav-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
  min-width: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px #00ff9d33);
  transition: filter 0.3s ease;
}

.logo:hover img {
  filter: drop-shadow(0 4px 16px #00ff9d66);
}

/* Navigation */
.nav {
  flex: 1 1 auto;
  min-width: 0;
}

/* Main Menu */
.main-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  background: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

/* Menu Items */
.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  color: #e0e0e0;
  padding: 0.6rem 1.1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 1rem;
}

.main-menu > li > a:hover {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
}

/* Dropdown Toggle */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown .arrow {
  font-size: 0.7em;
  margin-left: 0.3em;
  color: #00ff9d;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown.open > a .arrow {
  transform: rotate(180deg);
}

/* Invisible bridge to prevent dropdown from closing on mouse move */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.6rem;
  pointer-events: auto;
}

/* Desktop Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  background: rgba(24, 24, 32, 0.98);
  border-radius: 0.8rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1.5px 0 #00ff9d22;
  min-width: 230px;
  z-index: 2000;
  padding: 0.8rem 0.4rem;
  flex-direction: column;
  border: 1px solid rgba(0, 255, 157, 0.15);
  list-style: none;
  backdrop-filter: blur(8px);
  animation: dropdown-fade 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdown-fade {
  from { 
    opacity: 0; 
    transform: translateY(-12px) scale(0.92);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

.dropdown:hover > .dropdown-menu,
.dropdown-menu:hover {
  display: flex;
}

.dropdown:hover > .dropdown-menu {
  display: flex;
}

.dropdown-menu li {
  width: 100%;
  list-style: none;
}

.dropdown-menu a {
  padding: 0.7rem 1.3rem;
  color: #d0d0d0;
  display: block;
  font-weight: 400;
  border-radius: 0.4rem;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: #00ff9d;
  transform: translateY(-50%);
  transition: height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropdown-menu a:hover {
  background: rgba(0, 255, 157, 0.15);
  color: #00ff9d;
  transform: translateX(6px);
}

.dropdown-menu a:hover::before {
  height: 100%;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 28px;
  height: 28px;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  flex-shrink: 0;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #e0e0e0;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .site-header .container.nav-flex {
    gap: 0.5rem;
  }

  .logo {
    min-width: 0;
  }

  .logo img {
    height: 40px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 320px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    padding-top: 5rem;
    overflow-y: auto;
    box-shadow: -2px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-toggle:checked ~ .nav {
    transform: translateX(0);
  }

  .main-menu {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .main-menu > li {
    width: 100%;
  }

  .main-menu > li > a {
    padding: 1rem 1.2rem;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-menu > li > a:hover {
    background: rgba(0, 255, 157, 0.08);
  }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: none !important;
    margin: 0 !important;
    animation: none;
    backdrop-filter: none;
  }

  .dropdown.open > .dropdown-menu {
    display: flex !important;
  }

  .dropdown-menu a {
    padding: 0.8rem 1.2rem 0.8rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #b0b0b0;
    background: none;
  }

  .dropdown-menu a:hover {
    background: rgba(0, 255, 157, 0.08);
    color: #00ff9d;
  }

  .nav-toggle-label {
    display: flex;
    margin-left: auto;
    z-index: 1101;
  }

  .dropdown .arrow {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0.6rem 0;
  }

  .logo img {
    height: 36px;
  }

  .main-menu > li > a {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  width: 100vw;
  height: 500px;
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-top: 80px;
  margin-bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.4) 0%, rgba(26, 26, 46, 0.6) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 100%;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  animation: hero-slide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hero-slide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-section {
    height: 350px;
    margin-top: 70px;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  margin-top: 80px;
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
}

main.main-content-card {
  background: rgba(24, 24, 32, 0.6);
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  margin-top: 6rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 157, 0.08);
}

/* Page Title */
.page-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin: 0 0 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 255, 157, 0.2);
  animation: title-fade 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes title-fade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

main.main-content-card.has-hero {
  margin-top: 2rem;
  border-radius: 1.2rem 1.2rem 0 0;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  main {
    margin-top: 70px;
    padding: 2rem 0;
  }

  main.main-content-card {
    padding: 1.5rem;
    margin-top: 5rem;
    border-radius: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin: 1.5rem 0 0.8rem 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  color: #00ff9d;
  line-height: 1.3;
}

h3 {
  font-size: 1.6rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #d0d0d0;
  line-height: 1.8;
}

a {
  color: #00ff9d;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #00ffb3;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: #d0d0d0;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.8) 100%);
  color: #b0b0b0;
  padding: 4rem 0 1rem 0;
  border-top: 1px solid rgba(0, 255, 157, 0.1);
  position: relative;
  margin-top: auto;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-desc {
  color: #b0b0b0;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.footer-links h4 {
  color: #00ff9d;
  font-size: 1.1rem;
  margin: 0 0 0.8rem 0;
  font-weight: 600;
}

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

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

.footer-links a {
  color: #b0b0b0;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #00ff9d;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 255, 157, 0.1);
  transition: background 0.2s, color 0.2s;
  color: #b0b0b0;
}

.social-icons a:hover {
  background: rgba(0, 255, 157, 0.2);
  color: #00ff9d;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  .footer-flex {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .container {
    padding: 0 1rem;
  }

  main {
    margin-top: 60px;
    padding: 1.5rem 0;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.stylish-bg {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%) fixed;
}

.stylish-footer {
  position: relative;
  overflow: hidden;
}

.footer-gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  background: linear-gradient(90deg, #00ff9d22 0%, #1a1a2e 100%);
  filter: blur(20px);
  pointer-events: none;
}

/* ======================
   ACCORDION COMPONENTS 
   ====================== */

.departments-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid rgba(0, 255, 157, 0.1);
  border-radius: 8px;
  background: rgba(26, 26, 46, 0.4);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(0, 255, 157, 0.3);
  background: rgba(26, 26, 46, 0.6);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: rgba(0, 255, 157, 0.05);
}

.accordion-logo {
  width: auto;           /* Allow natural width */
  height: 4rem;          /* Fixed height only - keeps thumbnails consistent vertically */
  max-width: 8rem;       /* Optional: prevent overly wide logos from dominating */
  border-radius: 6px;
  object-fit: contain;   /* Important: shows the full image without cropping */
  background: #111;      /* Optional: dark background so transparent images look clean */
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.accordion-title {
  flex: 1;
  font-weight: 600;
  font-size: 1.1rem;
  color: #00ff9d;
}

.accordion-toggle {
  font-size: 1.5rem;
  color: #00ff9d;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.accordion-item.open .accordion-toggle {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
  max-height: none;
}

.accordion-body {
  padding: 0 1.25rem 1.25rem 1.25rem;
  line-height: 1.7;
  color: #d0d0d0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mobile responsive */
@media (max-width: 600px) {
  .accordion-logo {
    width: 3rem;
    height: 3rem;
  }
  
  .accordion-title {
    font-size: 0.95rem;
  }
  
  .accordion-header {
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .accordion-body {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #00ff9d 0%, #00cc7f 100%);
  color: #0f0f0f;
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
  border: 1px solid rgba(0, 255, 157, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00ff9d 0%, #00e699 100%);
  box-shadow: 0 6px 25px rgba(0, 255, 157, 0.5);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Markdown link with button class */
a.btn {
  text-align: center;
}

/* ============================================
   RESPONSIVE IMAGES
   ============================================ */

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

/* Desktop: larger images */
@media (min-width: 1024px) {
  main img {
    max-width: 100%;
  }
}

/* Tablet: medium images */
@media (max-width: 1023px) and (min-width: 768px) {
  main img {
    max-width: 100%;
  }
}

/* Mobile: constrain width to fit screen */
@media (max-width: 767px) {
  main img {
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile responsive buttons */
@media (max-width: 600px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   GALLERY STYLES - MULTI-COLUMN MASONRY
   ============================================ */

.gallery-container {
  margin: 2rem 0;
}

.gallery-grid {
  column-count: 4;              /* Adjust based on screen size */
  column-gap: 1rem;
  orphans: 1;
  widows: 1;
}

.gallery-item {
  break-inside: avoid;          /* Prevent splitting across columns */
  margin-bottom: 1rem;          /* Space between items */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: inline-block;        /* Required for column layout */
  width: 100%;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 255, 157, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Responsive column count */
@media (max-width: 1200px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* Lightbox overlay for image viewing */
.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-overlay.active {
  display: flex;
}

.gallery-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-overlay .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 255, 157, 0.2);
  border: 1px solid #00ff9d;
  color: #00ff9d;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.gallery-overlay .close-btn:hover {
  background: rgba(0, 255, 157, 0.4);
  transform: scale(1.1);
}

/* Navigation buttons in lightbox */
.gallery-overlay .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 157, 0.2);
  border: 1px solid #00ff9d;
  color: #00ff9d;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.gallery-overlay .nav-btn:hover {
  background: rgba(0, 255, 157, 0.4);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}

.gallery-overlay .prev-btn {
  left: 1rem;
}

.gallery-overlay .next-btn {
  right: 1rem;
}

/* Responsive nav buttons */
@media (max-width: 768px) {
  .gallery-overlay .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  
  .gallery-overlay .prev-btn {
    left: 0.5rem;
  }
  
  .gallery-overlay .next-btn {
    right: 0.5rem;
  }
}

/* ============================================
   VIDEO EMBEDS STYLING
   ============================================ */

.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: rgba(26, 26, 46, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 255, 157, 0.2);
}

.video-wrapper iframe {
  border-radius: 8px;
  display: block;
}

/* Mobile responsive videos */
@media (max-width: 768px) {
  .videos-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
  }

  .video-wrapper iframe {
    height: 250px !important;
  }
}

@media (max-width: 480px) {
  .videos-container {
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
  }

  .video-wrapper iframe {
    height: 200px !important;
  }
}

/* ============================================
   FORM STYLING (REUSABLE)
   ============================================ */

.form-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(45, 45, 70, 0.4) 100%);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-container p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.6;
}

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-container label {
  display: block;
  font-weight: 600;
  color: rgba(0, 255, 157, 0.9);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container input[type="number"],
.form-container input[type="date"],
.form-container input[type="file"],
.form-container select,
.form-container textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.form-container input[type="text"]::placeholder,
.form-container input[type="email"]::placeholder,
.form-container input[type="tel"]::placeholder,
.form-container input[type="number"]::placeholder,
.form-container input[type="date"]::placeholder,
.form-container textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="tel"]:focus,
.form-container input[type="number"]:focus,
.form-container input[type="date"]:focus,
.form-container input[type="file"]:focus,
.form-container select:focus,
.form-container textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 157, 0.6);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.15);
  transform: translateY(-2px);
}

.form-container textarea {
  resize: vertical;
  min-height: 140px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-container select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff9d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Improve select dropdown options styling */
.form-container select option {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem;
}

.form-container select option:checked {
  background: linear-gradient(#00ff9d, #00ff9d);
  background-color: #00ff9d;
  color: #0a0a1a;
}

.form-container button[type="submit"],
.form-container button[type="reset"] {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #00ff9d 0%, #00cc7d 100%);
  color: #0a0a1a;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.25);
  margin-top: 0.5rem;
}

.form-container button[type="submit"]:hover,
.form-container button[type="reset"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 157, 0.4);
  background: linear-gradient(135deg, #1affe8 0%, #00ff9d 100%);
}

.form-container button[type="submit"]:active,
.form-container button[type="reset"]:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.25);
}

/* Form status messages */
.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  min-height: 1.5rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.5);
  color: rgba(0, 255, 157, 0.9);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-status.error {
  display: block;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.5);
  color: rgba(255, 120, 120, 0.9);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mobile responsive form */
@media (max-width: 768px) {
  .form-container {
    padding: 2rem;
    margin: 1.5rem 0;
  }

  .form-container p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .form-container form {
    gap: 1.25rem;
  }

  .form-container input[type="text"],
  .form-container input[type="email"],
  .form-container input[type="tel"],
  .form-container input[type="number"],
  .form-container input[type="date"],
  .form-container input[type="file"],
  .form-container select,
  .form-container textarea {
    padding: 0.75rem 0.875rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .form-container button[type="submit"],
  .form-container button[type="reset"] {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    border-radius: 8px;
  }

  .form-container p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .form-container label {
    font-size: 0.85rem;
  }

  .form-container form {
    gap: 1rem;
  }

  .form-container input[type="text"],
  .form-container input[type="email"],
  .form-container input[type="tel"],
  .form-container input[type="number"],
  .form-container input[type="date"],
  .form-container input[type="file"],
  .form-container select,
  .form-container textarea {
    padding: 0.7rem 0.75rem;
    font-size: 16px;
  }

  .form-container textarea {
    min-height: 110px;
  }

  .form-container button[type="submit"],
  .form-container button[type="reset"] {
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
}

/* LEGACY: Keep contact-form-container as alias for backwards compatibility */
.contact-form-container {
  @extend .form-container;
}

#status {
  @extend .form-status;
}

/* ============================================
   PARTNERS SHOWCASE STYLING
   ============================================ */

.partners-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem;
  background: rgba(26, 26, 46, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 157, 0.1);
}

.partner-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(24, 24, 32, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 157, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.partner-logo-container:hover {
  background: rgba(26, 26, 46, 0.6);
  border-color: rgba(0, 255, 157, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 255, 157, 0.15);
}


/* ============================================
   TEAM PAGE STYLING - Fixed expansion limits
   ============================================ */

.team-accordion {
  max-width: 1100px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
}

/* Outer team category accordion */
.team-acc-item {
  background: rgba(24, 24, 32, 0.98);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 0.8rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-acc-item:hover {
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 8px 32px rgba(0, 255, 157, 0.15);
  transform: translateY(-4px);
}

.team-acc-header {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(15, 15, 15, 0.95);
  border: none;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.team-acc-header:hover {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
}

.team-acc-toggle {
  font-size: 1.6rem;
  font-weight: bold;
  color: #00ff9d;
  transition: transform 0.3s ease;
}

.team-acc-item.open .team-acc-toggle {
  transform: rotate(45deg);
  color: #00ff9d;
}

/* KEY FIX: Dynamic height for accordion content */
.team-acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

/* Desktop: Unlimited expansion */
@media (min-width: 769px) {
  .team-acc-item.open .team-acc-content {
    max-height: none !important;
    overflow: visible !important;
    transition: max-height 0.5s ease-out;
  }
}

/* Mobile: Controlled but generous expansion */
@media (max-width: 768px) {
  .team-acc-item.open .team-acc-content {
    max-height: 50000px !important; /* Very high limit for mobile */
    overflow-y: auto !important;
    transition: max-height 0.6s ease-out;
  }
  
  /* Add scroll if content exceeds viewport */
  .team-acc-item.open .team-acc-content {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
}

.team-acc-body {
  padding: 1.5rem 2rem;
  color: #d0d0d0;
}

/* Member search */
.team-member-search {
  margin: 1.5rem 0 2rem;
  max-width: 480px;
}

.team-member-search-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-size: 1.05rem;
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 0.5rem;
  background: rgba(24, 24, 32, 0.98);
  color: #e0e0e0;
  transition: all 0.2s ease;
}

.team-member-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.team-member-search-input:focus {
  outline: none;
  border-color: #00ff9d;
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.15);
}

/* Inner member accordions */
.team-member-item.hidden {
  display: none;
}

.team-member-trigger {
  width: 100%;
  padding: 1rem 1.4rem;
  background: rgba(15, 15, 15, 0.95);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 157, 0.1);
  transition: background 0.2s, color 0.2s;
}

.team-member-trigger:hover {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
}

.team-member-arrow {
  font-size: 0.9rem;
  color: #00ff9d;
  transition: transform 0.3s;
}

.team-member-trigger.open .team-member-arrow {
  transform: rotate(180deg);
}

.team-member-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease-out;
  background: rgba(24, 24, 32, 0.98);
}

.team-member-panel.open {
  max-height: 5000px; /* High enough for individual members */
  padding: 1.5rem 2rem;
}

.team-member-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.team-member-photo img {
  max-width: 220px;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.1);
  transition: filter 0.3s ease, transform 0.3s;
}

.team-member-photo img:hover {
  filter: drop-shadow(0 4px 16px rgba(0, 255, 157, 0.2));
  transform: scale(1.02);
}

.team-member-bio {
  line-height: 1.65;
  color: #d0d0d0;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.team-member-info p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Helpers */
.text-muted {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .team-accordion {
    padding: 0 1.5rem;
  }

  .team-acc-header {
    font-size: 1.15rem;
    padding: 1rem 1.2rem;
  }

  .team-acc-body {
    padding: 1.25rem 1.5rem;
  }

  .team-member-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-member-photo img {
    max-width: 180px;
  }

  .team-member-search {
    max-width: 100%;
  }
  
  /* Tighter padding for mobile to save space */
  .team-acc-item.open .team-acc-body {
    padding: 0.8rem 1rem;
  }
  
  .team-member-panel.open {
    padding: 1rem 1.2rem;
  }
  
  /* Prevent horizontal overflow */
  .team-member-info,
  .team-member-bio {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 480px) {
  .team-acc-header {
    font-size: 1.1rem;
    padding: 0.9rem 1rem;
  }

  .team-acc-body {
    padding: 1rem 1.2rem;
  }

  .team-member-photo img {
    max-width: 160px;
  }

  .team-member-bio {
    font-size: 0.95rem;
  }

  .team-member-info p {
    font-size: 0.9rem;
  }
}

/* Blog post content page */
.post-content {
  max-width: 900px;
  margin: 2rem auto;
}

.post-header {
  margin-bottom: 2rem;
}

.post-meta {
  color: rgba(0, 255, 157, 0.7);
  font-size: 0.95rem;
  margin: 0.5rem 0 0 0;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 255, 157, 0.1);
}

.prev-post,
.next-post {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(26, 26, 46, 0.4);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prev-post:hover,
.next-post:hover {
  background: rgba(26, 26, 46, 0.6);
  border-color: rgba(0, 255, 157, 0.3);
  transform: translateY(-2px);
}

.next-post {
  flex-direction: row-reverse;
}

.nav-arrow {
  font-size: 1.5rem;
  color: #00ff9d;
  flex-shrink: 0;
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-title {
  color: #00ff9d;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.back-to-blog {
  text-align: center;
  margin: 3rem 0;
}

/* Mobile responsive blog */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
  }

  .post-content {
    margin: 1.5rem auto;
  }
}

@media (max-width: 480px) {
  .blog-card-image {
    height: 180px;
  }

  .blog-title {
    font-size: 1.1rem;
  }

  .blog-excerpt {
    font-size: 0.9rem;
  }

  .post-content h1 {
    font-size: 1.8rem;
  }

  .post-content p {
    font-size: 1rem;
  }

  .nav-label {
    font-size: 0.75rem;
  }

  .nav-title {
    font-size: 0.85rem;
  }
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #25D366;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.whatsapp-btn:hover {
    background-color: #20b358;
}

.whatsapp-btn svg {
    fill: white; /* Override the inline fill if needed */
}

.footer-social .social-icons {
    margin-top: 12px;
}

/* ============================================
   TEAM PAGE STYLING - Safe namespaced version
   ============================================ */

.team-accordion {
  max-width: 1100px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
}

/* Outer team category accordion */
.team-acc-item {
  background: rgba(24, 24, 32, 0.98);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 0.8rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-acc-item:hover {
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 8px 32px rgba(0, 255, 157, 0.15);
  transform: translateY(-4px);
}

.team-acc-header {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(15, 15, 15, 0.95);
  border: none;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.team-acc-header:hover {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
}

.team-acc-toggle {
  font-size: 1.6rem;
  font-weight: bold;
  color: #00ff9d;
  transition: transform 0.3s ease;
}

.team-acc-item.open .team-acc-toggle {
  transform: rotate(45deg);
}

.team-acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease-out;
}

.team-acc-item.open .team-acc-content {
  max-height: 2000px; /* General for most categories */
  overflow: visible;
}

.team-acc-body {
  padding: 1.5rem 2rem;
  color: #d0d0d0;
}

/* Member search */
.team-member-search {
  margin: 1.5rem 0 2rem;
  max-width: 480px;
}

.team-member-search-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-size: 1.05rem;
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 0.5rem;
  background: rgba(24, 24, 32, 0.98);
  color: #e0e0e0;
  transition: all 0.2s ease;
}

.team-member-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.team-member-search-input:focus {
  outline: none;
  border-color: #00ff9d;
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.15);
}

/* Inner member accordions */
.team-member-item.hidden {
  display: none;
}

.team-member-trigger {
  width: 100%;
  padding: 1rem 1.4rem;
  background: rgba(15, 15, 15, 0.95);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 157, 0.1);
  transition: background 0.2s, color 0.2s;
}

.team-member-trigger:hover {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
}

.team-member-arrow {
  font-size: 0.9rem;
  color: #00ff9d;
  transition: transform 0.3s;
}

.team-member-trigger.open .team-member-arrow {
  transform: rotate(180deg);
}

.team-member-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease-out, padding 0.3s;
  background: rgba(24, 24, 32, 0.98);
}

.team-member-panel.open {
  max-height: none;
  padding: 1.5rem 2rem;
}

.team-member-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.team-member-photo img {
  max-width: 220px;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.1);
  transition: filter 0.3s ease, transform 0.3s;
}

.team-member-photo img:hover {
  filter: drop-shadow(0 4px 16px rgba(0, 255, 157, 0.2));
  transform: scale(1.02);
}

.team-member-bio {
  line-height: 1.65;
  color: #d0d0d0;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.team-member-info p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Helpers */
.text-muted {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .team-accordion {
    padding: 0 1.5rem;
  }

  .team-acc-header {
    font-size: 1.15rem;
    padding: 1rem 1.2rem;
  }

  .team-acc-body {
    padding: 1.25rem 1.5rem;
  }

  .team-member-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-member-photo img {
    max-width: 180px;
  }

  .team-member-search {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .team-acc-header {
    font-size: 1.1rem;
    padding: 0.9rem 1rem;
  }

  .team-acc-body {
    padding: 1rem 1.2rem;
  }

  .team-member-photo img {
    max-width: 160px;
  }

  .team-member-bio {
    font-size: 0.95rem;
  }

  .team-member-info p {
    font-size: 0.9rem;
  }
}

/* ============================================
   APPROVED CENTRES PAGE STYLING - Safe namespaced version (similar to team)
   ============================================ */

/* Reuse some team styles but prefix for approved centres */
.approved-centres-list {
  margin-top: 1rem;
}

/* Inner centre accordions */
.approved-centre-item {
  border-bottom: 1px solid rgba(0, 255, 157, 0.1);
  margin-bottom: 0.5rem;
}

.approved-centre-trigger {
  width: 100%;
  padding: 1rem 1.4rem;
  background: rgba(15, 15, 15, 0.95);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.approved-centre-trigger:hover {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
}

.approved-centre-arrow {
  font-size: 0.9rem;
  color: #00ff9d;
  transition: transform 0.3s;
}

.approved-centre-trigger.open .approved-centre-arrow {
  transform: rotate(180deg);
}

.approved-centre-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease-out, padding 0.3s;
  background: rgba(24, 24, 32, 0.98);
}

.approved-centre-panel.open {
  max-height: 2000px;
  padding: 1.5rem 2rem;
}

.approved-centre-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.approved-centre-photo img {
  max-width: 220px;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.1);
  transition: filter 0.3s ease, transform 0.3s;
}

.approved-centre-photo img:hover {
  filter: drop-shadow(0 4px 16px rgba(0, 255, 157, 0.2));
  transform: scale(1.02);
}

.approved-centre-info p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 768px) {
  .approved-centre-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .approved-centre-photo img {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .approved-centre-photo img {
    max-width: 160px;
  }

  .approved-centre-info p {
    font-size: 0.9rem;
  }
}

/* Better mobile experience for very long founder panel */
@media (max-width: 768px) {
  .team-acc-content {
    transition: max-height 0.5s ease-out;
  }

  .team-member-panel.open,
  .team-acc-content[style*="max-height"] {
    max-height: none;
    overflow-y: visible;
  }

  /* Prevent founder content from being hidden under fixed header */
  main {
    padding-top: 100px !important;   /* adjust according to your header height */
  }

  /* Make sure long text doesn't cause horizontal scroll */
  .team-member-info,
  .team-member-bio {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Visual feedback when category is open */
.team-acc-item.open .team-acc-toggle {
  transform: rotate(45deg);
}

/* ================================================
   FIXES & IMPROVEMENTS FOR TEAM/FOUNDER MOBILE DISPLAY
   Added January 2026 - do NOT remove previous sections
   ================================================ */

/* 1. Make sure main content has enough top space under fixed header */
main {
  padding-top: 100px !important;
}

/* 2. Force reliable expansion for Founder (last accordion item) */
.team-accordion .team-acc-item:last-child.open .team-acc-content {
  max-height: 10000px !important;
  height: auto !important;
  overflow: visible !important;
  transition: max-height 0.45s ease-out;
  padding: 1.5rem 2rem !important;
}

/* 3. Strong mobile-specific safeguards + MAXIMUM SCREEN SPACE UTILIZATION */
@media (max-width: 768px) {
  .team-accordion .team-acc-item:last-child.open .team-acc-content {
    max-height: 15000px !important;
    overflow-y: visible !important;
    transition: max-height 0.35s ease-out !important;
    padding: 0.6rem 0.25rem !important;  /* ← Extremely tight */
  }

  /* Near edge-to-edge for all open panels */
  .team-acc-item.open .team-acc-content {
    padding: 0.6rem 0.25rem !important;
  }

  .team-acc-item.open .team-acc-body {
    padding: 0 !important;
  }

  /* Text takes virtually the entire width */
  .team-acc-item.open .team-member-info,
  .team-acc-item.open .team-member-bio,
  .team-acc-item.open .team-member-content,
  .team-acc-item.open p,
  .team-acc-item.open ul,
  .team-acc-item.open li,
  .team-acc-item.open .team-member-bio strong {
    text-align: left !important;
    margin: 0 !important;
    padding-left: 0.2rem !important;     /* 2–3px tiny safety space */
    padding-right: 0.2rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Maximum width for awards/long text (biggest visual change) */
  .team-acc-item:last-child.open .team-member-bio p,
  .team-acc-item:last-child.open .team-member-bio ul,
  .team-acc-item:last-child.open .team-member-bio li {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    margin: 0.15rem 0 !important;
    line-height: 1.35 !important;
  }

  /* Minimal bullet indent – just enough to be visible */
  .team-acc-item.open .team-member-bio ul {
    padding-left: 0.8rem !important;      /* Bare minimum for bullets */
    margin: 0.2rem 0 !important;
  }

  .team-acc-item.open .team-member-bio a {
    word-break: break-all;
    hyphens: auto;
  }

  /* Ultra-compact photo */
  .team-acc-item.open .team-member-photo {
    max-width: 110px !important;
    margin: 0.2rem auto 0.5rem !important;
  }

  .team-acc-item.open .team-member-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
  }

  /* Eliminate every possible container padding/margin */
  .team-acc-item.open .container,
  main .team-acc-item.open .container,
  .team-acc-item.open [class*="container"] {
    padding: 0.2rem !important;
    margin: 0 !important;
  }

  /* Remove heavy effects that cause mobile rendering delays/clipping */
  .team-acc-item,
  .team-member-panel,
  .team-acc-item:last-child {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(24, 24, 32, 0.98) !important;
  }

  /* Prevent content being hidden under browser UI bars */
  body {
    padding-bottom: 180px !important;
  }

  /* Better word wrapping for very long lists/text in founder bio */
  .team-member-info,
  .team-member-bio,
  .team-member-info ul,
  .team-member-info p {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* Reduce transition duration & easing for smoother feel */
  .team-acc-content {
    transition: max-height 0.35s ease-out !important;
  }
}

/* 4. Visual polish - better toggle icon feedback */
.team-acc-item.open .team-acc-toggle {
  transform: rotate(45deg);
  color: #00ff9d;
}

/* 5. Optional: Slightly better spacing when search is present */
.team-member-search + #management-list,
.team-member-search + .team-founder-section {
  margin-top: 1rem;
}

.footer-app-column {
    min-width: 160px;           /* prevents it from collapsing too narrow */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-app-download img {
    transition: transform 0.18s ease;
}

.footer-app-download img:hover {
    transform: scale(1.08);
}