/* 
 * Pellegrin Days APS - Component Stylesheet
 * Custom widgets, cards, timelines, and specialized styling
 */

/* Hero Section */
.hero {
  padding: 100px 0 80px 0;
  background: radial-gradient(circle at 80% 20%, var(--accent-light) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, var(--primary-light) 0%, transparent 30%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 16px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: 30px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(90, 15, 27, 0.2);
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--primary);
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--card-bg);
  border: 4px solid var(--card-bg);
  transition: var(--transition);
}

.hero-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(90, 15, 27, 0.15);
}

.hero-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 40px;
  text-align: center;
}

.hero-image-placeholder i {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-image-placeholder h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hero-image-placeholder p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Donation Widget Component */
.donation-widget {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 480px;
  margin: 0 auto;
}

.donation-widget h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.donation-widget p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.donation-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.preset-btn {
  background-color: var(--bg-color);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.preset-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(90, 15, 27, 0.2);
}

.donation-custom-input {
  position: relative;
  margin-bottom: 24px;
}

.donation-custom-input label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-currency-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-currency-wrapper span {
  position: absolute;
  left: 20px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.custom-amount-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary);
  background-color: var(--bg-color);
  transition: var(--transition);
}

.custom-amount-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--card-bg);
}

.donation-widget .btn-donate {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.donation-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
}

/* Impact Metrics Grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.impact-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.impact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px auto;
}

.impact-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
}

.impact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pillars Section */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pillar-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.pillar-illustration {
  height: 200px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 3rem;
  border-bottom: 4px solid var(--accent);
}

.pillar-info {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-info h3 {
  font-size: 1.35rem;
}

.pillar-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Membership CTA Section */
.membership-cta {
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.membership-text h2 {
  color: var(--text-light);
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.membership-text p {
  color: var(--border-color);
  font-size: 1.1rem;
}

.membership-action {
  justify-self: end;
}

.membership-action .btn {
  white-space: nowrap;
}

/* Sponsors Carousel & Infinite Ticker */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sponsors-ticker-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0;
}

/* Linear scrolling animation track */
.sponsors-ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
}

.sponsors-ticker-track.playing {
  animation: scroll-ticker 25s linear infinite;
}

.sponsors-ticker-track > div {
  display: flex;
  flex-shrink: 0;
}

.sponsors-ticker-track:hover,
.sponsors-ticker-container:hover .sponsors-ticker-track {
  animation-play-state: paused !important;
}

.sponsors-ticker-track .sponsor-box {
  flex-shrink: 0;
}

@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.sponsor-box {
  background-color: var(--card-bg);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: var(--transition);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  box-sizing: border-box;
}

.sponsor-box:hover {
  opacity: 1;
  border-color: var(--accent);
  background-color: var(--accent-light);
  color: var(--accent);
}

.sponsor-box img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

/* Sponsor Tiers specific styling */
.sponsor-box.tier1 {
  width: 280px;
  border-style: dashed;
  border-color: var(--border-color);
  background-color: var(--card-bg);
}
.sponsor-box.tier1 img {
  max-height: 85px;
}

.sponsor-box.tier2 {
  width: 220px;
  border-style: dashed;
  border-color: var(--border-color);
  background-color: var(--card-bg);
}
.sponsor-box.tier2 img {
  max-height: 70px;
}

.sponsor-box.tier3 {
  width: 160px;
  border-style: dashed;
  border-color: var(--border-color);
  background-color: var(--card-bg);
  opacity: 0.85;
}
.sponsor-box.tier3 img {
  max-height: 55px;
}

/* Timeline Component (Chi Siamo) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-light);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--card-bg);
  border: 4px solid var(--accent);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition);
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 24px;
  background-color: var(--card-bg);
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.timeline-content .timeline-year {
  display: inline-block;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Values Grid (Chi Siamo) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.value-card {
  background-color: var(--card-bg);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 24px;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.value-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.value-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.value-info h3 {
  font-size: 1.25rem;
}

.value-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Team Grid (Chi Siamo) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.team-image-placeholder {
  height: 240px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 4rem;
  border-bottom: 3px solid var(--accent);
}

.team-info {
  padding: 24px;
  text-align: center;
}

.team-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.team-info .team-role {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 12px;
}

.team-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* News List & Empty State */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.blog-image-placeholder {
  height: 200px;
  background-color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 3rem;
}

.blog-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-meta {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

.blog-content h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.blog-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-content .read-more {
  margin-top: auto;
  align-self: flex-start;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-content .read-more:hover {
  color: var(--accent-hover);
}

.empty-state {
  text-align: center;
  padding: 60px 40px;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Contact Page Components */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card {
  background-color: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form-card {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--bg-color);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--card-bg);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 24px;
}

.form-checkbox input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.form-feedback {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(90, 15, 27, 0.2);
  display: block;
}

.form-feedback.error {
  background-color: #fdf2f2;
  color: #c53030;
  border: 1px solid #feb2b2;
  display: block;
}

.map-card {
  margin-top: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 350px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--primary-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-align: center;
  padding: 20px;
}

.map-placeholder i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.map-placeholder h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

/* Responsive Styles for Components */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-image-wrapper {
    max-width: 550px;
    margin: 0 auto;
  }
  
  .impact-grid, .pillars-grid, .team-grid, .blog-grid, .sponsors-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .membership-cta {
    grid-template-columns: 1fr;
    padding: 40px;
    text-align: center;
  }
  
  .membership-action {
    justify-self: center;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-item::after {
    left: 21px;
    right: auto;
  }
  
  .timeline-item.right::after {
    left: 21px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .donation-widget {
    padding: 24px;
  }
  
  .donation-presets {
    grid-template-columns: 1fr;
  }
  
  .impact-grid, .pillars-grid, .team-grid, .blog-grid, .sponsors-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-card {
    padding: 24px;
  }
}

/* Gallery Infinite Ticker */
.gallery-ticker-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 15px 0;
}

.gallery-ticker-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-ticker 30s linear infinite;
}

.gallery-ticker-track:hover {
  animation-play-state: paused;
}

.gallery-ticker-track .gallery-img-box {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.gallery-ticker-track .gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 576px) {
  .gallery-ticker-track .gallery-img-box {
    width: 280px !important;
    height: 210px !important;
  }
}

/* Modal Gallery Grid Styles */
.modal-gallery-grid .gallery-img-box {
  width: 100%;
  height: 145px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  position: relative;
  transition: var(--transition);
}

.modal-gallery-grid .gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-gallery-grid .gallery-img-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.modal-gallery-grid .gallery-img-box:hover img {
  transform: scale(1.05);
}
/* Founders Slider Component */
.founders-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Safari and Chrome */
}
.founders-slider {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.slider-nav-btn:hover {
  background-color: var(--primary) !important;
  color: var(--text-light) !important;
  border-color: var(--primary) !important;
  transform: translateY(-50%) scale(1.05) !important;
}
.slider-nav-btn:active {
  transform: translateY(-50%) scale(0.95) !important;
}
.slider-nav-btn:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}
.founder-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ==========================================================================
   Blog / News Section ("Novità")
   ========================================================================== */

/* Grid layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card Styling */
.blog-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* Image container with zoom hover */
.blog-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-color);
}

.blog-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover .blog-card-img-wrapper img {
  transform: scale(1.06);
}

/* Date badge overlay */
.blog-card-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent);
  color: var(--text-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

/* Card content */
.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.4;
}

.blog-card-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

.blog-card-more-btn {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: var(--transition);
}

.blog-card-more-btn:hover {
  color: var(--primary);
}

.blog-card-more-btn i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.blog-card-more-btn:hover i {
  transform: translateX(4px);
}

/* Floating Add Action Button */
.floating-add-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: var(--accent);
  color: var(--text-light);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(183, 38, 67, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.floating-add-btn:hover {
  background-color: var(--accent-hover);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(183, 38, 67, 0.5);
}

/* Admin delete button on card */
.blog-card-delete-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(220, 53, 69, 0.95);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: var(--transition);
}

.blog-card-delete-btn:hover {
  background-color: #dc3545;
  transform: scale(1.1);
}

/* Detail modal styles override / specificity */
.blog-detail-header-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.blog-detail-meta {
  display: flex;
  gap: 15px;
  color: var(--accent);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-detail-content-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  text-align: left;
}

.blog-detail-content-text p {
  margin-bottom: 16px;
}

/* ==========================================================================
   Founders Slider Component
   ========================================================================== */
.founders-container {
  padding: 0 50px;
}

.founders-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 50px;
}

.founders-slider-wrapper .slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--card-bg);
  color: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: var(--transition);
}

.founders-slider-wrapper .slider-nav-btn.prev {
  left: 0;
}

.founders-slider-wrapper .slider-nav-btn.next {
  right: 0;
}

.founders-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 15px 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;  /* IE and Edge */
}

.founders-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Safari and Chrome */
}

.founder-card {
  scroll-snap-align: start;
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 340px;
  flex-shrink: 0;
  transition: var(--transition);
}

.founder-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Responsive styles for Founders Slider */
@media (max-width: 768px) {
  .founders-container {
    padding: 0 20px;
  }
  
  .founders-slider-wrapper {
    padding: 10px 0;
  }
  
  .founders-slider-wrapper .slider-nav-btn {
    display: none; /* Hide buttons on mobile in favor of touch swipe */
  }
  
  .founders-slider {
    gap: 16px;
    padding: 10px 0;
  }
  
  .founder-card {
    width: 290px;
    padding: 20px;
  }
}

/* Metadata & Form checkbox font overrides */
.blog-card-meta-loc {
  font-family: var(--font-headings);
}

.form-checkbox {
  font-family: var(--font-body) !important;
}
