/* Timeline Component */
.timeline {
  position: relative;
  padding: 3rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 3rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 7rem;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

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

.timeline-marker {
  position: absolute;
  left: 2.25rem;
  top: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-primary);
  border-radius: 50%;
  border: 4px solid var(--color-background);
  box-shadow: 0 0 0 3px var(--color-primary-light), 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  box-shadow: 0 0 0 5px var(--color-primary-light), 0 5px 20px rgba(0,0,0,0.15);
}

.timeline-content {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.timeline-year {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 700;
}

.timeline-text {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.timeline-image {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 400px;
}

.timeline-image img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-image img {
  transform: scale(1.05);
}

/* Board Members */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.board-member {
  text-align: center;
  padding: 2.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.board-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.board-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.board-member:hover::before {
  transform: translateX(0);
}

.board-member__image {
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-border);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
}

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

.board-member__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  font-weight: bold;
}

.board-member__position {
  color: var(--color-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.board-member__name {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.board-member__email {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.board-member__email:hover {
  color: var(--color-primary);
}

.board-member__description {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Committee */
.committee-section {
  margin-top: 4rem;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.committee-member {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.committee-member h4 {
  margin-bottom: 0.5rem;
}

.committee-member__role {
  color: var(--color-primary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.committee-member__description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.legal-content h1 {
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  color: var(--color-primary);
  text-align: center;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-text {
  line-height: 1.8;
  color: var(--color-text-muted);
}

.legal-text p {
  margin-bottom: 1rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section address {
  font-style: normal;
  line-height: 1.8;
}

/* Statute Sections */
.statute-sections {
  margin-top: 2rem;
}

.statute-section {
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  border-left: 3px solid var(--color-primary);
  overflow: hidden;
}

.statute-section:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.statute-section__title {
  margin: 0;
}

.statute-section__toggle {
  width: 100%;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.statute-section__toggle:hover {
  background-color: var(--color-background);
}

.statute-section__icon {
  flex-shrink: 0;
  transition: transform 0.3s;
  width: 20px;
  height: 20px;
}

.statute-section__toggle[aria-expanded="true"] .statute-section__icon {
  transform: rotate(180deg);
}

.statute-content {
  line-height: 1.7;
  color: var(--color-text);
  padding: 0 1.5rem 1.5rem;
  overflow: hidden;
  transition: height 0.3s ease;
  font-size: 1rem;
}

.statute-content p {
  margin-bottom: 1rem;
}

.statute-content ul,
.statute-content ol {
  margin: 1rem 0 1rem 2rem;
}

/* Download Section */
.download-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  text-align: center;
}

.download-section h3 {
  margin-bottom: 1rem;
}

.download-section p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.download-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.last-update {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* Traditions */
.traditions-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.traditions-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--color-primary);
}

.traditions-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.tradition-item {
  padding: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.tradition-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.tradition-item__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--color-background);
}

.tradition-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tradition-item:hover .tradition-item__image img {
  transform: scale(1.05);
}

.tradition-item h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding: 0 2rem;
  padding-top: 2rem;
}

.tradition-item p {
  line-height: 1.7;
  color: var(--color-text-muted);
  padding: 0 2rem 2rem;
}

/* Info Section */
.info-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  line-height: 1.8;
}

.info-section p {
  margin-bottom: 1rem;
}

/* Event Cards */
.events-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.event-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
}

.event-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.event-date {
  background: var(--color-primary);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 80px;
}

.event-date__day {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

.event-date__month {
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.event-content h3 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.event-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Activities */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.activity-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.activity-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.activity-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  position: relative;
  overflow: hidden;
}

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

.activity-icon {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.activity-content {
  padding: 2.5rem 2rem 2rem;
}

.activity-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Contact Info */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.news-image {
  height: 200px;
  background: var(--color-primary-light);
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: var(--color-primary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.news-excerpt {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .board-member,
[data-theme="dark"] .committee-member,
[data-theme="dark"] .statute-section,
[data-theme="dark"] .tradition-item,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .event-card,
[data-theme="dark"] .activity-card,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .news-item {
  background: var(--color-surface);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

[data-theme="dark"] .board-member:hover,
[data-theme="dark"] .committee-member:hover,
[data-theme="dark"] .statute-section:hover,
[data-theme="dark"] .tradition-item:hover,
[data-theme="dark"] .timeline-content:hover,
[data-theme="dark"] .event-card:hover,
[data-theme="dark"] .activity-card:hover,
[data-theme="dark"] .news-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .timeline::before {
    left: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 4rem;
  }
  
  .timeline-marker {
    left: 0.75rem;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
  
  .board-grid {
    grid-template-columns: 1fr;
  }
  
  .committee-grid {
    grid-template-columns: 1fr;
  }
  
  .activities-grid {
    grid-template-columns: 1fr;
  }
  
  .event-card {
    grid-template-columns: 1fr;
  }
  
  .event-date {
    max-width: 120px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}