/* 
 * Dalton DeHart Photographic Foundation - Main Stylesheet
 * Modern design with animations and interactive elements
 * LGBT+ themed with tasteful vibrant accents
 */

/* ===== Alert Banner ===== */
.alert-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  margin-bottom: 0;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-banner.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-bottom: 2px solid #ffc107;
  color: #856404;
}

.alert-banner.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-bottom: 2px solid #dc3545;
  color: #721c24;
}

.alert-banner.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border-bottom: 2px solid #17a2b8;
  color: #0c5460;
}

.alert-banner.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-bottom: 2px solid #28a745;
  color: #155724;
}

/* Adjust navbar when banner is present */
body.has-alert-banner .navbar {
  top: 56px; /* Height of the alert banner */
}

body.has-alert-banner .main-content {
  padding-top: 120px; /* navbar height + banner height */
}

/* ===== Base Styles ===== */
:root {
  /* LGBT+ Pride Rainbow Colors - More muted versions */
  --rainbow-red: #d32f2f;
  --rainbow-orange: #f57c00;
  --rainbow-yellow: #fbc02d;
  --rainbow-green: #388e3c;
  --rainbow-blue: #1976d2;
  --rainbow-purple: #7b1fa2;
  
  /* Main Theme Colors */
  --primary-color: #0066cc;
  --primary-dark: #004d99;
  --primary-light: #3399ff;
  --secondary-color: #f8f9fa;
  --accent-color: var(--rainbow-orange);
  --text-color: #333;
  --text-light: #666;
  --white: #fff;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 6px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Subtle Rainbow Gradient */
  --rainbow-gradient: linear-gradient(
    to right,
    var(--rainbow-red),
    var(--rainbow-orange),
    var(--rainbow-yellow),
    var(--rainbow-green),
    var(--rainbow-blue),
    var(--rainbow-purple)
  );
}

body {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  animation: gradient-shift 15s ease infinite;
}

h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.5rem;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from { 
    transform: translateX(-30px);
    opacity: 0;
  }
  to { 
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from { 
    transform: translateX(30px);
    opacity: 0;
  }
  to { 
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

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

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  animation: gradient-shift 15s ease infinite;
}

.hero-content {
  animation: fadeIn var(--transition-slow);
}

.hero-title {
  animation: slideUp var(--transition-medium);
}

.hero-subtitle {
  animation: slideUp var(--transition-medium) 0.2s backwards;
}

.cta-button {
  animation: slideUp var(--transition-medium) 0.4s backwards;
  transition: all var(--transition-fast);
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 500;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-light);
}

/* ===== Search Widget ===== */
.search-widget {
  animation: slideUp var(--transition-medium) 0.6s backwards;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid #ddd;
  border-radius: 8px;
}

.search-widget:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ===== Stats Section ===== */
.stats-section {
  position: relative;
  overflow: hidden;
}

.stat-card {
  animation: fadeIn var(--transition-medium);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border-top: 3px solid var(--primary-color);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
  color: var(--primary-color);
  font-weight: bold;
}

.stat-number::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  animation: gradient-shift 15s ease infinite;
}

.stat-card:hover .stat-number::after {
  transform: scaleX(1);
}

/* Stat number counting animation */
.stat-number.counting {
  animation: numberPulse 0.5s ease-out infinite alternate;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  transform-origin: center;
}

@keyframes numberPulse {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Enhanced stat card effects */
.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transform: translate(-100%, -100%) rotate(45deg);
  transition: all 1s ease;
}

.stat-card.scroll-reveal.visible::before {
  opacity: 0.8;
  transform: translate(0, 0) rotate(45deg);
}

.stat-card.scroll-reveal.visible .stat-number::after {
  transform: scaleX(1);
}

/* ===== Featured Events ===== */
.featured-section {
  position: relative;
}

.featured-title {
  animation: fadeIn var(--transition-medium);
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.featured-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  animation: gradient-shift 15s ease infinite;
}

.featured-item {
  animation: fadeIn var(--transition-medium);
  transition: all var(--transition-fast);
  border-radius: 10px;
  overflow: hidden;
}

.featured-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.featured-item img {
  transition: transform var(--transition-medium);
}

.featured-item:hover img {
  transform: scale(1.1);
}

.featured-overlay {
  transition: background var(--transition-fast);
}

.featured-item:hover .featured-overlay {
  background: linear-gradient(transparent, rgba(117, 7, 135, 0.7));
}

/* ===== Like Button Animation ===== */
.like-button-image {
  transition: all var(--transition-medium);
}

.like-button-image:hover {
  animation: pulse 1s infinite;
}

.like-button-image.down {
  animation: rotate 0.5s ease;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .search-widget {
    padding: 20px;
  }
  
  .stat-card {
    margin-bottom: 20px;
  }
}

/* ===== Scroll Animations ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-medium);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Loading Animations ===== */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(117, 7, 135, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Footer Enhancements ===== */
footer {
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  animation: gradient-shift 15s ease infinite;
}

/* ===== Navigation Enhancements ===== */
.navbar {
  transition: all var(--transition-fast);
  background-color: white;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-link {
  position: relative;
  color: var(--text-color);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
  animation: gradient-shift 15s ease infinite;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* User Menu Styles */
.user-menu {
  display: flex;
  align-items: center;
  padding: 8px 15px !important;
  color: var(--text-color) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.user-menu:hover {
  color: var(--text-light) !important;
  transform: none;
  background-color: transparent;
}

.user-menu::after {
  display: block;
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
  animation: gradient-shift 15s ease infinite;
}

.user-menu:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.dropdown-menu {
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: none;
  padding: 10px 0;
  min-width: 200px;
  margin-top: 10px;
}

.dropdown-item {
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(0, 102, 204, 0.1);
  color: var(--primary-color);
}

.dropdown-divider {
  margin: 8px 0;
  opacity: 0.1;
}

.login-link {
  display: flex;
  align-items: center;
  padding: 8px 15px !important;
  color: var(--text-color) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.login-link:hover {
  color: var(--primary-light) !important;
  transform: none;
  background-color: transparent;
}

.login-link::after {
  display: block;
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
  animation: gradient-shift 15s ease infinite;
}

.login-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== Button Enhancements ===== */
.btn {
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Sticky Footer Implementation */
html {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.main-content {
    flex: 1 0 auto;
    padding-top: 76px; /* Account for fixed navbar */
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    width: 100%;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--rainbow-gradient);
    background-size: 200% auto;
    animation: gradient-shift 15s ease infinite;
}

/* Donate Button Styles */
.navbar .donate-btn {
    background: linear-gradient(135deg, 
        var(--rainbow-red), 
        var(--rainbow-orange), 
        var(--rainbow-yellow), 
        var(--rainbow-green), 
        var(--rainbow-blue), 
        var(--rainbow-purple));
    background-size: 200% auto;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 25px;
    margin-left: 10px;
    transition: all 0.3s ease;
    animation: gradient-shift 15s ease infinite;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.navbar .donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.navbar .donate-btn::after {
    display: none;
}

.footer .donate-link {
    color: #0066cc;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer .donate-link:hover {
    color: var(--rainbow-red);
    text-decoration: none;
} 

.hero-section {
  position: relative;
  background-color: #1a1a2e;
  color: white;
  padding: 120px 0 80px;
  margin-bottom: 40px;
  margin-top:-10px;
  overflow: hidden;
}

/* Art Deco Pattern Background */
@keyframes aurora {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg, #00dbde, #fc00ff, #00dbde);
  background-size: 600% 600%;
  animation: aurora 30s ease infinite;
  opacity: 0.6;
  mix-blend-mode: screen;
  z-index: 1;
}

/* LGBT+ Rainbow Accent Elements */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      /* Rainbow gradient overlay with low opacity */
      linear-gradient(
          135deg,
          rgba(211, 47, 47, 0.15),
          rgba(245, 124, 0, 0.15),
          rgba(251, 192, 45, 0.15),
          rgba(56, 142, 60, 0.15),
          rgba(25, 118, 210, 0.15),
          rgba(123, 31, 162, 0.15)
      );
  z-index: 1;
  pointer-events: none;
}

/* Photography-themed decorative elements */


.hero-section .camera-aperture {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.hero-section .camera-aperture::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-section .camera-aperture::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
  color: #f8f9fa;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(
      to right,
      #E40303,
      #FF8C00,
      #FFED00,
      #008026,
      #004DFF,
      #750787
  );
  background-size: 200% auto;
  animation: gradient-shift 15s ease infinite;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background-color: #2c3e50;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
  );
  transition: all 0.6s ease;
}

.cta-button:hover {
  background-color: #34495e;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.cta-button:hover::before {
  left: 100%;
}

.search-widget {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 100%;
}

.search-widget h3 {
  color: #333;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
}

.search-widget h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
      to right,
      #d32f2f,
      #f57c00,
      #fbc02d,
      #388e3c,
      #1976d2,
      #7b1fa2
  );
  background-size: 200% auto;
  animation: gradient-shift 15s ease infinite;
}

.search-widget .form-label {
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
}

.search-widget .form-select {
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 10px 15px;
  height: auto;
  background-color: #fff;
  color: #333;
}

.search-widget .form-select:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

/* Select2 Result Styling */
.select2-result-event {
  padding: 8px 0;
}

.select2-result-event .event-name {
  font-weight: 600;
  color: #333;
}

.select2-result-event .event-date {
  font-size: 0.85rem;
  color: #666;
}

.select2-result-person {
  padding: 8px 0;
}

.select2-result-person .person-name {
  font-weight: 600;
  color: #333;
}

.select2-result-person .person-years {
  font-size: 0.85rem;
  color: #666;
}

.stats-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border-top: 3px solid #2c3e50;
}

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

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

.stat-label {
  font-size: 1.1rem;
  color: #666;
}

.featured-section {
  padding: 60px 0;
}

.featured-title {
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: 600;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.featured-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.featured-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.featured-item .image-container {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
}

.featured-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px;
  color: white;
}

.featured-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.featured-date {
  font-size: 0.9rem;
  opacity: 0.8;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 50px;
  border-radius: 25px;
  border: 1px solid #ddd;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 50px;
  padding-left: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px;
}

/* Browse All Events button */
.btn-outline-primary.browse-events {
  background-color: #f0f7ff;
  color: #0066cc;
  border-color: #0066cc;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-primary.browse-events:hover {
  background-color: #0066cc;
  color: white;
  border-color: #0066cc;
}

.btn-outline-primary.browse-events i {
  margin-right: 8px;
}

/* ---- .grid-item ---- */

.grid-sizer,
.photo {
width: 33.333%;
}

.photo {
float: left;
}

.photo img {
display: block;
max-width: 100%;
}


.event-title {
  width: 100%;
}

.image img:hover {opacity: 0.7;}

.like-button-image{
  -moz-transition: all .5s linear;
  -webkit-transition: all .5s linear;
  transition: all .5s linear;
}

.like-button-image.down{
  -ms-transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}

/* Loading States */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 10px;
  height: 100px;
  margin-bottom: 30px;
}

@keyframes loading {
  0% {
      background-position: 200% 0;
  }
  100% {
      background-position: -200% 0;
  }
}

.loading-text {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-top: 10px;
}

.featured-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.featured-loading-item {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 10px;
  height: 250px;
}

.events-section {
  padding: 60px 0;
}

.event-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

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

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f0f0f0;
}

.event-content {
  padding: 20px;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.event-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.event-stats {
  display: flex;
  justify-content: space-between;
  color: #2c3e50;
  font-size: 0.9rem;
}

.org-stats {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.org-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.org-count {
  color: #2c3e50;
  font-size: 0.9rem;
}

.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.lazy-load.loaded {
  opacity: 1;
}

.events-section h2 {
  color: #2c3e50;
  font-weight: 600;
}