/* NAHSE Single Event Styles - Improved UI & Responsive */

/* ============================================
   CRITICAL FOOTER FIX - ULTRA AGGRESSIVE
   ============================================ */

/* Force remove sidebar */
.nahse-single-event #secondary,
.nahse-single-event .sidebar,
.nahse-no-sidebar #secondary,
.nahse-no-sidebar .sidebar,
body.single-nahse_event #secondary,
body.single-nahse_event .sidebar,
body.single-nahse_event aside {
  display: none !important;
}

/* Force full width */
.nahse-single-event #primary,
.nahse-single-event .site-main,
.nahse-no-sidebar #primary,
.nahse-no-sidebar .site-main,
body.single-nahse_event #primary,
body.single-nahse_event .site-main,
body.single-nahse_event #content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Reduced padding and margin to minimize space before footer */
.nahse-single-event-wrapper,
body.single-nahse_event .nahse-single-event-wrapper {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  clear: both !important;
}

/* Removed extra height from clearfix */
.nahse-single-event-wrapper::after,
body.single-nahse_event .nahse-single-event-wrapper::after {
  content: "" !important;
  display: block !important;
  clear: both !important;
  height: 0 !important;
  width: 100% !important;
  visibility: hidden !important;
}

/* Removed excessive margin-top on footer */
body.nahse-single-event footer,
body.nahse-single-event .site-footer,
body.nahse-single-event #colophon,
body.single-nahse_event footer,
body.single-nahse_event .site-footer,
body.single-nahse_event #colophon,
.nahse-single-event + footer,
.nahse-single-event-wrapper + footer {
  clear: both !important;
  margin-top: 0 !important;
  position: relative !important;
  z-index: 9999 !important;
  display: block !important;
  width: 100% !important;
}

/* Reduced padding and margin on content wrapper */
.nahse-event-content-wrapper,
body.single-nahse_event .nahse-event-content-wrapper {
  padding: 0 0 40px 0 !important;
  margin: 0 !important;
  background: #ffffff;
  position: relative !important;
  z-index: 5 !important;
  overflow: visible !important;
  display: block !important;
  clear: both !important;
}

/* Reduced clearfix height */
.nahse-event-content-wrapper::after {
  content: "" !important;
  display: block !important;
  clear: both !important;
  height: 0 !important;
}

/* Reduced margin-bottom on sidebar */
.nahse-event-sidebar,
body.single-nahse_event .nahse-event-sidebar {
  position: relative !important;
  max-height: none !important;
  align-self: start !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
}

/* Container */
.nahse-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sidebar Featured Image Card (1080x1080) */
.nahse-featured-image-card {
  padding: 0 !important;
  overflow: hidden;
  margin-bottom: 25px;
  border-radius: 24px;
}

.nahse-sidebar-featured-image {
  width: 100%;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.nahse-square-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain - no cutting */
  display: block;
  background: #f5f5f5;
}

/* Event Hero - WHITE BACKGROUND */
.nahse-event-hero {
  position: relative;
  background: #ffffff;
  color: #1a1a1a;
  padding: 70px 0 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid #f0f0f0;
}

.nahse-event-hero-content {
  position: relative;
  z-index: 10;
}

/* Status Badge */
.nahse-event-status-badge {
  display: inline-block;
  padding: 10px 24px;
  background: var(--secondary-color, #cca000);
  color: white;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(204, 160, 0, 0.25);
}

.nahse-event-status-badge.past {
  background: #666;
  box-shadow: 0 4px 12px rgba(102, 102, 102, 0.25);
}

/* Event Title */
.nahse-event-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 35px 0;
  max-width: 950px;
  color: var(--primary-color, #003295);
  letter-spacing: -0.5px;
}

/* Quick Info */
.nahse-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  margin-bottom: 40px;
  padding: 25px 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

.nahse-quick-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.nahse-quick-info-item svg {
  color: var(--primary-color, #003295);
  opacity: 1;
  flex-shrink: 0;
}

/* Hero CTA */
.nahse-hero-cta {
  margin-top: 40px;
  /* Removed bottom margin to reduce space */
  margin-bottom: 0;
}

.nahse-register-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 45px;
  background: var(--primary-color, #003295);
  color: white !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(0, 50, 149, 0.25);
  border: none;
}

.nahse-register-btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 50, 149, 0.35);
  background: #002270;
}

.nahse-registration-deadline {
  margin-top: 18px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Reduced margin-bottom on event layout */
.nahse-event-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 50px;
  align-items: start;
  margin-bottom: 0 !important;
  position: relative;
  overflow: visible;
}

/* Reduced margin-bottom on main content */
.nahse-event-main {
  background: white;
  border-radius: 24px;
  padding: 55px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e5;
  margin-bottom: 0 !important;
}

/* Section */
.nahse-section {
  /* Reduced margin between sections */
  margin-bottom: 40px;
}

.nahse-section:first-child {
  /* No top margin on first section */
  margin-top: 0;
}

.nahse-section:last-child {
  margin-bottom: 0;
}

.nahse-section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-color, #003295);
  margin: 0 0 28px 0;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--secondary-color, #cca000);
  position: relative;
}

.nahse-section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary-color, #003295);
}

.nahse-section-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

.nahse-section-content p {
  margin-bottom: 22px;
}

.nahse-section-content p:last-child {
  margin-bottom: 0;
}

/* Speakers */
.nahse-speakers-list {
  display: grid;
  gap: 18px;
}

/* Added speaker grid layout for proper card display */
.nahse-speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.nahse-speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 25px;
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  border-radius: 16px;
  border: 2px solid #e5e5e5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nahse-speaker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--secondary-color, #cca000);
}

.nahse-speaker-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-color, #003295);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.nahse-speaker-icon svg {
  color: white;
}

.nahse-speaker-name {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

.nahse-speaker-item,
.nahse-moderator-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  border-radius: 16px;
  border-left: 5px solid var(--secondary-color, #cca000);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nahse-speaker-item:hover,
.nahse-moderator-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nahse-speaker-item svg,
.nahse-moderator-item svg {
  color: var(--primary-color, #003295);
  flex-shrink: 0;
}

.nahse-speaker-item span,
.nahse-moderator-item span {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
}

/* Sidebar Cards */
.nahse-sidebar-card {
  background: white;
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e5;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.nahse-sidebar-card:hover {
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

/* Removed excessive margin-bottom from last sidebar card */
.nahse-sidebar-card:last-child {
  margin-bottom: 0 !important;
}

.nahse-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color, #003295);
  margin: 0 0 28px 0;
}

/* Event Details Card */
.nahse-detail-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 2px solid #f5f5f5;
}

.nahse-detail-item:first-child {
  padding-top: 0;
}

.nahse-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nahse-detail-icon {
  color: var(--primary-color, #003295);
  flex-shrink: 0;
  margin-top: 3px;
}

.nahse-detail-content {
  flex: 1;
}

.nahse-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 8px;
}

.nahse-detail-value {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.6;
}

.nahse-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--primary-color, #003295);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}

.nahse-map-link:hover {
  color: var(--secondary-color, #cca000);
  gap: 10px;
}

/* Registration Card */
.nahse-registration-card {
  background: linear-gradient(135deg, var(--primary-color, #003295) 0%, #002270 100%);
  color: white;
  border: none;
}

.nahse-registration-card .nahse-card-title {
  color: white;
}

.nahse-register-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  background: var(--secondary-color, #cca000);
  color: white !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nahse-register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  background: #b89000;
}

.nahse-registration-note {
  margin: 18px 0 0 0;
  font-size: 14px;
  text-align: center;
  opacity: 0.95;
  line-height: 1.5;
}

.nahse-past-event-note {
  margin: 0 0 22px 0;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.95;
}

.nahse-browse-btn {
  display: block;
  text-align: center;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.nahse-browse-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Share Card */
.nahse-share-buttons {
  /* 3 columns instead of 4 to match your layout */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.nahse-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Reduced padding for smaller buttons */
  padding: 16px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0;
}

.nahse-share-btn svg {
  width: 24px;
  height: 24px;
}

.nahse-facebook {
  background: #1877f2;
  color: white;
}

.nahse-twitter {
  background: #1da1f2;
  color: white;
}

.nahse-linkedin {
  background: #0077b5;
  color: white;
}

.nahse-email {
  background: #666;
  color: white;
}

.nahse-share-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Back Link */
.nahse-back-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  color: var(--primary-color, #003295) !important;
  text-decoration: none !important;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid #e5e5e5;
}

.nahse-back-link:hover {
  background: var(--primary-color, #003295);
  color: white !important;
  border-color: var(--primary-color, #003295);
}

.nahse-back-link svg {
  transition: transform 0.3s ease;
}

.nahse-back-link:hover svg {
  transform: translateX(-6px);
}

/* Added mobile featured image in hero - hidden on desktop, visible on mobile */
.nahse-hero-featured-image-mobile {
  display: none; /* Hidden on desktop */
}

/* Bottom CTA Card - Register Now Button at End */
.nahse-bottom-cta-card {
  background: var(--secondary-color, #cca000);
  padding: 0 !important;
  border: none;
  box-shadow: 0 6px 30px rgba(204, 160, 0, 0.3);
}

.nahse-bottom-cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(204, 160, 0, 0.4);
}

.nahse-register-btn-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 22px 30px;
  background: transparent;
  color: white !important;
  text-decoration: none !important;
  border-radius: 24px;
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.nahse-register-btn-bottom svg {
  width: 22px;
  height: 22px;
}

.nahse-register-btn-bottom:hover {
  gap: 18px;
}

/* Added styles for venue & location section */
.nahse-location-details {
  display: grid;
  gap: 16px;
}

.nahse-location-item {
  padding: 18px 22px;
  background: #f8f9fc;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color, #003295);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.nahse-location-item strong {
  color: var(--primary-color, #003295);
  font-weight: 700;
  display: inline-block;
  min-width: 100px;
}

/* Added styles for ticket & pricing section */
.nahse-pricing-details {
  display: grid;
  gap: 16px;
}

.nahse-pricing-item {
  padding: 18px 22px;
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  border-radius: 12px;
  border-left: 4px solid var(--secondary-color, #cca000);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.nahse-pricing-item strong {
  color: var(--primary-color, #003295);
  font-weight: 700;
  display: inline-block;
  min-width: 100px;
}

/* Added styles for organizer information section */
.nahse-organizer-details {
  display: grid;
  gap: 16px;
}

.nahse-organizer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #f8f9fc;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  transition: all 0.3s ease;
}

.nahse-organizer-item:hover {
  background: #ffffff;
  border-color: var(--primary-color, #003295);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nahse-organizer-item svg {
  color: var(--primary-color, #003295);
  flex-shrink: 0;
}

.nahse-organizer-item a {
  color: var(--primary-color, #003295);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nahse-organizer-item a:hover {
  color: var(--secondary-color, #cca000);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .nahse-event-layout {
    grid-template-columns: 1fr 380px;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .nahse-event-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .nahse-event-title {
    font-size: 42px;
  }

  .nahse-event-sidebar {
    max-width: 600px;
    margin: 0 auto !important;
  }
}

@media (max-width: 768px) {
  .nahse-single-event-wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .nahse-event-hero {
    padding: 50px 0 40px;
    margin-bottom: 30px;
  }

  .nahse-event-title {
    font-size: 32px;
  }

  .nahse-quick-info {
    flex-direction: column;
    gap: 18px;
    padding: 20px 0;
  }

  .nahse-hero-cta {
    margin-top: 30px;
    margin-bottom: 0;
  }

  .nahse-event-main {
    padding: 35px 28px;
    border-radius: 20px;
  }

  .nahse-section-title {
    font-size: 24px;
  }

  .nahse-section {
    margin-bottom: 30px;
  }

  /* Increased padding on sidebar cards for better mobile appearance */
  .nahse-sidebar-card {
    padding: 32px 24px;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  /* Hide Event Details card on mobile */
  .nahse-event-details-card {
    display: none !important;
  }

  /* Hide the sidebar featured image on mobile - only show hero image */
  .nahse-featured-image-card {
    display: none !important;
  }

  /* Reorder sidebar items on mobile */
  .nahse-event-sidebar {
    display: flex;
    flex-direction: column;
  }

  .nahse-registration-card {
    order: 1;
  }

  .nahse-share-card {
    order: 2;
    /* Reduced top margin to minimize space between cards */
    margin-top: 0 !important;
  }

  /* Smaller share buttons on mobile with more padding */
  .nahse-share-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .nahse-share-btn {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .nahse-share-btn svg {
    width: 24px;
    height: 24px;
  }

  /* Show mobile featured image in hero before register button */
  .nahse-hero-featured-image-mobile {
    display: block;
    margin: 30px 0 25px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .nahse-mobile-event-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px;
  }

  /* Force speaker cards to display one per row on mobile */
  .nahse-speakers-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .nahse-speaker-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nahse-single-event-wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .nahse-event-hero {
    padding: 35px 0 30px;
    margin-bottom: 20px;
  }

  .nahse-event-status-badge {
    padding: 8px 18px;
    font-size: 11px;
  }

  .nahse-event-title {
    font-size: 26px;
  }

  .nahse-quick-info-item {
    font-size: 14px;
  }

  .nahse-hero-cta {
    margin-top: 25px;
    margin-bottom: 0;
  }

  .nahse-hero-featured-image-mobile {
    margin: 25px 0 20px 0;
    border-radius: 16px;
  }

  .nahse-mobile-event-image {
    border-radius: 16px;
  }

  .nahse-event-main {
    padding: 28px 22px;
  }

  /* Increased horizontal padding on buttons for better mobile look */
  .nahse-register-btn-hero {
    padding: 18px 40px;
    font-size: 17px;
    width: 100%;
    justify-content: center;
  }
}
