@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
  --green: #115741;
  --brown: #7a2f00;
  --cream: #fff5e9;
  --gold: #ffb800;
  color-scheme: light only;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: #222;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
/* ===== FORCE LIGHT MODE ===== */
html, body {
  background: #fff5e9 !important;  /* your site’s light background */
}

img, video, canvas {
  filter: none !important; /* prevent auto “dark mode” filters */
}

/* ============ HEADER ============ */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(17, 87, 65, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}
.header-container {
  max-width: 1300px;
  margin: auto;
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header img { height: 55px; }
.btn {
  background: var(--gold);
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s ease;
}
.btn:hover { background: var(--brown); color: var(--cream); transform: scale(1.05); }
.pulse { animation: pulse 2s infinite; }

/* HERO SECTION */
#hero {
  position: relative;
  height: 90vh;
  width: 90%;
  margin: 6rem auto 4rem auto;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Image container */
.hero-image-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  animation: heroZoom 15s ease-in-out infinite alternate;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 87, 65, 0.45);
  z-index: 1;
}

/* Centered content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeUp 1.2s ease-out;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: rgba(255,255,255,0.9);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.donate-btn {
  background: var(--gold);
  color: var(--brown);
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.4s ease;
}

.donate-btn:hover {
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Subtle zoom effect */
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Text fade-up animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text-small {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.3px;
}

.hero-text-small.mt {
  margin-top: 2.2rem;
}

/* Buttons */
.donate-btn,
.store-btn {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donate-btn {
  background: var(--gold);
  color: var(--brown);
}
.donate-btn:hover {
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-3px) scale(1.05);
}

.store-btn {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.store-btn:hover {
  background: var(--gold);
  color: var(--brown);
  transform: translateY(-3px) scale(1.05);
}


/* ================= HERO BACKGROUND IMAGE BEHIND TEXT (FULL + CLEARER) ================= */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.35; /* clearer visibility */
  animation: slowFloat 14s ease-in-out infinite alternate;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills full hero */
  object-position: center;
  filter: brightness(1.1) contrast(1.05);
}

/* keep hero text above everything */
.hero-content {
  position: relative;
  z-index: 2;
}


/* floating animation */
@keyframes slowFloat {
  0% { transform: translate(-50%, -52%) scale(1); }
  100% { transform: translate(-50%, -48%) scale(1.05); }
}


/* ============ SECTIONS ============ */
section { padding: 7rem 2rem; position: relative; z-index: 2; }
.section-container { max-width: 1200px; margin: auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--green); font-size: 2.5rem; margin-bottom: 1rem; }

/* ================= MISSION SECTION FIX ================= */
#mission {
  background: var(--cream);
  padding: 8rem 2rem;
  text-align: center;
}

#mission .section-header h2 {
  color: var(--green);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.mission-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.mission-item {
  background: #fff;
  border-radius: 25px;
  width: 320px;
  padding: 2rem 2rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.mission-item img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.mission-item:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
}

.mission-item h3 {
  color: var(--brown);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.mission-item p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Hover glow */
.mission-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  background: linear-gradient(180deg, #fff, #fff8ee);
}

/* Responsive */
@media (max-width: 900px) {
  .mission-item {
    width: 90%;
    padding: 2rem 1.5rem;
  }

  .mission-item img {
    width: 130px;
    height: 130px;
  }
}


/* ============ ABOUT SECTION FIX ============ */
#about {
  background: var(--cream);
  padding: 8rem 2rem;
}

.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.about-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h6 {
  color: var(--brown);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-text h2 {
  color: var(--green);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #222;
}

.about-text .btn {
  align-self: flex-start;
  padding: 0.9rem 1.8rem;
}

/* Responsive Fix */
@media (max-width: 900px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-text {
    align-items: center;
  }
  .about-text .btn {
    align-self: center;
  }
}


/* ================= JOURNEY SECTION FIX ================= */
#journey {
  background: var(--green);
  color: var(--cream);
  padding: 8rem 2rem;
  text-align: center;
}

#journey .section-header h6 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

#journey .section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 3.5rem;
}

.journey-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.journey-item {
  background: var(--cream);
  color: var(--brown);
  border-radius: 25px;
  padding: 2.5rem 2rem;
  width: 320px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
  text-align: center;
}

.journey-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  transition: transform 0.6s ease;
}

.journey-item:hover {
  transform: translateY(-10px) scale(1.05);
  background: #fff;
}

.journey-item:hover img {
  transform: rotate(-5deg) scale(1.1);
}

.journey-item h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.journey-item p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive fix */
@media (max-width: 768px) {
  .journey-item {
    width: 90%;
  }
}


/* ================= FOUNDERS SECTION FIX ================= */
#founders {
  background: var(--cream);
  color: var(--green);
  text-align: center;
  padding: 8rem 2rem;
}

#founders .section-header h6 {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

#founders .section-header h2 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 3.5rem;
}

.founders-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
}

.founder {
  background: #fff;
  width: 250px;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.5s ease;
}

.founder:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.founder img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
}

.founder h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.founder p {
  font-size: 1rem;
  color: var(--brown);
  font-weight: 600;
}

/* View All button styling */
#founders .btn {
  font-size: 1rem;
  padding: 1rem 2.2rem;
  border-radius: 50px;
}

/* Responsive fix */
@media (max-width: 768px) {
  .founder {
    width: 90%;
  }
}

/* Subscribe */
#subscribe { background: var(--gold); color: var(--brown); text-align: center; }
#subscribe form { margin-top: 2rem; }
#subscribe input { padding: 0.8rem 1rem; width: 260px; border-radius: 25px; border: none; }
#subscribe button { padding: 0.8rem 1.6rem; border: none; border-radius: 25px; background: var(--brown); color: var(--cream); margin-left: 0.5rem; transition: 0.3s ease; }
#subscribe button:hover { background: var(--green); }

/* Footer */
footer { background: var(--green); color: var(--cream); padding: 4rem 3rem; }
.footer-container { max-width: 1200px; margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
footer a { color: var(--cream); text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--gold); }

/* Animations */
.visible { opacity: 1 !important; transform: translate(0, 0) scale(1) !important; }
.fade-left, .fade-right, .mission-item, .journey-item, .founder, .section-header, .about-image, .about-text {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(.19,1,.22,1);
}

/* Keyframes */
@keyframes fadeDown { from {opacity:0; transform:translateY(-40px);} to {opacity:1; transform:translateY(0);} }
@keyframes slideUp { from {opacity:0; transform:translateY(40px);} to {opacity:1; transform:translateY(0);} }
@keyframes bounceIn { 0%{transform:scale(0.8);opacity:0;}60%{transform:scale(1.1);opacity:1;}100%{transform:scale(1);} }
@keyframes scrollBlink { 0%,100%{opacity:0.2;}50%{opacity:1;} }
@keyframes pulse { 0%,100%{transform:scale(1);}50%{transform:scale(1.08);} }

/* Responsive */
@media (max-width: 768px) {
  .about-container { flex-direction: column; }
  .mission-item, .journey-item { width: 90%; }
}


/* ================= INTERACTIVE HOVER ENHANCEMENTS ================= */

/* General smooth hover effects for all cards */
.mission-item,
.journey-item,
.founder,
.about-image img {
  transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.4s ease;
}

/* On hover — smooth lift, gentle scale, dynamic glow */
.mission-item:hover,
.journey-item:hover,
.founder:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, #ffffff, #fff7ef);
}

/* Animated image scaling inside cards */
.mission-item:hover img,
.journey-item:hover img,
.founder:hover img {
  transform: scale(1.08) rotate(-2deg);
  transition: transform 0.6s ease;
}

/* Buttons hover bounce */
.btn {
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* Animated gradient sheen on buttons */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: all 0.7s ease;
}
.btn:hover::after {
  left: 100%;
}

/* About image hover depth */
.about-image img:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
}

/* Hero parallax hover */
#hero:hover .hero-overlay {
  background: linear-gradient(rgba(17, 87, 65, 0.9), rgba(17, 87, 65, 0.85));
  transition: background 0.8s ease;
}

/* Founders cards animate in sequence when hovered */
.founders-list:hover .founder {
  opacity: 0.7;
  transform: scale(0.97);
}
.founders-list .founder:hover {
  opacity: 1;
  transform: scale(1.07) translateY(-8px);
}

/* Journey items ripple highlight */
.journey-item {
  position: relative;
  overflow: hidden;
}
.journey-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 184, 0, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}
.journey-item:hover::after {
  width: 400px;
  height: 400px;
}

/* Global smooth scaling on smaller screens */
@media (max-width: 768px) {
  .mission-item:hover,
  .journey-item:hover,
  .founder:hover {
    transform: scale(1.03);
  }
  .btn:hover {
    transform: scale(1.05);
  }
}

.ripple {
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  z-index: 5;
}

@keyframes rippleAnim {
  to {
    transform: scale(3);
    opacity: 0;
  }
}


/* ================= ADDRESS SECTION ================= */
#address {
  background: #0d3e2f;
  color: var(--cream);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1rem;
}

.address-container {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

#address h4 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
}

#address a {
  color: var(--gold);
  text-decoration: none;
  transition: 0.3s;
}

#address a:hover {
  color: #fff;
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

#org-tree {
  background: #fff5e9;
  padding: 6rem 1rem;
  text-align: center;
  position: relative;
}

.org-title {
  font-size: 2.5rem;
  color: #115741;
  font-weight: 900;
  margin-bottom: 4rem;
}

/* ====== Structure ====== */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.level {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin: 3rem 0;
  position: relative;
}

/* ====== Box styling ====== */
.person {
  background: #115741;
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  position: relative;
  min-width: 160px;
  z-index: 2;
  animation: fadeUp 1s ease forwards;
}
.person small { color: #ffb800; display: block; }

.person:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* ================= ORGANISATIONAL STRUCTURE ================= */
#org-tree {
  background: #fff5e9;
  padding: 4rem 0 3rem; /* less vertical space */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.org-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #115741;
  margin-bottom: 2rem; /* tighter title spacing */
}

/* Wrapper centers chart */
.org-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center; /* ✅ centers chart horizontally */
  align-items: flex-start;  /* ✅ align top neatly */
  overflow: hidden;
  text-align: center;
}

.org-chart {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* ✅ perfectly centered */
  gap: 1.4rem; /* consistent spacing between levels */
  margin: 0 auto;
  padding: 0;
  transform: scale(0.95);
}

/* ====== NODES ====== */
.node {
  background: #115741;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  font-weight: 600;
  margin: 0.3rem auto;
  min-width: 160px;
  text-align: center;
  transition: transform 0.3s ease;
}
.node small {
  color: #ffb800;
  font-size: 0.8rem;
  font-weight: 700;
}
.node:hover { transform: translateY(-4px); }


/* Founders node (top) */
.founders {
  margin-bottom: 1.2rem;
}
.founders .node {
  border: 2px solid #115741;
  background: #fff;
  color: #115741;
}

/* Managing Director */
.managing-director {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.8rem 0 1.4rem; /* tighter gap */
  position: relative;
}
.managing-director .branch-line {
  width: 2px;
  height: 28px;
  background: #115741;
  margin-bottom: 8px;
}
.managing-director .node {
  background: #115741;
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.managing-director .node img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #ffb800;
  margin-bottom: 0.4rem;
  background: #fff;
}

/* Pillars level */
.pillars {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 1rem 0 0.5rem;
  position: relative;
}
.pillars::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #115741;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.pillar::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 25px;
  background: #115741;
}
.pillar .pillar-title {
  background: #115741;
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  margin-bottom: 0.5rem;
}
.node-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Staff Level */
.staff {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  position: relative;
}
.staff::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #115741;
}

/* Nodes */
.node {
  background: #115741;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  font-weight: 600;
  min-width: 150px;
  text-align: center;
  transition: transform 0.3s ease;
}
.node small {
  color: #ffb800;
  font-size: 0.8rem;
  font-weight: 700;
}
.node:hover { transform: translateY(-4px); }

/* Images inside nodes */
.node img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffb800;
  margin-bottom: 0.4rem;
  background: #fff;
  transition: transform 0.3s ease;
}
.node img:hover { transform: scale(1.07); }

/* Scale nicely across screens */
@media (max-width: 992px)  { .org-chart { transform: scale(0.9); } }
@media (max-width: 820px)  { .org-chart { transform: scale(0.8); } }
@media (max-width: 600px)  { .org-chart { transform: scale(0.75); } }
@media (max-width: 480px)  { .org-chart { transform: scale(0.7); } }

/* ====== FULLSCREEN BUTTON ====== */
.view-full-btn {
  display: none;
  background: linear-gradient(135deg, #ffb800, #ff9900);
  color: #7a2f00;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.8rem;
  box-shadow: 0 6px 15px rgba(255, 184, 0, 0.4);
  animation: pulseHighlight 2s infinite;
}
@keyframes pulseHighlight {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 184, 0, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 25px rgba(255, 184, 0, 0.8); transform: scale(1.04); }
}
.view-full-btn:hover {
  transform: scale(1.05) translateY(-2px);
  background: linear-gradient(135deg, #ffcc33, #ffaa00);
}
@media (max-width: 768px) {
  .view-full-btn {
    display: inline-block;
  }
  .org-wrapper {
    overflow: hidden !important;
    pointer-events: none;
  }
}

/* ====== FULLSCREEN MODAL ====== */
.org-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.org-modal-content {
  background: #fff5e9;
  width: 95%;
  height: 90%;
  border-radius: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zoomIn 0.35s ease forwards;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Close button */
.close-modal {
  position: sticky;
  top: 10px;
  align-self: flex-end;
  margin-right: 18px;
  font-size: 2rem;
  font-weight: bold;
  color: #115741;
  cursor: pointer;
  z-index: 10;
}
.close-modal:hover { transform: scale(1.15); }

/* Scrollable both directions */
.org-modal-wrapper {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  display: block;
  padding: 1rem;
}

/* Ensure full horizontal scroll space */
.org-modal-inner {
  display: inline-block;
  min-width: 1600px;
  width: max-content;
  white-space: nowrap;
}

/* Chart inside modal */
.org-modal-inner .org-wrapper {
  text-align: center;
}
.org-modal-inner .org-chart {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transform-origin: top center;
  padding-bottom: 3rem;
}


/* Background blur effect (only behind modal) */
.blurred-bg {
  filter: blur(6px) brightness(0.6);
  transition: filter 0.3s ease;
}
