/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  line-height: 1.6;
  color: #334155;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  direction: rtl;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 60px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
  text-align: center;
}

.main-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  opacity: 0.8;
}

.stat-icon {
  font-size: 1.2rem;
}

/* Main Content */
.main-content {
  padding: 60px 0;
}

/* Statistics Section */
.stats-section {
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.95rem;
  color: #64748b;
}

/* Conferences Section */
.conferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.conference-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.conference-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.conference-card:hover .conference-poster {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  backdrop-filter: blur(10px);
}

/* Status Badges */
.status-active {
  background: rgba(34, 197, 94, 0.9);
  color: white;
}

.status-open {
  background: rgba(59, 130, 246, 0.9);
  color: white;
}

.status-soon {
  background: rgba(249, 115, 22, 0.9);
  color: white;
}

/* Type Badges */
.type-in-person {
  background: rgba(255, 255, 255, 0.9);
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.type-virtual {
  background: rgba(255, 255, 255, 0.9);
  color: #10b981;
  border: 2px solid #10b981;
}

.type-hybrid {
  background: rgba(255, 255, 255, 0.9);
  color: #8b5cf6;
  border: 2px solid #8b5cf6;
}

/* Card Content */
.card-content {
  padding: 25px;
}

.card-header {
  margin-bottom: 20px;
}

.conference-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
}

.conference-english-title {
  direction: ltr;
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
}

.card-details {
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.detail-icon {
  font-size: 1.1rem;
  margin-top: 2px;
}

.detail-content {
  flex: 1;
}

.detail-main {
  font-weight: 500;
  color: #1e293b;
}

.detail-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.detail-text {
  color: #475569;
}

.organizer-info {
  margin: 15px 0;
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
  border-right: 4px solid #3b82f6;
}

.organizer-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 5px;
}

.organizer-name {
  font-weight: 500;
  color: #1e293b;
  font-size: 0.9rem;
}

.conference-description {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 15px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
}

.card-footer {
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Contact Section */
.contact-section {
  margin-top: 80px;
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-content {
  text-align: center;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: right;
}

.contact-card {
  padding: 30px;
  background: #f8fafc;
  border-radius: 15px;
  border: 2px solid #e2e8f0;
}

.contact-org-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 8px;
  color: #475569;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 30px 0;
  margin-top: 60px;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .header-stats {
    gap: 20px;
  }

  .conferences-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 30px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .header-stats {
    flex-direction: column;
    gap: 15px;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conference-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Print Styles */
@media print {
  .header {
    background: #1e293b !important;
    -webkit-print-color-adjust: exact;
  }

  .conference-card {
    break-inside: avoid;
    margin-bottom: 20px;
  }
}


.form-label {
    font-size: 1rem;
    color: #444;
    margin-bottom: 8px;
}

input[type="email"] {
    padding: 10px 12px;
    border: 1.5px solid #bfc9d1;
    border-radius: 8px;
    font-size: 1rem;
    width: 90%;
    max-width: 260px;
    transition: border-color 0.2s;
}

input[type="email"]:focus {
    border-color: #3b82f6;
    outline: none;
}

input[type="text"] {
    margin-top :5px;
    padding: 10px 12px;
    border: 1.5px solid #bfc9d1;
    border-radius: 8px;
    font-size: 1rem;
    width: 90%;
    max-width: 260px;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: #3b82f6;
    outline: none;
}

button[type="submit"] {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 32px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: #2563eb;
}
