/* 🌸 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%); }
}

/* 🤝 Social Activities Section - Enhanced */
.social-activities {
  padding: 60px 20px;
  background: linear-gradient(135deg, #fffaf3 0%, #fff0db 100%);
  text-align: center;
}

.social-activities 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);
}

.activities-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 🌟 Activity Card - Enhanced */
.activity-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid #ffe0b2;
}

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

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.activity-card h3 {
  font-size: 1.8rem;
  color: #e65100;
  margin-bottom: 25px;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 3px solid #ffd54f;
  display: inline-block;
}

/* 🖼️ Gallery Grid - Enhanced */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  border: 3px solid #ffd54f;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  border-color: #ffb300;
  box-shadow: 0 10px 25px rgba(255, 152, 0, 0.3);
}

/* 🕉️ 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;
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 20px;
}

.no-activities {
  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;
  }
  
  .social-activities h2 {
    font-size: 2.2rem;
  }
  
  .activity-card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }
  
  .activity-card h3 {
    font-size: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .gallery-grid img {
    height: 160px;
  }
  
  .dropdown-content {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.5rem;
  }
  
  .logo {
    width: 80px;
    height: 80px;
  }
  
  .social-activities h2 {
    font-size: 1.8rem;
  }
  
  .dropdown > a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .activity-card {
    padding: 20px 15px;
  }
  
  .activity-card h3 {
    font-size: 1.3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .gallery-grid img {
    height: 140px;
  }
}

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

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

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