
    .event-wrapper {
      padding: 40px 20px;
      max-width: 1200px;
      margin: auto;
    }

    /* Header with toggle and search */
    .event-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 15px;
      margin-bottom: 30px;
    }

    .view-toggle {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .view-btn {
      background: transparent;
      border: 1px solid var(--border-color);
      color: var(--border-color);
      padding: 6px 10px;
      cursor: pointer;
      border-radius: 4px;
      transition: all 0.3s ease;
    }

    .view-btn.active,
    .view-btn:hover {
      background: var(--border-color);
      color: #fff;
    }

    .event-search {
      display: flex;
      border: 1px solid var(--border-color);
      background: #fff;
      padding: 0px!important;
    }

    .event-search input {
      border: none;
      padding: 10px;
      font-size: 14px;
      width: 180px;
    }

    .event-search button {
      background: var(--border-color);
      color: #fff;
      border: none;
      padding: 0 12px;
      cursor: pointer;
    }

    /* Grid View */
    .event-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
    }

    /* List View */
    .event-list {
      display: flex;
      flex-direction: column;
      gap: 30px;
    }

    .list-layout {
      flex-direction: row;
      align-items: flex-start;
    }

    .list-layout .event-image {
      width: 220px;
      flex-shrink: 0;
    }

    .list-layout .event-image img {
      width: 100%;
      height: auto;
    }

    /* Event Card Shared */
    .event-item {
      background: #fff;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      display: flex;
      flex-direction: column;
    }

    .event-image img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    .event-details {
      padding: 20px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .event-badge {
      display: inline-block;
      padding: 4px 10px;
      font-size: 12px;
      color: #fff;
      border-radius: 12px;
      margin-bottom: 10px;
    }

    .badge-danger { background-color: #dc3545; }
    .badge-success { background-color: #28a745; }
    .badge-warning { background-color: #ffc107; color: #000; }
    .badge-info    { background-color: #17a2b8; }
    .badge-primary { background-color: #007bff; }
    .badge-dark    { background-color: #343a40; }

    .event-title {
      font-size: 18px;
      color: var(--heading-color);
      margin-bottom: 10px;
    }

    .event-meta {
      list-style: none;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      font-size: 14px;
      color: var(--sub-heading-color);
      margin-bottom: 15px;
    }

    .event-meta i {
      margin-right: 6px;
    }

    .event-desc {
      font-size: 14px;
      color: var(--text-color);
      margin-bottom: 20px;
    }

    .event-btn {
      background-color: var(--border-color);
      color: white;
      padding: 10px 18px;
      border-radius: 25px;
      text-decoration: none;
      font-size: 14px;
      display: inline-block;
      width: fit-content;
      transition: background 0.3s ease;
    }

    .event-btn:hover {
      background-color: var(--hover-color);
    }

    .event-btn.primary {
      background-color: var(--border-color);
    }

    /* Footer */
    .event-footer {
      text-align: center;
      margin-top: 40px;
    }

    /* View Switch Logic */
    .event-view {
      display: none;
    }

    .event-view.active {
      display: grid;
    }

    @media (max-width: 768px) {
      .list-layout {
        flex-direction: column;
        align-items: center;
      }

      .event-meta {
        justify-content: center;
      }
    }
