html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 576px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --tasheh-red: #DC143C;
  --tasheh-red-dark: #B71C1C;
  --tasheh-red-light: #FF5252;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--tasheh-red);
}

body {
  margin-bottom: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tasheh Theme Colors */
.bg-tasheh {
  background-color: var(--tasheh-red) !important;
}

.text-tasheh {
  color: var(--tasheh-red) !important;
}

.btn-tasheh {
  background-color: var(--tasheh-red);
  border-color: var(--tasheh-red);
  color: white;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-tasheh:hover {
  background-color: var(--tasheh-red-dark);
  border-color: var(--tasheh-red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

.btn-tasheh:active {
  transform: translateY(0);
}

/* RTL Support */
.rtl-text {
  direction: rtl;
  text-align: right;
}

.ltr-text {
  direction: ltr;
  text-align: left;
}

/* Event Cards */
.event-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  border: 1px solid rgba(220, 20, 60, 0.1);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(220, 20, 60, 0.2);
}

@media (max-width: 576px) {
  .event-card {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }
}

/* Logo Styling */
.tasheh-logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
}

.tasheh-logo:hover {
  color: white;
  text-decoration: none;
}

.logo-image {
  height: 60px;
  width: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid white;
  transition: transform 0.2s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

@media (max-width: 576px) {
  .logo-image {
    height: 45px;
    width: 45px;
  }
}

.navbar-brand {
  padding: 0.5rem 0;
}

@media (max-width: 576px) {
  .logo-image {
    height: 45px;
    max-width: 180px;
  }
}

/* Download Button */
.btn-download {
  background-color: var(--tasheh-red);
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(220, 20, 60, 0.3);
}

.btn-download:hover {
  background-color: var(--tasheh-red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

.btn-download:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 20, 60, 0.3);
}

@media (max-width: 576px) {
  .btn-download {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

.btn-outline-tasheh {
  border-color: var(--tasheh-red);
  color: var(--tasheh-red);
  border-width: 2px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-outline-tasheh:hover {
  background-color: var(--tasheh-red);
  border-color: var(--tasheh-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

.btn-outline-tasheh:active {
  transform: translateY(0);
}

/* Footer Styling */
.footer {
  margin-top: auto;
}

.footer-top {
  background-color: #1a1a1a !important;
}

.footer-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer a.text-white-50:hover {
  color: white !important;
  text-decoration: underline !important;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links a.social-icon {
  transition: transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.social-links a.social-icon:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.footer-bottom {
  background-color: var(--tasheh-red) !important;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
  }
  
  .form-control-lg {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .footer-top {
    text-align: center;
  }
  
  .footer-logo {
    height: 40px;
    max-width: 150px;
  }
  
  .navbar-nav {
    text-align: right;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  /* Icon spacing in cards for mobile */
  .event-details .d-flex i {
    margin-left: 0.75rem !important;
    margin-right: 0.5rem !important;
  }
  
  .event-details .d-flex {
    gap: 0.5rem;
  }
  
  .badge i,
  .btn i {
    margin-left: 0.5rem !important;
    margin-right: 0.25rem !important;
  }
}

@media (max-width: 768px) {
  .footer-top {
    text-align: center;
  }
  
  .footer-logo {
    height: 40px;
    max-width: 150px;
  }
  
  .event-card .card-body {
    padding: 1.25rem;
  }
}

/* Form Improvements */
.form-control:focus,
.form-select:focus {
  border-color: var(--tasheh-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Alert Improvements */
.alert {
  border-radius: 8px;
  border: none;
}

.alert-info {
  background-color: #e3f2fd;
  color: #1565c0;
}

.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.alert-danger {
  background-color: #ffebee;
  color: #c62828;
}

.alert-warning {
  background-color: #fff3e0;
  color: #e65100;
}

/* Card Improvements */
.card {
  border: none;
  border-radius: 12px;
}

.card-header {
  border-radius: 12px 12px 0 0 !important;
  border-bottom: none;
}

/* List Improvements */
.list-unstyled li {
  line-height: 1.8;
}

/* Badge Improvements */
.badge {
  padding: 0.4em 0.8em;
  font-weight: 600;
  border-radius: 6px;
}

/* Spacing Improvements */
.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-6 {
  margin-bottom: 4rem !important;
}

.pb-5 {
  padding-bottom: 3rem !important;
}

.pb-6 {
  padding-bottom: 4rem !important;
}

@media (min-width: 768px) {
  .mb-4 {
    margin-bottom: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 3.5rem !important;
  }
  
  .mb-6 {
    margin-bottom: 5rem !important;
  }
  
  .pb-5 {
    padding-bottom: 3.5rem !important;
  }
  
  .pb-6 {
    padding-bottom: 5rem !important;
  }
}