/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #442d72;
}

.hidden {
    display: none !important;
}

/* Background gradient */
.bg-gradient {
    background: linear-gradient(135deg, #f8f4ff 0%, #ffffff 50%, #f8f4ff 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 2rem;
    width: 2rem;
    margin-right: 0.75rem;
}

.logo-text h1 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.2;
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 0.25rem;
}

.dropdown-btn {
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    margin-left: 0.25rem;
    font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.nav-link-mobile {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
}

.nav-link-mobile:hover {
    color: #2563eb;
}

.nav-link-mobile.active {
    color: #2563eb;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #442d72;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-title h2 {
        font-size: 3rem;
    }
}

.page-title p {
    font-size: 1.25rem;
    color: #442d72;
    max-width: 48rem;
    margin: 0 auto;
}

/* Events Section */
.events-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #442d72;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.text-amber-400 {
    --tw-text-opacity: 1;
    color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}

.fill-current {
    fill: currentcolor;
}

.section-title i {
    color: #442d72; /* Updated purple color for section title icons */
    margin-right: 0.5rem;
}

.calendar-icon {
  margin-right: 0.5rem;
  color: #442d72; /* Updated purple color */
}

/* Updated purple color for all FontAwesome icons on events page */
.fas, .fa {
  color: #442d72; /* Updated purple color */
}

.detail-icon {
  margin-right: 0.5rem;
  color: #442d72; /* Updated purple color */
}

/* Events Grid */
.events-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Event Card */
.event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #442d72;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.event-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-body {
    flex-grow: 1;
}

.event-details {
    margin-top: auto;
}

.event-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-title a {
    color: #442d72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #553789;
}

.edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    background: #f3f4f6;
    transition: background-color 0.3s ease;
}

.edit-link:hover {
    background: #e5e7eb;
}

.edit-icon {
    font-size: 16px;
    line-height: 1;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.detail-icon {
    font-size: 16px;
    color: #442d72;
    opacity: 0.8;
}

.event-price {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #442d72;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.read-more-btn {
    display: inline-block;
    flex: 1;
    background: transparent;
    color: #442d72;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #442d72;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.read-more-btn:hover {
    background: #442d72;
    color: white;
}

.register-btn {
    display: inline-block;
    flex: 1;
    background: #442d72;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background: #553789;
}

@media (max-width: 768px) {
    .event-image {
        height: 180px;
    }
    
    .event-content {
        padding: 12px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-price {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .read-more-btn,
    .register-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Testimonials Section */
.testimonials-section {
  background: white;
  padding: 4rem 0;
  margin: 4rem 0;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 1rem;
  background: linear-gradient(135deg, #f8f4ff 0%, white 100%);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-body .field--name-body { 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-weight: 600;
  color: #442d72;
  font-size: 1.125rem;
}

.author-role {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Testimonials Block Title */
.block-views-blockevents-block-1 h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #442d72;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 1rem 0;
    margin: 1rem 0;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .author-image {
    width: 48px;
    height: 48px;
  }

  .author-name {
    font-size: 1rem;
  }
}

/* Newsletter Section */
.newsletter-section,
.mailchimp-newsletter-section {
    background: linear-gradient(135deg, #442d72 0%, #553789 50%, #442d72 100%);
    color: white;
    text-align: center;
    padding: 2rem 3rem 2.5rem 3rem;
    border-radius: 1rem;
    margin-top: 0rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-section h3,
.mailchimp-newsletter-title { 
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #ffffff;
    margin-top: 0px;
}

.newsletter-section p,
.mailchimp-newsletter-description {
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 0.5;
}

.newsletter-section form,
.mailchimp-newsletter-form,
#mailchimp-signup-subscribe-block-newsletter-subscription-form {
    max-width: 45rem;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

/* Target the actual rendered structure */
#mailchimp-signup-subscribe-block-newsletter-subscription-form.w3-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
}

.mailchimp-newsletter-mergefields {
    flex: 1;
    display: flex;
    margin: 0 !important;
    padding: 0 !important;
}

.mailchimp-newsletter-mergefields .form-item {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
}

#edit-mergevars-email {
    flex: 1;
    padding: 1rem 1.5rem !important;
    border-radius: 9999px !important;
    border: none !important;
    color: #1f2937 !important;
    background: white !important;
    outline: none;
    width: 100% !important;
    font-size: 1rem !important;
    margin: 0 !important;
}

#edit-actions {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

#mailchimp-signup-subscribe-block-newsletter-subscription-form-wrapper-edit-submit {
    background: white !important;
    color: #442d72 !important;
    padding: 0.35rem 2.5rem !important;
    border: none !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 1rem !important;
    margin: 0 !important;
}

#mailchimp-signup-subscribe-block-newsletter-subscription-form-wrapper-edit-submit:hover {
    color: #f3f4f6 !important;
    background: #442d72 !important;
    animation: none;
}

.newsletter-section #edit-email {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 9999px !important;
    border: none !important;
    color: #1f2937 !important;
    background: white !important;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.newsletter-section #edit-email::placeholder {
    color: #6B7280 !important;
}

.newsletter-section #edit-submit {
    background: white !important;
    color: #442d72 !important;
    padding: 1rem 2.5rem !important;
    border: none !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.newsletter-section #edit-submit:hover {
    background: #f3f4f6 !important;
    color: #442d72 !important;
    transform: scale(1.05);
}

/* Mailchimp form specific styles */
.mailchimp-newsletter-form .form-item {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.mailchimp-newsletter-form label,
.mailchimp-newsletter-section label {
    display: none !important;
}

/* Hide error messages in newsletter section */
.mailchimp-newsletter-section .form-item-mergevars-email .form-required {
    display: none !important;
}

.mailchimp-newsletter-section .messages,
.mailchimp-newsletter-section .form-item__error-message {
    display: none !important;
}

.mailchimp-newsletter-form .form-item-mergevars-email {
    flex: 1;
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.mailchimp-newsletter-form .mergevars {
    display: flex;
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row;
    align-items: center;
}

.mailchimp-newsletter-form input[type="email"],
.mailchimp-newsletter-form input[type="text"] {
    flex: 1;
    padding: 1rem 1.5rem !important;
    border-radius: 9999px !important;
    border: none !important;
    color: #1f2937 !important;
    background: white !important;
    outline: none;
    width: 100% !important;
    font-size: 1rem !important;
    margin: 0 !important;
}

.mailchimp-newsletter-form input::placeholder {
    color: #6B7280 !important;
}

.mailchimp-newsletter-form .form-actions {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.mailchimp-newsletter-form .form-actions .form-item {
    margin: 0 !important;
}

.mailchimp-newsletter-form input[type="submit"],
.mailchimp-newsletter-form button[type="submit"] {
    background: white !important;
    color: #442d72 !important;
    padding: 1rem 2.5rem !important;
    border: none !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 1rem !important;
    margin: 0 !important;
}

.mailchimp-newsletter-form input[type="submit"]:hover,
.mailchimp-newsletter-form button[type="submit"]:hover {
    background: #f3f4f6 !important;
    color: #442d72 !important;
    transform: scale(1.05);
}

/* Force horizontal layout on desktop */
@media (min-width: 641px) {
    .mailchimp-newsletter-form {
        flex-direction: row !important;
    }

    .mailchimp-newsletter-form .mergevars {
        flex-direction: row !important;
    }

    .mailchimp-newsletter-form .form-actions {
        flex-direction: row !important;
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .newsletter-section,
    .mailchimp-newsletter-section {
        padding: 3rem 1.5rem;
    }

    .newsletter-section h3,
    .mailchimp-newsletter-title {
        font-size: 1.75rem;
    }

    .newsletter-section p,
    .mailchimp-newsletter-description {
        font-size: 1rem;
    }

    .newsletter-section form,
    .mailchimp-newsletter-form {
        flex-direction: column !important;
        gap: 0.75rem;
    }

    .mailchimp-newsletter-form .mergevars,
    .mailchimp-newsletter-form .form-actions {
        flex-direction: column !important;
        width: 100%;
    }

    .newsletter-section #edit-email,
    .newsletter-section #edit-submit,
    .mailchimp-newsletter-form input[type="email"],
    .mailchimp-newsletter-form input[type="submit"] {
        width: 100% !important;
    }
}

@media (min-width: 640px) {
    .newsletter-form,
    .stay-updated-form {
        flex-direction: row;
        gap: 1rem;
    }
    .w-5 {
        width: 1.5rem;
    }

    .h-5 {
        height: 1.5rem;
    }

    .sm\:h-4 {
        height: 1rem;
    }

    .sm\:w-4 {
        width: 1rem;
    }
}

/* Newsletter form wrapper styles */
.newsletter-form,
.stay-updated-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 40rem;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    background: white;
    color: #111827;
}

.email-input::placeholder {
    color: #6B7280;
}

.email-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
}

.subscribe-btn {
    background: white;
    color: #442d72;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 1rem;
}

.subscribe-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

/* Override Drupal form wrappers for newsletter form */
.newsletter-section .form-item,
.newsletter-form .form-item,
.stay-updated-form .form-item {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.newsletter-section .form-item-email,
.newsletter-form .form-item-email,
.stay-updated-form .form-item-email {
    flex: 1;
    margin: 0 !important;
}

.newsletter-section .form-item-submit,
.newsletter-form .form-item-submit,
.stay-updated-form .form-item-submit {
    margin: 0 !important;
    flex-shrink: 0;
}

.newsletter-form input[type="email"],
.newsletter-form input.email-input,
.stay-updated-form input[type="email"],
.stay-updated-form input.email-input {
    margin: 0;
    width: 100%;
    border: none !important;
    border-radius: 9999px !important;
    background: white !important;
    padding: 1rem 1.5rem !important;
}

.newsletter-form input[type="email"]::placeholder,
.newsletter-form input.email-input::placeholder,
.stay-updated-form input[type="email"]::placeholder,
.stay-updated-form input.email-input::placeholder {
    color: #6B7280 !important;
}

.newsletter-form .form-item-submit input[type="submit"],
.newsletter-form input.subscribe-btn,
.newsletter-form button.subscribe-btn,
.stay-updated-form .form-item-submit input[type="submit"],
.stay-updated-form input.subscribe-btn,
.stay-updated-form button.subscribe-btn {
    margin: 0;
    width: auto;
    background: white !important;
    color: #442d72 !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    font-size: 1rem !important;
}

/* Newsletter messages styling */
.newsletter-messages {
    margin-bottom: 1rem;
    width: 100%;
}

.newsletter-messages .messages {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.newsletter-messages .messages--status {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.newsletter-messages .messages--error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

.newsletter-messages .messages--warning {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
}

.newsletter-form .form-item-submit input[type="submit"]:hover,
.newsletter-form input.subscribe-btn:hover,
.newsletter-form button.subscribe-btn:hover,
.stay-updated-form .form-item-submit input[type="submit"]:hover,
.stay-updated-form input.subscribe-btn:hover,
.stay-updated-form button.subscribe-btn:hover {
    background: #f3f4f6 !important;
    transform: scale(1.05);
}

/* Pagination — same as practitioners search page */
.pager {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

@media (min-width: 768px) {
    .pagination {
        gap: 0.75rem;
    }
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 3rem;
    color: #9b8bc4;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    white-space: nowrap;
    box-shadow: none;
    text-decoration: none;
    min-width: 140px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 768px) {
    .pagination-btn {
        color: #442d72;
        padding: 0.5rem 0;
        background: white;
        border-width: 2px;
        border-style: solid;
        border-color: #e5e7eb;
        border-radius: 0.5rem;
        gap: 0.5rem;
        font-weight: 500;
    }
}

.pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    color: #442d72;
    border-color: #442d72;
    box-shadow: none;
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: white;
    border-color: #e5e7eb;
    color: #d1d5db;
}

.pagination-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

@media (min-width: 768px) {
    .pagination-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0.5rem;
}

@media (min-width: 768px) {
    .pagination-numbers {
        gap: 0.5rem;
        margin: 0 0.75rem;
    }
}

.pagination-number {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 768px) {
    .pagination-number {
        min-width: 2.75rem;
        height: 2.75rem;
        font-size: 0.9rem;
    }
}

.pagination-number:hover {
    background: #f9fafb;
    color: #442d72;
    border-color: #442d72;
    box-shadow: 0 2px 4px rgba(68, 45, 114, 0.15);
}

.pagination-number.active {
    background: #442d72;
    color: white;
    border-color: #442d72;
    box-shadow: 0 2px 4px rgba(68, 45, 114, 0.2);
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
    user-select: none;
}

@media (min-width: 768px) {
    .pagination-ellipsis {
        font-size: 1.125rem;
        padding: 0 0.625rem;
    }
}

/* Visually hidden elements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
} 

/* Remove background gradient - clean background like reference */
.path-events #main-container {
  width: 100%;
  background: transparent;
  min-height: 100vh;
}

/* Remove background gradient for events page */
.path-events .bg-gradient,
.path-events body {
  background: transparent;
  min-height: 100vh;
}

/* Clean background for main content */
.path-events .main-content {
  background: transparent;
  padding: 3rem 0rem;
}
@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Remove the problematic wrapper div completely */
.events-grid .views-element-container {
    display: contents !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Ensure proper grid layout for past events */
.events-grid {
    display: grid !important;
    gap: 2rem !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.events-grid .w3-row.views-row {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.events-grid .views-element-container::before {
    display: none !important;
}

/* ============================================
   Individual Event Page (Full View)
   ============================================ */

.event-full-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Back Link */
.event-back-link {
    margin-bottom: 2rem;
}

.event-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #442d72;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.event-back-link a:hover {
    color: #6B46C1;
}

.event-back-link a svg {
    flex-shrink: 0;
}

/* Hero Image */
.event-full-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    max-height: 480px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 30px rgba(68, 45, 114, 0.12);
}

.event-full-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-full-hero .field--name-field-event-image {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.event-full-hero .field--name-field-event-image .field__item {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.event-full-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: #442d72;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-full-price {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(68, 45, 114, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Content Area - Two column layout */
.event-full-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .event-full-content {
        grid-template-columns: 1fr 340px;
    }
}

/* Main Content Column */
.event-full-main {
    min-width: 0;
}

.event-full-title {
    font-size: 2rem;
    font-weight: 700;
    color: #442d72;
    margin: 0 0 1.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .event-full-title {
        font-size: 2.5rem;
    }
}

/* Body Content */
.event-full-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
}

.event-full-body h2,
.event-full-body h3,
.event-full-body h4 {
    color: #442d72;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.event-full-body p {
    margin-bottom: 1rem;
}

.event-full-body ul,
.event-full-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.event-full-body li {
    margin-bottom: 0.5rem;
}

.event-full-body a {
    color: #442d72;
    text-decoration: underline;
}

.event-full-body a:hover {
    color: #6B46C1;
}

.event-full-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Actions / Register Button */
.event-full-actions {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.register-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
    min-width: 220px;
}

.register-btn-large svg {
    flex-shrink: 0;
}

/* Sidebar */
.event-full-sidebar {
    position: relative;
}

.event-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(68, 45, 114, 0.1);
    border: 1px solid #ede5f7;
    position: sticky;
    top: 2rem;
}

.event-sidebar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #442d72;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3eef9;
}

.sidebar-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3eef9;
}

.sidebar-detail:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.sidebar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-value {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.event-sidebar-card .register-btn {
    margin-top: 0.5rem;
}

/* Event Location Link */
.event-location-link {
    color: #442d72;
    text-decoration: none;
    font-weight: 500;
}

.event-location-link:hover {
    text-decoration: underline;
    color: #6B46C1;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .event-full-wrapper {
        padding: 1.5rem 1rem 3rem;
    }

    .event-full-hero {
        border-radius: 12px;
        max-height: 300px;
        margin-bottom: 1.5rem;
    }

    .event-full-title {
        font-size: 1.75rem;
    }

    .event-full-meta {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .event-full-actions {
        text-align: center;
    }

    .register-btn-large {
        width: 100%;
    }

    .event-sidebar-card {
        position: static;
    }
}

/* Hide Drupal default field labels on the full event page */
.event-full .field__label {
    display: none;
}

/* Clean up field wrappers on full event page */
.event-full .field--type-datetime {
    display: inline;
}

.event-full .field--name-field-event-type {
    display: inline;
}

.event-full .field--name-field-event-type .field__item {
    display: inline;
}