/* 🌸 Fonts & Base Reset - Consistent with Homepage */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #3c2a00;
  background: #fffaf3;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 🌅 Header - Changed from sticky to normal scroll */
.main-header {
  background: linear-gradient(135deg, #f8b400, #ff9800);
  padding: 15px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  /* Removed: position: sticky, top: 0, z-index: 1001 */
  border-bottom: 3px solid #d17b00;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

.main-title {
  font-family: 'Kaisei Tokumin', serif;
  color: white;
  font-size: 2.3rem;
  text-align: center;
  flex: 1;
  text-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

/* 🌐 Modern Language Dropdown - Consistent with Homepage */
.language-wrapper {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 1002;
}

.dropdown {
  position: relative;
}

.dropdown > a {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 25px;
  padding: 12px 20px;
  font-weight: 600;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown > a::after {
  content: '▼';
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown > a:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  right: 0;
  top: 100%;
  min-width: 160px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
  animation: slideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content li:last-child {
  border-bottom: none;
}

.dropdown-content li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  background: transparent;
}

.dropdown-content li a:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  color: white;
  transform: translateX(-5px);
  padding-left: 23px;
  backdrop-filter: blur(10px);
}

.dropdown-content li a::before {
  content: '🌐';
  font-size: 1.1rem;
  filter: brightness(1.2);
}

.dropdown-content li:nth-child(1) a::before { content: '🟤'; }
.dropdown-content li:nth-child(2) a::before { content: '🟠'; }
.dropdown-content li:nth-child(3) a::before { content: '🔵'; }

@keyframes slideDown {
  from { 
    opacity: 0; 
    transform: translateY(-10px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* 🕉️ Navigation - Consistent with Homepage */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 20px;
}

.nav-menu li a:hover {
  color: #fff2c2;
  text-shadow: 0 0 5px #fff2c2;
  background: rgba(255, 255, 255, 0.1);
}

/* 🕯️ Floating News Bar - Consistent with Homepage */
.floating-news-bar {
  background: #fff2cc;
  color: #3c2a00;
  font-weight: bold;
  padding: 10px 0;
  overflow: hidden;
  border-bottom: 2px solid #ffcc00;
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scrollLeft 15s linear infinite;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* 🌟 Mentor Section - Original GOD MODE HD Styling */
.mentor {
    padding: 80px 25px;
    background: radial-gradient(circle at top, #fff8e1 0%, #ffe0b2 50%, #ffd180 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Celestial particles behind section */
.mentor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/banner.png') repeat;
    opacity: 0.15;
    animation: particleDrift 60s linear infinite;
    z-index: 0;
}

@keyframes particleDrift {
    0% { background-position: 0 0; }
    100% { background-position: 10000px 10000px; }
}

/* Divine glowing heading */
.mentor h2 {
    font-size: 3rem;
    color: #ff6f00;
    font-weight: 900;
    margin-bottom: 50px;
    border-bottom: 5px solid #ff9800;
    display: inline-block;
    padding-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.8),
                 0 0 25px rgba(255, 215, 0, 0.6),
                 0 0 50px rgba(255, 243, 128, 0.3);
    position: relative;
    z-index: 2;
}

/* Card grid */
.mentor-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

/* GODLY MENTOR CARD */
.mentor-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 2px solid #ffb74d;
    width: 340px;
    padding: 35px;
    box-shadow:
        0 10px 35px rgba(255, 152, 0, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.2),
        0 0 60px rgba(255, 193, 7, 0.1);
    backdrop-filter: blur(15px) saturate(1.3);
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
    overflow: hidden;
}

/* Hover god transformation */
.mentor-card:hover {
    transform: translateY(-20px) scale(1.12) rotateY(6deg);
    box-shadow:
        0 25px 70px rgba(255, 152, 0, 0.7),
        0 0 50px rgba(255, 102, 0, 0.5),
        inset 0 0 30px rgba(255, 215, 0, 0.4),
        0 0 100px rgba(255, 243, 128, 0.25);
    border-color: #ff6f00;
}

/* Floating mentor image with particle aura */
.mentor-card img {
    width: 100%;
    max-width: 220px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 5px solid rgba(255, 224, 178, 0.85);
    box-shadow: 
        0 0 40px rgba(255, 193, 7, 0.6),
        0 0 70px rgba(255, 152, 0, 0.35),
        0 0 120px rgba(255, 235, 59, 0.25),
        0 0 200px rgba(255, 243, 128, 0.15);
    animation: floatDivine 6s ease-in-out infinite, auraHD 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* Floating animation */
@keyframes floatDivine {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Aura pulse HD */
@keyframes auraHD {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(255, 193, 7, 0.6),
            0 0 70px rgba(255, 152, 0, 0.35),
            0 0 120px rgba(255, 235, 59, 0.25),
            0 0 200px rgba(255, 243, 128, 0.15);
    }
    50% {
        box-shadow: 
            0 0 55px rgba(255, 193, 7, 0.8),
            0 0 90px rgba(255, 152, 0, 0.5),
            0 0 150px rgba(255, 235, 59, 0.35),
            0 0 250px rgba(255, 243, 128, 0.25);
    }
}

/* Mentor info */
.mentor-info h3 {
    font-size: 1.8rem;
    color: #ff6f00;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.7);
}

.mentor-info p {
    font-size: 1rem;
    color: #ff9800;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.4);
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* 👥 Trustees Section - Enhanced */
.trustees {
  padding: 60px 20px;
  background: #fff7e0;
  text-align: center;
}

.trustees h2 {
  font-family: 'Kaisei Tokumin', serif;
  font-size: 2.8rem;
  color: #e65100;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.trustee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.trustee-card {
  background: white;
  border-radius: 20px;
  padding: 25px 20px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffe0b2;
}

.trustee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff9800, #f57c00);
}

.trustee-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.trustee-number {
  position: absolute;
  top: 15px;
  left: 20px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(255, 111, 0, 0.3);
}

.trustee-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffd54f;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.trustee-card:hover img {
  transform: scale(1.05);
  border-color: #ffb300;
}

.trustee-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #3c2a00;
}

.trustee-card p span:first-child {
  font-weight: 600;
  color: #e65100;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.trustee-card p span:last-child {
  color: #5a4a00;
  font-size: 0.95rem;
}

/* 💰 Donation Section - Enhanced */
/* 💰 Donation Section - Enhanced */
/* 💰 Donation Section - Enhanced */
/* 💰 Donation Section - Enhanced */
.donation {
  padding: 60px 20px;
  background: linear-gradient(135deg, #fffaf3 0%, #fff0db 100%);
  text-align: center;
  border-top: 3px solid #ffd54f;
  border-bottom: 3px solid #ffd54f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donation h2 {
  font-family: 'Kaisei Tokumin', serif;
  font-size: 2.5rem;
  color: #e65100;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.donation-content {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.15);
  border: 2px solid #ffe0b2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden; /* Prevent content overflow */
}

.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  width: 100%;
}

.qr-image {
  border-radius: 15px;
  border: 4px solid #ffd54f;
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
  transition: all 0.3s ease;
  max-width: 100%;
  height: auto;
  display: block;
}

.qr-image:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(255, 152, 0, 0.3);
}

.upi-section {
  background: #fff8e1;
  padding: 15px 20px;
  border-radius: 15px;
  margin: 20px 0;
  border: 1px solid #ffecb3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Changed from center to flex-start */
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto; /* Enable horizontal scrolling */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%; /* Ensure it doesn't exceed container */
}

.upi-section::-webkit-scrollbar {
  height: 6px; /* Slightly thicker for better usability */
}

.upi-section::-webkit-scrollbar-track {
  background: #ffe0b2;
  border-radius: 3px;
}

.upi-section::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border-radius: 3px;
}

.upi-section::-webkit-scrollbar-thumb:hover {
  background: #e65100;
}

.upi-section span:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3c2a00;
  white-space: nowrap;
  flex-shrink: 0; /* Prevent label from shrinking */
}

/* UPI ID Container - Fixed width with scrolling */
.upi-id-container {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  position: relative;
}

#upi-id {
  font-family: 'Poppins', sans-serif;
  background: #fff8e1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed #ffb300;
  color: #3c2a00;
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  text-overflow: unset;
  max-width: 100%;
  flex: 1;
  min-width: 0;
  text-align: left;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ff9800 #ffe0b2;
}

#upi-id::-webkit-scrollbar {
  height: 4px;
}

#upi-id::-webkit-scrollbar-track {
  background: #ffe0b2;
  border-radius: 2px;
  margin: 2px;
}

#upi-id::-webkit-scrollbar-thumb {
  background: #ff9800;
  border-radius: 2px;
}

#upi-id::-webkit-scrollbar-thumb:hover {
  background: #e65100;
}

.copy-icon-btn {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 5px;
}

.copy-icon-btn:hover {
  transform: scale(1.1);
  background: #e65100;
  box-shadow: 0 6px 15px rgba(255, 111, 0, 0.4);
}

.download-qr-btn {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border: none;
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
  font-weight: 600;
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.download-qr-btn:hover {
  transform: scale(1.05);
  background: #e65100;
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.5);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .donation-content {
    padding: 25px 20px;
    max-width: 95%;
  }
  
  .upi-section {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .donation-content {
    padding: 20px 15px;
  }
  
  .upi-section {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .upi-section span:first-child,
  #upi-id {
    font-size: 1rem;
  }
  
  #upi-id {
    padding: 6px 10px;
  }
  
  .copy-icon-btn {
    padding: 8px 12px;
    font-size: 1.1rem;
  }
}

/* For extremely long UPI IDs - stack layout */
@media (max-width: 360px) {
  .upi-section {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }
  
  .upi-id-container {
    order: 2;
  }
  
  .upi-section span:first-child {
    order: 1;
    margin-bottom: 5px;
  }
  
  .copy-icon-btn {
    order: 3;
    align-self: center;
    margin-top: 8px;
    margin-left: 0;
  }
}

/* Animation for scroll hint */
@keyframes scrollHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

.upi-section.scrollable {
  position: relative;
}

.upi-section.scrollable::after {
  content: "→";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff9800;
  font-weight: bold;
  animation: scrollHint 2s infinite;
  pointer-events: none;
}
/* 🕉️ Footer - Consistent with Homepage */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 25px 10px;
}

footer a {
  color: #ffd54f;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 🌺 Scroll Top Button - Consistent with Homepage */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 60px;
  right: 30px;
  background: #f57c00;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255,111,0,0.4);
  animation: floatUpDown 2s infinite ease-in-out;
  transition: all 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn:hover {
  background: #d84315;
  transform: scale(1.1);
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Toast Notification - Consistent with Homepage */
.toast {
  visibility: hidden;
  min-width: 250px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-align: center;
  border-radius: 25px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

/* Loading States */
.loading {
  text-align: center;
  padding: 40px;
  font-size: 1.3rem;
  color: #8d6e63;
  grid-column: 1 / -1;
}

.no-results {
  text-align: center;
  padding: 60px 40px;
  font-size: 1.3rem;
  color: #8d6e63;
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 20px;
}

/* 🌈 Responsive Design */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    text-align: center;
  }
  
  .main-title {
    font-size: 1.8rem;
    margin: 10px 0;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }
  
  .language-wrapper {
    position: static;
    margin-top: 10px;
    order: -1;
    align-self: flex-end;
  }
  
  .mentor {
    padding: 50px 15px;
  }
  
  .mentor h2 {
    font-size: 2rem;
  }
  
  .mentor-card {
    width: 100%;
    max-width: 300px;
    padding: 25px;
  }
  
  .mentor-card img {
    max-width: 180px;
  }
  
  .trustees h2 {
    font-size: 2.2rem;
  }
  
  .trustee-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
  
  .donation-content {
    padding: 20px;
  }
  
  .upi-section {
    flex-direction: column;
    gap: 15px;
  }
  
  .qr-image {
    max-width: 280px;
  }
  
  .dropdown-content {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.5rem;
  }
  
  .logo {
    width: 80px;
    height: 80px;
  }
  
  .mentor h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .mentor-card img {
    max-width: 160px;
  }
  
  .trustees h2 {
    font-size: 1.8rem;
  }
  
  .dropdown > a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .trustee-grid {
    grid-template-columns: 1fr;
  }
  
  .trustee-card img {
    width: 120px;
    height: 120px;
  }
  
  .qr-image {
    max-width: 240px;
  }
  
  .download-qr-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Grid responsiveness for different screen sizes */
@media (min-width: 1200px) {
  .trustee-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .trustee-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .trustee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}