:root {
  --text-main-color: #1f2937;
  --text-nav-color: #1f2937;
  --text-second-color: #4b5563;
  --text-link-color: #2563eb;
  --text-highligh-color: #3338a0;
  --b-green-color: #16a34a;
  --bg-main-color: #f9fafb;
  --bg-card-color: #fff;
  --bg-nav-color: #f3f4f6;
}

@font-face {
  font-family: 'Vazirmatn';
  font-display: auto;
  font-style: normal;
  font-weight: 400;
  src: url('../font/Vazirmatn-Regular.woff2') format('woff2');
}

body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--bg-main-color);
  direction: rtl;
}

a {
  color: var(--text-link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--text-highligh-color);
  text-decoration: none;
}

.navbar {
  position: sticky;
  top: 0;
  background-color: var(--bg-nav-color);
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  z-index: 1000;
  direction: rtl;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main-color);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 4px;
}

@media only screen and (max-width: 48.125em) {
  .nav-links a {
    width: 92%;
    width: fill-available;
    width: -webkit-fill-available;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-second-color);
  border-radius: 2px;
  margin: 4px 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-nav-color);
  font-size: 14px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav-link:hover {
  color: #007acc;
  background-color: rgba(0, 122, 204, 0.08);
}

.nav-link.active {
  color: #007acc;
  background-color: rgba(0, 122, 204, 0.12);
  font-weight: 600;
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  margin-top: 10px;
}

.banner img {
  max-width: 1100px;
  width: 95%;
  height: auto;
  border-radius: 10px;
}

.info-box {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  border-top: 3px solid var(--b-green-color);
  font-size: 1.1rem;
  color: var(--text-second-color);
  strong {
    color: var(--text-main-color);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 8px 12px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    background: var(--bg-nav-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 10px 12px;
    border-radius: 6px;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 800px;
  border-top: 3px solid var(--b-green-color);
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  line-height: 2;
  color: var(--text-second-color);
  h3 {
    color: var(--text-main-color);
  }
}

.card {
  background: var(--bg-card-color);
  border-radius: 0.5rem;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease-in;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

.icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 10px 0;
  font-size: 1.2rem;
}

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

.copy-box {
  display: inline-block;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: all;
}

.ltr-number {
  direction: ltr;
  unicode-bidi: bidi-override;
}

.copy-box:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.copy-box:active {
  background: #d1d5db;
}

.copy-box.copied {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

.team {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  border-top: 3px solid var(--b-green-color);
  font-size: 1rem;
}

.team h2 {
  text-align: center;
  margin-bottom: 20px;
}

h1,
h2 {
  color: var(--text-main-color);
}

p,
li {
  color: var(--text-second-color);
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.member {
  background: var(--bg-card-color);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 0.5rem;
  width: 10rem;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.member img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.member h3 {
  margin: 5px 0;
  font-size: 1.1rem;
}

.member:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


@media screen and (max-width: 440px) {
.member {
  width: 7rem;
}
.member img {
  width: 60px;
  height: 60px;
}
.member h3 {
  font-size: 1rem;
}
.team-members {
  gap : 10px;
}
}

.join-us {
  border: 2px dashed #9ca3af;
  background: #f9fafb;
  color: #374151;
  font-style: italic;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.join-us i {
  font-size: 50px;
  margin-bottom: 10px;
  color: #6b7280;
}

.join-us:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.media-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
}

.media-tab {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-nav-color);
  color: var(--text-nav-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.media-tab:hover {
  color: #007acc;
  background-color: rgba(0, 122, 204, 0.08);
}

.media-tab.active {
  color: #fff;
  background: var(--b-green-color);
}

.gallery-section {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  border-top: 3px solid var(--b-green-color);
  font-size: 1rem;
}

.gallery-section[hidden] {
  display: none;
}

.gallery-section h2 {
  margin-bottom: 1rem;
}

.gallery-section iframe {
  width: 80%;
  height: 360px;
  border-radius: 10px;
  border: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery a {
  display: block;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.timeline {
  max-width: 800px;
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  border-top: 3px solid var(--b-green-color);
  font-size: 1rem;
}

.timeline h2 {
  text-align: center;
  margin-bottom: 20px;
}

.timeline h4 {
  text-align: center;
  margin-bottom: 20px;
}

.timeline h3 {
  font-weight: 400;
}

.timeline-container {
  max-width: 800px;
  margin: 40px auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50px;
  width: 1px;
  background: #d3d3d3;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-right: 70px;
  text-align: right;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: 46px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ca3af;
  z-index: 1;
}

.timeline-date {
  color: #909090;
  margin-bottom: 5px;
  font-size: 1em;
}

.timeline-content {
  padding: 0;
  position: relative;
}

.timeline-title {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 1.2em;
}

.timeline-text {
  color: #555;
  font-size: 1em;
  margin: 0;
}

.register-button-container {
  padding-bottom: 15px;
  text-align: center;
  flex-direction: column;
}

.register-button {
  text-align: center;
  width: 110px;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.button {
  background-color: #217dbb;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #f0f0f0;
}

.countdown-container .countdown-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0rem auto;
  max-width: 600px;
  text-align: center;
}

.countdown-container .countdown-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.countdown-container .timer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.countdown-container .segment {
  border: 1px solid #ddd;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  min-width: 60px;
  text-align: center;
  flex: 1 1 40px;
}

.countdown-container .value {
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
}

.countdown-container .label {
  font-size: 0.75rem;
  color: #555;
}

.countdown-container .live-badge {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #2e9c6a;
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.countdown-container .live-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #2e9c6a;
}

.table-container {
  width: 100%;
  margin: .5rem auto;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 0.95rem;
  min-width: 600px; /* Helps desktop readability */
}

thead {
  background: #1e293b; /* dark slate */
  color: #fff;
}

thead th {
  padding: 0.75rem 1rem;
  text-align: right;
  font-weight: 600;
  border-bottom: 2px solid #334155;
}

tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: #f9fafb;
}

tbody td {
  padding: 0.75rem 1rem;
  text-align: right;
  color: #334155;
}

tbody .empty-row td {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 1rem;
}


.financial-card {
  display: flex;
  margin-top : 2rem;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  padding : 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

}

@keyframes greenFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.financial-bar {
  position: relative;
  align-self: stretch;
  height: 15px;
  background: #F72C5B;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}


.donations-bar {
   background: linear-gradient(
    90deg,
    #16a34a,
    #22c55e,
    #4ade80,
    #16a34a
  );
  background-size: 300% 300%;
  animation: greenFlow 5s ease-in infinite;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 8px 0 0 8px;
  transition: width 0.5s ease;
}

.gold-text {
  color: #FF9B00 !important;
  font-weight: 600;
  font-size: 1.2rem;
}

.summary p {
  margin: 0.25rem 0;
  font-weight: 500;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}


.cards-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
  margin-top: 2rem;


}
.cards-container_card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  background: #fff;
}


.table-container table {
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-container thead {
  background: #f1f5f9;
  color: #1e293b;
}

.table-container th,
.table-container td {
  padding: 0.75rem;
  text-align: right;
}

.table-container tbody tr {
  border-top: 1px solid #e5e7eb;
}

.empty-row td {
  text-align: center;
  color: #888;
  font-style: italic;
  background: #fafafa;
  padding: 1rem;
}


@media screen and (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr; /* Single column layout for cards */
  }

  .table-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    max-width: 100%; /* Ensure table stays within container */
  }

  .table-container table {
    font-size: 0.8rem; /* Smaller font size for better fit on mobile */
    width: 100%;
    min-width: 600px; /* Minimum width to enforce scrolling */
    border-collapse: collapse;
  }

  .table-container th,
  .table-container td {
    padding: 0.5rem; /* Reduced padding for compact display */
    text-align: right;
  }

  .table-container thead {
    background: #f1f5f9;
    color: #1e293b;
  }

  .table-container tbody tr {
    border-top: 1px solid #e5e7eb;
  }

  .empty-row td {
    text-align: center;
    padding: 0.5rem;
  }
}

.stickers-section {
  text-align: center;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  border-top: 3px solid #3498db;
  font-size: 1rem;
}

.stickers-section h2 {
  margin-bottom: 1rem;
}

.stickers-gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.sticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sticker-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
  background: #f9fafb;
}

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

.sticker-title {
  margin-top: 0.6rem;
  color: #333;
  text-align: center;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.attendee {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.5s ease;
  overflow: visible;
}

.attendee.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.show-more-btn {
  font-family: 'Vazirmatn';
  background-color: #217dbb;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.show-more-btn:hover {
  background-color: var(--b-green-color);
}

.hidden {
    opacity :0;
    transform : translateY(0);
    transition: all 0.3s ease, opacity 0.1s ease;
}

.attendees-section {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 1.5rem 1rem 1.5rem;
  border-top: 3px solid var(--b-green-color);
  font-size: 1rem;
}

.attendees-section h2 {
  margin-bottom: 1rem;
}

.attendees-container {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  justify-content: end;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: nowrap;
  transition : all .2s ease-in;

}

.attendees-container.collapsed {
  max-height: 280px;
}

.attendees-container::-webkit-scrollbar {
  display: none;
}

.attendee {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  object-fit: cover;
}


@media screen and (max-width: 550px) {
    .attendee {
        width: 50px;
        height: 50px;
    }

    .attendees-container {
       gap : 8px;
       grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
    }


}


.attendee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.attendee::after {
  content: attr(data-name);
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #000;
  white-space: nowrap;
  display: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  z-index: 1;
}

.attendee:hover::after {
  display: block;
  transform: translateX(-50%) translateY(-15px);
}

.faq-section {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  border-top: 3px solid var(--b-green-color);
  font-size: 1rem;
}

.faq-section h2 {
  margin-bottom: 1rem;
}

.faq-item {
  text-align: right;
  border-bottom: 1px solid #ddd;
}

.faq-question {
  cursor: pointer;
  padding: 1rem;
  background: #fff;
  transition: background 0.3s;
  font-weight: bold;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  background: #fafafa;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 1rem;
}

.supporters-section {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  border-top: 3px solid var(--b-green-color);
  font-size: 1rem;
}

.supporters-section h2 {
  margin-bottom: 1rem;
}

.supporters-gallery {
  margin-top: 40px;
  display: grid;
  gap :15px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.supporter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.supporter-item img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: #f9fafb;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

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

.supporter-name {
  margin-top: 0.5rem;
  color: #333;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

footer {
  background: #f3f4f6;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  border-top: 1px solid #e5e7eb;
  line-height: 1.6;
  color: #4b5563;
}

.disable-button{
  background: linear-gradient(180deg,#f0f2f5,#e7eaee);
  color: #7b8187;
  box-shadow: none;
  opacity: 0.95;
  cursor: not-allowed;
  pointer-events: none;
  transform: translateY(0);
  border: 1px solid rgba(120,125,130,0.12);
}

.disable-button:focus {
  outline: none;
  box-shadow: none;
}

.canvas_hidden { 
  scale: 0;
  opacity: 0;
}
#canvas {
  margin: 0;
  overflow-y: hidden;
  overflow-x: hidden;
  position: fixed;
  transition: all 2s;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
}