/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #222222;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-bar {
  background-color: #047857;
  color: #ffffff;
  padding: 8px 0;
  font-size: 14px;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item i {
  font-size: 12px;
}

.mpesa-till {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.main-header {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
}

.logo .tagline {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.main-nav i {
  margin-right: 0.5rem;
}

.main-navigation {
  background-color: #047857;
  padding: 0;
}

.nav-content {
  display: flex;
  align-items: center;
  position: relative;
}

.back-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.back-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 20px;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 4px solid #ffffff;
}

.auth-links {
  margin-left: auto;
  display: flex;
}

.auth-links a {
  padding: 16px 15px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  padding: 16px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: 0.3s;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Homepage Styles */
.homepage {
  background-color: #ffffff;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,64L48,80C96,96,192,128,288,144C384,160,480,160,576,144C672,128,768,96,864,112C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-search-form {
  margin-top: 30px;
}

.search-box {
  display: flex;
  gap: 10px;
  background: white;
  border-radius: 50px;
  padding: 8px 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 15px;
  color: #333;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* QUICK FILTERS */
.quick-filters {
  background: white;
  padding: 30px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
}

.filter-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s;
  font-weight: 500;
  font-size: 14px;
}

.filter-tag:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.filter-tag i {
  font-size: 14px;
}

/* FEATURED EVENTS SECTION */
.featured-events-section {
  padding: 60px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.view-all-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 15px;
}

.view-all-link:hover {
  gap: 10px;
  transform: translateX(5px);
}

.view-all-link i {
  margin-left: 8px;
  transition: transform 0.3s;
}

.view-all-link:hover i {
  transform: translateX(3px);
}

/* EVENTS GRID */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.event-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image {
  transform: scale(1.05);
}

.event-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 48px;
}

.event-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.badge-hot,
.badge-popular {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-hot {
  background: #e74c3c;
  color: white;
}

.badge-popular {
  background: #f39c12;
  color: white;
}

.event-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.4;
}

.event-organiser-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}

.event-organiser-info i {
  color: #667eea;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item i {
  color: #667eea;
  width: 14px;
}

.event-description {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: auto;
}

.ticket-available {
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
}

.no-events {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

/* CATEGORIES SECTION */
.categories-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.categories-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card-modern {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.category-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-icon-modern {
  font-size: 40px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  transition: all 0.3s;
}

.category-card-modern:hover .category-icon-modern {
  transform: scale(1.1);
}

.category-card-modern h3 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.category-arrow {
  font-size: 18px;
  color: #667eea;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s;
}

.category-card-modern:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.btn-secondary {
  background: white;
  color: #667eea;
  font-weight: 600;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 16px;
  border-radius: 50px;
}

/* STATS SECTION */
.stats-section {
  padding: 60px 0;
  background: white;
  border-top: 1px solid #f0f0f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.categories-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #047857, #e7f9f4);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.title-underline::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e7f9f4, #047857);
  border-radius: 2px;
  animation: snake-move 3s ease-in-out infinite;
}

@keyframes snake-move {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}

/* Category Grid - Exact 4x4 layout from image */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
}

.category-card:hover {
  box-shadow: 0 8px 25px rgba(4, 120, 87, 0.15);
  transform: translateY(-2px);
  border-color: #047857;
  background-color: #e7f9f4;
}

.category-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 50%;
  border: 2px solid #047857;
}

.category-icon svg {
  width: 32px;
  height: 32px;
}

.category-info {
  flex: 1;
}

.category-title {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 4px;
  line-height: 1.3;
}

.category-description {
  font-size: 13px;
  color: #555555;
  line-height: 1.4;
}

.category-arrow {
  flex-shrink: 0;
  color: #047857;
  font-size: 16px;
}

/* Popular Section */
.popular-section {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.popular-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.document-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.doc-icon {
  width: 48px;
  height: 48px;
  background-color: #e7f9f4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #047857;
  font-size: 20px;
}

.doc-info {
  flex: 1;
}

.doc-title {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 4px;
  line-height: 1.3;
}

.doc-category {
  font-size: 14px;
  color: #555555;
  margin-bottom: 8px;
}

.doc-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.doc-price {
  color: #047857;
  font-weight: 600;
}

.doc-hits {
  color: #888888;
}

.doc-link {
  width: 36px;
  height: 36px;
  background-color: #047857;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.doc-link:hover {
  background-color: #065f46;
  transform: scale(1.1);
}

/* Authentication Forms */
.auth-container {
  max-width: 500px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #666;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e1e1;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-full {
  width: 100%;
}

.btn-secondary {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Messages */
.message {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Dashboard Styles */
.dashboard-header {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card i {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.stat-card h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: #666;
}

/* Tables */
.table-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e1e1e1;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.table tr:hover {
  background-color: #f8f9fa;
}

/* Footer */
.main-footer {
  background-color: #2c3e50;
  color: white;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
/* Additional Header Styles for header.php */

/* Header Top Section */
.header-top {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 1.8rem;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Button Styles - Missing from original CSS */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Small Button Variant */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary:hover {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Logout Button */
.btn-logout {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-logout:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    align-items: stretch;
  }
  
  .mobile-menu-btn {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
  }
  
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
}
/* Complete Footer Styles for footer.php */

.site-footer {
  background-color: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: #3498db;
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.payment-methods span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.payment-methods span i {
  font-size: 1.5rem;
}

.payment-methods span:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .payment-methods {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .payment-methods {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .payment-methods span {
    width: 100%;
    justify-content: center;
  }
}
/* Event Detail Page Styles */

.event-detail {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.back-link:hover {
  color: #764ba2;
  gap: 12px;
}

.event-hero {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 80px;
}

.event-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}

.event-info {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.event-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.event-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-organiser {
  color: #666;
  font-size: 16px;
  font-weight: 500;
}

.event-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.detail-item i {
  font-size: 24px;
  color: #667eea;
  margin-top: 5px;
}

.detail-item .label {
  font-size: 13px;
  color: #888;
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-item .value {
  font-size: 15px;
  color: #222;
  font-weight: 500;
}

.event-info .event-description {
  margin-top: 30px;
}

.event-info .event-description h3 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.event-info .event-description p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

/* Booking Sidebar */
.booking-sidebar {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.booking-sidebar h3 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ticket-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ticket-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.ticket-option:hover {
  border-color: #667eea;
  background: #f5f7ff;
}

.ticket-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 5px;
}

.ticket-info .price {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.ticket-info .availability {
  font-size: 13px;
}

.available {
  color: #28a745;
  font-weight: 600;
}

.sold-out {
  color: #dc3545;
  font-weight: 600;
}

.ticket-quantity {
  min-width: 80px;
}

.quantity-select {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #e1e1e1;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s;
}

.quantity-select:focus {
  outline: none;
  border-color: #667eea;
}

.quantity-select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

.price-summary {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-top: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  color: #555;
}

.summary-row.total {
  border-top: 2px solid #e1e1e1;
  margin-top: 10px;
  padding-top: 15px;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .event-content {
    grid-template-columns: 1fr;
  }
  
  .booking-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .event-hero {
    height: 300px;
  }
  
  .event-header h1 {
    font-size: 24px;
  }
  
  .event-details-grid {
    grid-template-columns: 1fr;
  }
  
  .ticket-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .ticket-quantity {
    width: 100%;
  }
}
/* Events Listing Page Styles */

.events-listing {
  padding: 40px 0;
  background-color: #f9f9f9;
  min-height: calc(100vh - 200px);
}

/* Listing Header */
.listing-header {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.listing-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 25px;
}

/* Filter Form */
.filters {
  width: 100%;
}

.filter-form {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-form input[type="text"],
.filter-form select {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
  background-color: white;
}

.filter-form input[type="text"]:focus,
.filter-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-form input[type="text"]::placeholder {
  color: #999;
}

.filter-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.filter-form .btn {
  padding: 12px 30px;
  white-space: nowrap;
}

/* Events Grid - Reusing from homepage but with adjustments */
.events-listing .events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.events-listing .event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.events-listing .event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Event Image */
.events-listing .event-image,
.events-listing .event-image-placeholder {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.events-listing .event-card:hover .event-image {
  transform: scale(1.05);
}

.events-listing .event-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 60px;
}

/* Event Details */
.event-details {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-details h3 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 50px;
}

.event-organiser {
  font-size: 14px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 15px;
}

.event-date,
.event-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.event-date i,
.event-location i {
  color: #667eea;
  width: 16px;
}

.event-details .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.no-results i {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.no-results h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.no-results p {
  font-size: 16px;
  color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .events-listing .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .events-listing {
    padding: 30px 0;
  }

  .listing-header {
    padding: 20px;
  }

  .listing-header h1 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .filter-form {
    flex-direction: column;
  }

  .filter-form input[type="text"],
  .filter-form select {
    width: 100%;
    min-width: 100%;
  }

  .filter-form .btn {
    width: 100%;
  }

  .events-listing .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-details h3 {
    font-size: 16px;
    min-height: auto;
  }

  .no-results {
    padding: 60px 20px;
  }

  .no-results i {
    font-size: 60px;
  }

  .no-results h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .listing-header {
    padding: 15px;
  }

  .listing-header h1 {
    font-size: 22px;
  }

  .events-listing .event-image,
  .events-listing .event-image-placeholder {
    height: 180px;
  }

  .event-details {
    padding: 15px;
  }
}

/* Loading State (Optional - if you add lazy loading) */
.events-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Pagination Styles (if you add pagination later) */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 20px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  color: #555;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.pagination a:hover {
  border-color: #667eea;
  color: #667eea;
  background-color: #f5f7ff;
}

.pagination span.current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.pagination a.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Filter Tags (if you want to show active filters) */
.active-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.filter-tag-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: #667eea;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.filter-tag-active button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  margin-left: 5px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.filter-tag-active button:hover {
  opacity: 1;
}

/* Sort Options (if you add sorting) */
.sort-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sort-options label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.sort-options select {
  padding: 8px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* Results Count */
.results-count {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
  font-weight: 500;
}

.results-count strong {
  color: #222;
  font-weight: 700;
}
